* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0 10px 40px 10px;
	font-family: 'Courier New', monospace;
	background-color: #000;
	color: #0f0;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
}

body.modal-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

.static {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.15),
		rgba(0, 0, 0, 0.15) 1px,
		transparent 1px,
		transparent 2px
	);
	opacity: 0.2;
	z-index: 1;
	pointer-events: none;
}

.container {
	text-align: center;
	position: relative;
	z-index: 2;
	padding-top: 20px;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

h1 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	text-shadow: 0 0 10px #0f0;
	animation: glitch 1s infinite alternate;
}

.subtitle {
	font-size: 1rem;
	margin-bottom: 2rem;
	color: #0a0;
	opacity: 0.8;
}

@keyframes glitch {
	0% {
		text-shadow: 0 0 10px #0f0;
	}
	50% {
		text-shadow: 2px 0 10px #0f0, -2px 0 10px #f00;
	}
	100% {
		text-shadow: 0 0 10px #0f0;
	}
}

.loading {
	font-size: 1.5rem;
	margin: 2rem 0;
	animation: pulse 1s infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.filters {
	margin: 2rem 0;
	padding: 1rem;
	background: rgba(0, 255, 0, 0.05);
	border: 1px solid #0f0;
	border-radius: 5px;
}

.filters input,
.filters select {
	background: #000;
	color: #0f0;
	border: 1px solid #0f0;
	padding: 0.5rem;
	margin: 0.5rem;
	font-family: 'Courier New', monospace;
	font-size: 1rem;
}

.filters input:focus,
.filters select:focus {
	outline: none;
	box-shadow: 0 0 10px #0f0;
}

.stats {
	margin: 1rem 0;
	font-size: 0.9rem;
	color: #0a0;
}

.art-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
	margin: 2rem 0;
	width: 100%;
}

.art-card {
	background: rgba(0, 255, 0, 0.03);
	border: 1px solid #0f0;
	border-radius: 5px;
	padding: 1rem;
	transition: all 0.3s ease;
	cursor: pointer;
	text-align: left;
	width: 100%;
	overflow: hidden;
}

.art-card:hover {
	background: rgba(0, 255, 0, 0.08);
	box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
	transform: translateY(-2px);
}

.art-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.author-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #0f0;
	box-shadow: 0 0 5px #0f0;
}

.author-info {
	flex: 1;
	overflow: hidden;
}

.author-name {
	font-weight: bold;
	color: #0f0;
	font-size: 1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.author-nickname {
	font-size: 0.85rem;
	color: #0a0;
	opacity: 0.8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.timestamp {
	font-size: 0.75rem;
	color: #0a0;
	opacity: 0.6;
}

.art-content {
	margin-bottom: 1rem;
}

.art-message {
	margin-bottom: 0.75rem;
	color: #0f0;
	font-size: 0.9rem;
	line-height: 1.6;
	word-wrap: break-word;
}


.markdown-content {
	color: #0f0;
}

.markdown-content p {
	margin: 0.5rem 0;
}

.markdown-content strong {
	color: #0ff;
	font-weight: bold;
}

.markdown-content em {
	color: #0fa;
	font-style: italic;
}

.markdown-content code {
	background: rgba(0, 255, 0, 0.1);
	border: 1px solid rgba(0, 255, 0, 0.3);
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 0.85em;
}

.markdown-content pre {
	background: rgba(0, 255, 0, 0.05);
	border: 1px solid #0f0;
	border-radius: 5px;
	padding: 1rem;
	overflow-x: auto;
	margin: 0.75rem 0;
}

.markdown-content pre code {
	background: none;
	border: none;
	padding: 0;
}

.markdown-content a {
	color: #0ff;
	text-decoration: underline;
	transition: all 0.2s ease;
}

.markdown-content a:hover {
	color: #fff;
	text-shadow: 0 0 5px #0ff;
}

.markdown-content ul, .markdown-content ol {
	margin: 0.5rem 0;
	padding-left: 2rem;
}

.markdown-content li {
	margin: 0.25rem 0;
}

.markdown-content blockquote {
	border-left: 3px solid #0f0;
	padding-left: 1rem;
	margin: 0.75rem 0;
	color: #0a0;
	font-style: italic;
}


.collapsible-content {
	position: relative;
}

.content-collapse {
	position: relative;
	max-height: 200px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.content-collapse::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.95));
	pointer-events: none;
}

.content-collapse.expanded {
	max-height: none;
}

.content-collapse.expanded::after {
	display: none;
}

