html, body {
	background-color: #121212;
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
}

.box-twitch {
	background-color: #121212;
	color: white;
	margin: 0;
	padding: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
}

.box-twitch .header-text h1 {
	color: #ff6600;
	font-size: 1.8rem;
	margin: 0 0 5px 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.box-twitch .header-text p {
	font-size: 0.95rem;
	color: #cccccc;
	margin-bottom: 15px;
}

/* --- CONTAINER DO PLAYER --- */
.box-twitch .player-wrapper {
	position: relative;
	width: 100%;
	max-width: 854px;
	background: #000;
	border-radius: 12px 12px 0 0;
	overflow: hidden;
	border: 1px solid #333;
	border-bottom: none;
	box-shadow: 0 5px 30px rgba(0,0,0,0.8);
}

.box-twitch .player-wrapper:fullscreen {
	border: none;
	border-radius: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.box-twitch .video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	width: 100%;
	overflow: hidden;
}

.box-twitch .player-wrapper:fullscreen .video-container {
	padding-bottom: 0;
	height: 100%;
	width: 100%;
}

.box-twitch #twitch-embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	visibility: visible;
	opacity: 1;
	display: block;
}

.box-twitch #offline-layer {
	display: none; 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #004e92 0%, #000428 100%);
	z-index: 50;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
	box-sizing: border-box;
}

.box-twitch #offline-layer.active {
	display: flex;
}

.box-twitch .offline-content h2 {
	font-size: 1.5rem;
	margin-bottom: 10px;
}
.box-twitch .offline-content p {
	font-size: 1rem;
	color: #ccc;
	margin-bottom: 20px;
}

.box-twitch audio {
	width: 100%;
	max-width: 300px;
	border-radius: 30px;
	margin-top: 10px;
	outline: none;
}

.box-twitch .block-overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 20;
		background: transparent;
		pointer-events: none;
		display: none;
}
.box-twitch .block-overlay.active-block { 
	pointer-events: auto;
	display: block;
}

.box-twitch .custom-controls {
	width: 100%;
	max-width: 854px;
	background: #1a1a1a;
	padding: 15px;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-radius: 0 0 12px 12px;
	border: 1px solid #333;
	border-top: none;
	flex-wrap: wrap;
	gap: 10px;
}

.box-twitch .custom-controls.disabled-mode {
	opacity: 0.5;
	pointer-events: none;
}

.box-twitch .control-group { display: flex; gap: 10px; }

.box-twitch .ctrl-btn {
	background-color: #333;
	border: none;
	color: white;
	padding: 12px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: 0.2s;
	white-space: nowrap;
}
.box-twitch .ctrl-btn:active { transform: scale(0.95); }
.box-twitch .ctrl-btn.primary { background: linear-gradient(90deg, #004e92 0%, #005fafff 100%); }
.box-twitch .ctrl-btn.active { background-color: #ff6600; color: white; background-image: none; }

@media (max-width: 600px) {
	.box-twitch .custom-controls { padding: 12px; }
	.box-twitch .control-group { flex: 1; }
	.box-twitch .control-group:last-child { flex: 0; }
	.box-twitch .ctrl-btn { padding: 14px 10px; font-size: 0.85rem; width: 100%; }
	.box-twitch #btn-sound::after { content: "Som"; display: inline; } 
	.box-twitch #btn-sound span { display: none; }
}

.box-twitch .footer-section {
	margin-top: 25px;
	padding: 20px;
	background: #1e1e1e;
	border-radius: 15px;
	width: 100%;
	max-width: 600px;
	border: 1px solid #333;
	box-sizing: border-box;
}

.box-twitch .btn-whatsapp {
	display: block;
	width: 100%;
	max-width: 300px;
	margin: 15px auto 0 auto;
	padding: 15px 0;
	font-size: 1.1rem;
	font-weight: bold;
	color: white;
	text-decoration: none;
	border-radius: 50px;
	text-transform: uppercase;
	background: linear-gradient(90deg, #004e92 0%, #ff6600 100%);
	box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}