.index-container {
	width: 100%;
	padding: 1.5rem 2rem;
	flex: 1;
	max-width: none;
	display: flex;
	flex-direction: column;
}

.content-section {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
}

.loading-state,
.error-state,
.no-results {
	min-height: 40vh;
}

.streams-section {
	min-height: 40vh;
	flex: 1;
}

.streams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	width: 100%;
}

@media (min-width: 1200px) {
	.streams-grid {
		grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
		gap: 2rem;
	}
}

@media (min-width: 1600px) {
	.streams-grid {
		grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
		gap: 2rem;
	}
}

.loading-state {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: var(--bg-primary);
	z-index: 10;
}

.loading-state .spinner {
	width: 40px;
	height: 40px;
}

.error-state {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1;
}

.error-card {
	background: var(--bg-card);
	border: 1px solid var(--accent-red);
	border-radius: var(--radius-md);
	padding: 2rem;
	text-align: center;
	max-width: 400px;
}

.error-card h3 {
	color: var(--accent-red);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.error-card p {
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.no-results {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 50vh;
}

.no-results-card {
	background: var(--bg-card);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-md);
	padding: 2rem;
	text-align: center;
	max-width: 400px;
	margin: 0 auto;
}

.no-results-card h3 {
	color: var(--text-primary);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.no-results-card p {
	color: var(--text-secondary);
	margin: 0;
}

.no-results-card .help-text {
	margin-top: 1rem;
	font-size: 0.9rem;
}

.no-results-card .help-link {
	color: var(--accent-blue);
	text-decoration: none;
}

.no-results-card .help-link:hover {
	text-decoration: underline;
}

.stream-card {
	display: block;
	background: var(--bg-card);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition:
		border-color 0.2s ease,
		background 0.2s ease;
	text-decoration: none;
	color: inherit;
}

.stream-card:hover {
	background: var(--bg-card-hover);
	border-color: var(--border-accent);
}

.stream-preview-container {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--bg-secondary);
	overflow: hidden;
}

.stream-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.stream-preview.loaded {
	opacity: 1;
}

.stream-card-body {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	gap: 1rem;
}

.stream-name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.viewer-count {
	font-size: 0.8125rem;
	color: var(--text-secondary);
	white-space: nowrap;
	flex-shrink: 0;
}

.skeleton-card {
	background: var(--bg-card);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-lg);
	overflow: hidden;
	animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
	0%,
	100% {
		opacity: 0.4;
	}
	50% {
		opacity: 0.7;
	}
}

.skeleton-preview {
	aspect-ratio: 16 / 9;
	background: var(--bg-secondary);
}

.skeleton-body {
	padding: 0.75rem 1rem;
}

.skeleton-line {
	height: 1rem;
	width: 50%;
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
}

@media (max-width: 480px) {
	.index-container {
		padding: 1rem;
	}

	.streams-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

@media (max-width: 768px) {
	.index-container {
		padding: 1rem;
	}
}

.discord-activity .main-header {
	display: none !important;
}

.discord-activity .index-container {
	padding-bottom: 4rem;
}

.discord-group-btn {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem;
	background: var(--bg-card);
	border-top: 1px solid var(--border-primary);
	color: var(--text-primary);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	z-index: 100;
}

.discord-group-btn:hover {
	background: var(--bg-card-hover);
}
