.websdr-embed-wrapper {
	max-width: 100%;
	margin: 1.5em 0;
	border: 1px solid #d5d5d5;
	border-radius: 8px;
	overflow: hidden;
	background: #111;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.websdr-embed-title {
	background: #1b1b1b;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 8px 14px;
	border-bottom: 1px solid #333;
}

.websdr-embed-frame-holder {
	position: relative;
	width: 100%;
	background: #000;
}

.websdr-embed-frame {
	display: block;
	width: 100%;
	border: 0;
	background: #000;
}

/* Modo com proporção fixa (16:9, 4:3, etc) — o iframe passa a ser absoluto */
.websdr-embed-ratio .websdr-embed-frame-holder {
	height: 0;
	padding-top: 56.25%; /* fallback 16:9 */
}
.websdr-embed-ratio .websdr-embed-frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.websdr-embed-ratio-16-9 .websdr-embed-frame-holder { padding-top: 56.25%; }
.websdr-embed-ratio-4-3  .websdr-embed-frame-holder { padding-top: 75%; }

.websdr-embed-actions {
	background: #1b1b1b;
	padding: 6px 14px;
	text-align: right;
}

.websdr-embed-newtab {
	color: #9ad;
	font-size: 12px;
	text-decoration: none;
}
.websdr-embed-newtab:hover {
	text-decoration: underline;
	color: #fff;
}

/* Telas pequenas: o painel do WebSDR é largo, então damos mais altura
   e permitimos rolagem horizontal dentro do iframe em vez de espremer tudo */
@media (max-width: 600px) {
	.websdr-embed-frame {
		min-height: 480px;
	}
}

/* =========================================================
 *  BOTÃO (gatilho do modal)
 * ========================================================= */
.websdr-embed-button {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	background: #1b1b1b;
	color: #fff !important;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	pointer-events: auto;
	position: relative;
	z-index: 1;
	text-decoration: none;
	box-shadow: none;
}
.websdr-embed-button:hover {
	background: #2a2a2a;
}
.websdr-embed-button:active {
	transform: scale(0.98);
}
.websdr-embed-button-icon {
	font-size: 16px;
	line-height: 1;
}
.websdr-embed-button-hint {
	opacity: 0.65;
	font-weight: 400;
	font-size: 11px;
	margin-left: 2px;
}
.websdr-embed-button-external {
	background: #2a2313;
	border-color: #4a3d1f;
}
.websdr-embed-button-external:hover {
	background: #3a3018;
}

/* =========================================================
 *  GRADE DE ESTAÇÕES  [websdr_list]
 * ========================================================= */
.websdr-list-wrapper {
	margin: 1.5em 0;
}
.websdr-list-title {
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 12px;
}
.websdr-list-grid {
	display: grid;
	grid-template-columns: repeat(var(--websdr-columns, 3), 1fr);
	gap: 10px;
}
.websdr-list-grid .websdr-embed-button {
	width: 100%;
	justify-content: center;
}
@media (max-width: 700px) {
	.websdr-list-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 420px) {
	.websdr-list-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
 *  MODAL
 * ========================================================= */
.websdr-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.websdr-modal-overlay.is-open {
	display: flex;
}
.websdr-modal-box {
	background: #111;
	border-radius: 10px;
	overflow: hidden;
	width: 100%;
	max-width: 960px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.websdr-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1b1b1b;
	color: #fff;
	padding: 10px 14px;
	border-bottom: 1px solid #333;
	flex-shrink: 0;
}
.websdr-modal-title {
	font-weight: 600;
	font-size: 15px;
}
.websdr-modal-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}
.websdr-modal-newtab {
	color: #9ad;
	text-decoration: none;
	font-size: 16px;
}
.websdr-modal-newtab:hover {
	color: #fff;
}
.websdr-modal-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.websdr-modal-close:hover {
	color: #f88;
}
.websdr-modal-frame-holder {
	position: relative;
	background: #000;
	overflow: hidden;
}
.websdr-modal-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 14px;
}
.websdr-modal-iframe {
	display: block;
	width: 100%;
	border: 0;
}
body.websdr-modal-open {
	overflow: hidden;
}