.expand-button {
	background: rgba(0, 255, 0, 0.1);
	color: #0f0;
	border: 1px solid #0f0;
	padding: 5px 15px;
	border-radius: 3px;
	cursor: pointer;
	font-family: 'Courier New', monospace;
	font-size: 0.85rem;
	margin-top: 0.5rem;
	transition: all 0.2s ease;
	display: inline-block;
}

.expand-button:hover {
	background: #0f0;
	color: #000;
	box-shadow: 0 0 10px #0f0;
}


.art-attachments {
	position: relative;
	margin-bottom: 1rem;
}

.carousel-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	border: 1px solid #0f0;
	border-radius: 3px;
	background: #000;
	touch-action: pan-y pinch-zoom;
}

.carousel-track {
	display: flex;
	transition: transform 0.3s ease;
}

.carousel-slide {
	min-width: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
}

.attachment-wrapper {
	position: relative;
	width: 100%;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	max-height: 500px;
}

.attachment-image {
	width: 100%;
	height: auto;
	max-height: 500px;
	object-fit: contain;
	display: block;
	cursor: pointer;
	transition: opacity 0.3s ease;
	background: rgba(0, 255, 0, 0.02);
}

.attachment-image:hover {
	opacity: 0.9;
}

.attachment-image[loading="lazy"] {
	
	animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.95;
	}
}

.image-modal-trigger {
	cursor: pointer;
}

.attachment-video {
	width: 100%;
	height: auto;
	display: block;
	max-height: 500px;
}


.audio-wrapper {
	flex-direction: column;
	padding: 2rem 1rem;
	min-height: 150px;
	background: rgba(0, 255, 0, 0.03);
}

.audio-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.7;
}

.attachment-audio {
	width: 100%;
	max-width: 400px;
	height: 40px;
	filter: hue-rotate(90deg) saturate(0.8);
}

.attachment-filename {
	padding: 0.5rem;
	font-size: 0.75rem;
	color: #0a0;
	background: rgba(0, 0, 0, 0.8);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-top: 1px solid rgba(0, 255, 0, 0.3);
}


.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: #0f0;
	border: 2px solid #0f0;
	width: 40px;
	height: 40px;
	font-size: 20px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
	user-select: none;
}

.carousel-nav:hover {
	background: #0f0;
	color: #000;
	box-shadow: 0 0 10px #0f0;
}

.carousel-nav:active {
	transform: translateY(-50%) scale(0.95);
}

.carousel-nav.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.carousel-prev {
	left: 10px;
}

.carousel-next {
	right: 10px;
}


.carousel-indicators {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	background: rgba(0, 0, 0, 0.5);
	border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.carousel-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0, 255, 0, 0.3);
	border: 1px solid #0f0;
	cursor: pointer;
	transition: all 0.3s ease;
}

.carousel-indicator.active {
	background: #0f0;
	box-shadow: 0 0 8px #0f0;
	transform: scale(1.2);
}

.carousel-indicator:hover {
	background: rgba(0, 255, 0, 0.6);
}


.single-attachment {
	border: 1px solid #0f0;
	border-radius: 3px;
	overflow: hidden;
	background: #000;
}

.single-attachment .attachment-wrapper {
	min-height: auto;
}

.carousel-counter {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.8);
	color: #0f0;
	padding: 5px 10px;
	border-radius: 15px;
	border: 1px solid #0f0;
	font-size: 0.8rem;
	z-index: 10;
	pointer-events: none;
}

.reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.reaction {
	display: flex;
	align-items: center;
	gap: 5px;
	background: rgba(0, 255, 0, 0.1);
	border: 1px solid rgba(0, 255, 0, 0.3);
	border-radius: 15px;
	padding: 4px 10px;
	font-size: 0.85rem;
	transition: all 0.2s ease;
	cursor: pointer;
	user-select: none;
}

.reaction:hover {
	background: rgba(0, 255, 0, 0.2);
	box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
	transform: translateY(-1px);
}

.reaction:active {
	transform: translateY(0);
}

.reaction-emoji {
	width: 18px;
	height: 18px;
	display: inline-block;
}

.reaction-count {
	color: #0f0;
	font-weight: bold;
}

.no-art {
	font-size: 1.2rem;
	margin: 3rem 0;
	color: #0a0;
}


.art-embeds {
	margin-top: 1rem;
}

.embed-container {
	background: rgba(0, 255, 0, 0.03);
	border: 1px solid rgba(0, 255, 0, 0.3);
	border-left: 3px solid #0f0;
	border-radius: 5px;
	padding: 1rem;
	margin-bottom: 1rem;
}

.embed-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0.75rem;
}

.embed-icon {
	font-size: 1.2rem;
}

.embed-title {
	color: #0f0;
	font-weight: bold;
	font-size: 0.95rem;
}

.embed-video {
	position: relative;
	padding-bottom: 56.25%; 
	height: 0;
	overflow: hidden;
	border-radius: 5px;
	border: 1px solid #0f0;
}

.embed-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.embed-title-text {
	color: #0f0;
	font-weight: bold;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

.embed-description {
	color: #0a0;
	font-size: 0.85rem;
	line-height: 1.4;
	margin-bottom: 0.5rem;
}

.embed-link {
	display: inline-block;
	color: rgba(0, 255, 0, 0.7);
	text-decoration: none;
	font-size: 0.75rem;
	padding: 4px 8px;
	border: 1px solid rgba(0, 255, 0, 0.3);
	border-radius: 3px;
	margin-top: 0.5rem;
	transition: all 0.2s ease;
	background: rgba(0, 255, 0, 0.02);
}

.embed-link:hover {
	background: rgba(0, 255, 0, 0.1);
	color: #0f0;
	border-color: #0f0;
}

.discord-link {
	display: inline-block;
	color: rgba(0, 255, 0, 0.6);
	text-decoration: none;
	font-size: 0.7rem;
	padding: 3px 6px;
	border: 1px solid rgba(0, 255, 0, 0.2);
	border-radius: 3px;
	transition: all 0.2s ease;
	background: rgba(0, 255, 0, 0.01);
	margin-top: 0.5rem;
}

.discord-link:hover {
	background: rgba(0, 255, 0, 0.08);
	color: #0f0;
	border-color: rgba(0, 255, 0, 0.4);
}


.forwarded-message {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	margin-bottom: 1rem;
	background: rgba(255, 255, 0, 0.1);
	border: 1px solid rgba(255, 255, 0, 0.5);
	border-left: 3px solid #ff0;
	border-radius: 5px;
}

.forwarded-icon {
	font-size: 1.2rem;
}

.forwarded-text {
	color: #ff0;
	font-weight: bold;
	flex: 1;
}

.forwarded-id {
	font-size: 0.75rem;
	color: #aa0;
	font-family: monospace;
}


.loading-more {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem 0;
	margin: 2rem 0;
}

.loading-more .spinner {
	border: 3px solid rgba(0, 255, 0, 0.1);
	border-top: 3px solid #0f0;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}


@media (max-width: 768px) {
	body {
		padding: 0 5px 40px 5px;
	}
	
	.container {
		padding-top: 10px;
	}
	
	.art-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	h1 {
		font-size: 1.5rem;
		margin-bottom: 0.5rem;
	}
	
	.subtitle {
		font-size: 0.9rem;
		margin-bottom: 1.5rem;
	}
	
	.filters {
		padding: 0.5rem;
		display: flex;
		flex-direction: column;
	}
	
	.filters input,
	.filters select {
		width: 100%;
		margin: 0.25rem 0;
		font-size: 16px; 
	}
	
	.stats {
		font-size: 0.8rem;
		margin: 0.75rem 0;
	}
	
	.art-card {
		padding: 0.75rem;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}
	
	.art-header {
		flex-wrap: wrap;
	}
	
	.author-avatar {
		width: 35px;
		height: 35px;
	}
	
	.author-name {
		font-size: 0.9rem;
	}
	
	.author-nickname {
		font-size: 0.8rem;
	}
	
	.timestamp {
		font-size: 0.7rem;
		width: 100%;
		margin-top: 0.5rem;
		text-align: left;
	}
	
	
	.art-message {
		font-size: 0.85rem;
	}
	
	.markdown-content {
		font-size: 0.85rem;
	}
	
	.markdown-content pre {
		padding: 0.5rem;
		font-size: 0.75rem;
		overflow-x: auto;
	}
	
	.markdown-content code {
		font-size: 0.8em;
	}
	
	.content-collapse {
		max-height: 150px;
	}
	
	.expand-button {
		font-size: 0.8rem;
		padding: 5px 12px;
	}
	
	
	.carousel-nav {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}
	
	.carousel-prev {
		left: 5px;
	}
	
	.carousel-next {
		right: 5px;
	}
	
	.carousel-counter {
		top: 5px;
		right: 5px;
		font-size: 0.7rem;
		padding: 3px 8px;
	}
	
	.carousel-indicators {
		padding: 8px;
		gap: 6px;
	}
	
	.carousel-indicator {
		width: 6px;
		height: 6px;
	}
	
	
	.attachment-wrapper {
		min-height: 200px;
		max-height: 350px;
	}
	
	.attachment-image {
		max-height: 350px;
	}
	
	.attachment-video {
		max-height: 350px;
	}
	
	.attachment-filename {
		font-size: 0.7rem;
		padding: 0.4rem;
	}
	
	.audio-wrapper {
		padding: 1.5rem 1rem;
		min-height: 120px;
	}
	
	.audio-icon {
		font-size: 2rem;
	}
	
	.attachment-audio {
		max-width: 100%;
		height: 35px;
	}
	
	
	.embed-container {
		padding: 0.75rem;
	}
	
	.embed-title,
	.embed-title-text {
		font-size: 0.85rem;
	}
	
	.embed-description {
		font-size: 0.8rem;
	}
	
	.embed-link {
		font-size: 0.8rem;
		padding: 4px 8px;
	}
	
	.embed-video {
		padding-bottom: 56.25%; 
	}
	
	
	.forwarded-message {
		padding: 8px;
		flex-wrap: wrap;
	}
	
	.forwarded-text {
		font-size: 0.85rem;
	}
	
	.forwarded-id {
		font-size: 0.7rem;
		width: 100%;
		margin-top: 0.25rem;
	}
	
	
	.reactions {
		gap: 6px;
		margin-top: 0.5rem;
		padding-top: 0.5rem;
	}
	
	.reaction {
		padding: 3px 8px;
		font-size: 0.8rem;
	}
	
	.reaction-emoji {
		width: 16px;
		height: 16px;
	}
	
	.reaction-count {
		font-size: 0.8rem;
	}
	
	
	.reaction-modal-content {
		width: 95%;
		margin: 5% auto;
		max-height: 80vh;
	}
	
	.reaction-modal-header {
		padding: 0.75rem 1rem;
	}
	
	.reaction-modal-header h3 {
		font-size: 1rem;
	}
	
	.reaction-modal-close {
		font-size: 1.5rem;
		width: 25px;
		height: 25px;
	}
	
	.reaction-modal-body {
		padding: 0.75rem;
		max-height: calc(80vh - 70px);
	}
	
	.reaction-user {
		padding: 8px;
		gap: 10px;
	}
	
	.reaction-user-avatar {
		width: 35px;
		height: 35px;
	}
	
	.reaction-user-nickname {
		font-size: 0.9rem;
	}
	
	.reaction-user-name {
		font-size: 0.8rem;
	}
}


::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: #000;
}

::-webkit-scrollbar-thumb {
	background: #0f0;
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: #0ff;
}


.pinned-indicator {
	display: inline-block;
	margin-left: 5px;
	color: #ff0;
	font-size: 0.9rem;
}


.reaction-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	opacity: 0;
	transition: opacity 0.3s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.reaction-modal.active {
	opacity: 1;
}

.reaction-modal-content {
	background: #000;
	border: 2px solid #0f0;
	border-radius: 8px;
	margin: 10% auto;
	padding: 0;
	width: 90%;
	max-width: 500px;
	max-height: 70vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.reaction-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #0f0;
	background: rgba(0, 255, 0, 0.05);
}

.reaction-modal-header h3 {
	margin: 0;
	color: #0f0;
	font-size: 1.2rem;
	text-shadow: 0 0 5px #0f0;
}

.reaction-modal-close {
	color: #0f0;
	font-size: 2rem;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	transition: all 0.3s ease;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.reaction-modal-close:hover {
	background: #0f0;
	color: #000;
	transform: rotate(90deg);
}

.reaction-modal-body {
	padding: 1rem;
	overflow-y: auto;
	max-height: calc(70vh - 80px);
}

.reaction-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	margin-bottom: 8px;
	background: rgba(0, 255, 0, 0.03);
	border: 1px solid rgba(0, 255, 0, 0.2);
	border-radius: 5px;
	transition: all 0.2s ease;
}

.reaction-user:hover {
	background: rgba(0, 255, 0, 0.08);
	border-color: rgba(0, 255, 0, 0.4);
	transform: translateX(5px);
}

.reaction-user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #0f0;
	box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.reaction-user-info {
	flex: 1;
	overflow: hidden;
}

.reaction-user-nickname {
	font-weight: bold;
	color: #0f0;
	font-size: 1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.reaction-user-name {
	font-size: 0.85rem;
	color: #0a0;
	opacity: 0.8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.spinner {
	border: 3px solid rgba(0, 255, 0, 0.1);
	border-top: 3px solid #0f0;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 2rem auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
