/*
Theme Name: Radio Circular
Description: Tema oscuro para una emisora de radio por internet. La portada muestra un reproductor circular para una emisión en directo MP3 (SHOUTcast/Icecast) o un archivo MP3, y un menú desplegable da acceso al blog y a las páginas del sitio. La URL de emisión, el color de acento y el visualizador opcional se configuran en Apariencia > Personalizar.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radio-circular
Tags: blog, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ---------------------------------------------------------------
   1. Variables
   El color de acento real se inyecta desde functions.php
   (--rc-accent, --rc-accent-text, --rc-on-accent) y los colores de
   página y disco del Personalizador (ver radio_circular_color_css()).
---------------------------------------------------------------- */
:root {
	--rc-bg: #0b0b10;
	--rc-surface: #15151d;
	--rc-surface-2: #1d1d28;
	--rc-border: #2c2c3a;
	--rc-text: #f2f2f7;
	--rc-muted: #a8a8ba;
	--rc-accent: #ff2d8a;
	--rc-accent-text: #ff6aa9;
	--rc-on-accent: #0b0b10;
	--rc-button: #ff2d8a;
	--rc-on-button: #0b0b10;
	--rc-danger: #ff8a8a;
	--rc-radius: 14px;
	--rc-gutter: 16px;
	--rc-max: 760px;
	--rc-header-h: 64px;
	--rc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: dark;
}

/* ---------------------------------------------------------------
   2. Base
---------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--rc-bg);
	color: var(--rc-text);
	font-family: var(--rc-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--rc-accent-text);
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--rc-accent-text);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.25;
	margin: 1.6em 0 0.6em;
}

pre {
	overflow-x: auto;
	background: var(--rc-surface);
	padding: 1em;
	border-radius: 8px;
}

table {
	border-collapse: collapse;
	width: 100%;
	display: block;
	overflow-x: auto;
}

th,
td {
	border: 1px solid var(--rc-border);
	padding: 0.4em 0.6em;
}

blockquote {
	margin: 1.5em 0;
	padding-left: 1em;
	border-left: 3px solid var(--rc-accent);
	color: var(--rc-muted);
}

hr {
	border: 0;
	border-top: 1px solid var(--rc-border);
	margin: 2em 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: 8px;
	padding: 0.55em 0.75em;
	max-width: 100%;
}

.rc-button,
input[type="submit"],
button.rc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 44px;
	padding: 0.5em 1.1em;
	border: 0;
	border-radius: 999px;
	background: var(--rc-button);
	color: var(--rc-on-button);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.rc-button--ghost {
	background: transparent;
	color: var(--rc-text);
	border: 1px solid var(--rc-border);
}

/* Texto solo para lectores de pantalla (clase estándar de WordPress). */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--rc-surface-2);
	clip: auto !important;
	clip-path: none;
	color: var(--rc-text);
	display: block;
	height: auto;
	left: 8px;
	top: 8px;
	padding: 12px 18px;
	width: auto;
	z-index: 100000;
	border-radius: 8px;
}

/* Clases requeridas por WordPress */
.alignleft {
	float: left;
	margin: 0.3em 1.2em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.2em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption,
figcaption {
	color: var(--rc-muted);
	font-size: 0.875em;
}

.sticky .entry-title::before {
	content: "★ ";
	color: var(--rc-accent-text);
}

.bypostauthor > .comment-body .fn::after {
	content: " ✎";
}

/* ---------------------------------------------------------------
   3. Cabecera y menú desplegable
---------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: var(--rc-header-h);
	padding: 10px var(--rc-gutter);
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.site-branding .custom-logo-link {
	display: block;
	flex: 0 0 auto;
}

.site-branding .custom-logo {
	display: block;
	max-height: 44px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-title a {
	color: var(--rc-text);
	text-decoration: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.rc-listen-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	color: var(--rc-text);
	text-decoration: none;
	font-size: 0.9rem;
	border-radius: 999px;
}

.rc-listen-link::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rc-accent);
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600;
}

.menu-toggle[aria-expanded="true"] {
	border-color: var(--rc-accent);
}

.menu-toggle__icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	color: var(--rc-icon, currentColor);
}

.menu-toggle__icon .bar {
	transition: transform 0.2s ease, opacity 0.2s ease;
	transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .bar-1 {
	transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar-2 {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar-3 {
	transform: translateY(-5px) rotate(-45deg);
}

/* Sin JavaScript el menú se muestra como bloque normal. */
.no-js .menu-toggle {
	display: none;
}

.no-js .site-header {
	flex-wrap: wrap;
}

.site-menu {
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: var(--rc-radius);
	padding: 12px;
}

.no-js .site-menu {
	width: 100%;
}

.js .site-menu {
	position: absolute;
	top: calc(100% - 4px);
	right: var(--rc-gutter);
	width: min(340px, calc(100vw - 2 * var(--rc-gutter)));
	max-height: calc(100vh - var(--rc-header-h) - 24px);
	overflow-y: auto;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.js .site-menu[hidden] {
	display: none;
}

.site-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-menu .sub-menu,
.site-menu .children {
	padding-left: 14px;
	border-left: 1px solid var(--rc-border);
	margin-left: 12px;
}

.site-menu a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 12px;
	border-radius: 10px;
	color: var(--rc-text);
	text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus-visible {
	background: var(--rc-surface-2);
}

.site-menu .current-menu-item > a,
.site-menu .current_page_item > a,
.site-menu .current_page_parent > a {
	color: var(--rc-accent-text);
	font-weight: 600;
}

.site-menu__hint {
	color: var(--rc-muted);
	font-size: 0.85rem;
	padding: 6px 12px;
}

.site-menu .search-form {
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--rc-border);
}

/* ---------------------------------------------------------------
   4. Formulario de búsqueda
---------------------------------------------------------------- */
.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
}

/* ---------------------------------------------------------------
   5. Reproductor circular (portada)
---------------------------------------------------------------- */
.site-main {
	flex: 1 0 auto;
	width: 100%;
}

.rc-player {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 8px var(--rc-gutter) 40px;
	min-height: calc(100vh - var(--rc-header-h) - 60px);
	min-height: calc(100svh - var(--rc-header-h) - 60px);
	justify-content: center;
}

.rc-disc {
	position: relative;
	container-type: inline-size;
	width: clamp(240px, min(92vw, calc(100vh - 250px)), 560px);
	width: clamp(240px, min(92vw, calc(100svh - 250px)), 560px);
	max-width: 100%;
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
}

.rc-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

.rc-face {
	position: absolute;
	inset: 10.5%;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(6px, 2.6cqi, 16px);
	padding: 7% 12%;
	text-align: center;
	background:
		radial-gradient(circle at 50% 35%, #1d1d28 0%, #15151d 55%, #0f0f15 100%);
	color: var(--rc-text);
	border: 1px solid color-mix(in srgb, var(--rc-text) 14%, transparent);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 80px rgba(0, 0, 0, 0.55);
	transition: box-shadow 0.4s ease;
}

/* Ningún elemento del círculo debe encogerse: evita recortar el nombre. */
.rc-face > * {
	flex-shrink: 0;
}

.rc-player[data-state="live"] .rc-face,
.rc-player[data-state="playing"] .rc-face {
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc-accent) 55%, transparent), 0 0 70px color-mix(in srgb, var(--rc-accent) 22%, transparent);
}

.rc-name {
	margin: 0;
	font-size: clamp(15px, 5.6cqi, 34px);
	font-weight: 800;
	line-height: 1.15;
	padding: 0.08em 0 0.12em; /* deja ver los trazos descendentes (g, p, y) */
	letter-spacing: -0.01em;
	max-width: 100%;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rc-status {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 1.6em;
	padding: 2px 12px;
	border-radius: 999px;
	font-size: clamp(12px, 3.1cqi, 16px);
	font-weight: 600;
	color: var(--rc-muted);
	background: rgba(255, 255, 255, 0.04);
	max-width: 100%;
}

.rc-status__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
	display: none;
}

.rc-player[data-state="live"] .rc-status {
	color: var(--rc-accent-text);
}

.rc-player[data-state="live"] .rc-status__dot {
	display: inline-block;
	background: var(--rc-accent);
	animation: rc-pulse 1.6s ease-in-out infinite;
}

.rc-player[data-state="error"] .rc-status,
.rc-player[data-state="blocked"] .rc-status {
	color: var(--rc-danger);
}

@keyframes rc-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

.rc-play {
	position: relative;
	width: clamp(56px, 21cqi, 116px);
	height: clamp(56px, 21cqi, 116px);
	border-radius: 50%;
	border: 0;
	background: var(--rc-button);
	color: var(--rc-icon, var(--rc-on-button));
	display: grid;
	place-items: center;
	cursor: pointer;
	flex: 0 0 auto;
	box-shadow: 0 10px 30px color-mix(in srgb, var(--rc-button) 35%, transparent);
	transition: transform 0.15s ease;
}

.rc-play:hover:not(:disabled) {
	transform: scale(1.04);
}

.rc-play:active:not(:disabled) {
	transform: scale(0.97);
}

.rc-play:focus-visible {
	outline-offset: 5px;
}

.rc-play:disabled {
	background: var(--rc-surface-2);
	color: var(--rc-muted);
	box-shadow: none;
	cursor: not-allowed;
}

.rc-play svg {
	width: 42%;
	height: 42%;
	display: none;
}

.rc-play[data-icon="play"] .rc-icon-play,
.rc-play[data-icon="stop"] .rc-icon-stop,
.rc-play[data-icon="pause"] .rc-icon-pause {
	display: block;
}

.rc-play[data-icon="play"] .rc-icon-play {
	transform: translateX(6%);
}

.rc-play[data-icon="loading"] .rc-icon-stop {
	display: block;
}

.rc-time {
	font-size: clamp(12px, 3cqi, 15px);
	color: var(--rc-accent-text);
	font-variant-numeric: tabular-nums;
	width: 70%;
}

.rc-time[hidden] {
	display: none;
}

.rc-progress[hidden] {
	display: none;
}

.rc-progress {
	display: block;
	height: 4px;
	margin-top: 4px;
	border-radius: 2px;
	background: var(--rc-border);
	overflow: hidden;
}

.rc-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--rc-accent);
}

.rc-volume {
	display: flex;
	align-items: center;
	gap: 6px;
	width: min(100%, 210px);
}

.rc-mute {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: var(--rc-icon, var(--rc-text));
	cursor: pointer;
}

.rc-mute:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.07);
}

.rc-mute svg {
	width: 22px;
	height: 22px;
}

.rc-mute .rc-icon-muted,
.rc-mute[aria-pressed="true"] .rc-icon-volume {
	display: none;
}

.rc-mute[aria-pressed="true"] .rc-icon-muted {
	display: block;
}

.rc-mute:disabled,
.rc-volume input:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.rc-volume input[type="range"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	background: transparent;
	accent-color: var(--rc-accent);
	cursor: pointer;
}

.rc-message {
	max-width: 520px;
	width: 100%;
	text-align: center;
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: var(--rc-radius);
	padding: 14px 16px;
}

.rc-message[hidden] {
	display: none;
}

.rc-message p {
	margin: 0 0 10px;
}

.rc-message p:last-child {
	margin-bottom: 0;
}

.rc-message[data-kind="error"] {
	border-color: color-mix(in srgb, var(--rc-danger) 50%, var(--rc-border));
}

.rc-message[data-kind="info"] .rc-retry {
	display: none;
}

.rc-tagline {
	margin: 0;
	color: var(--rc-muted);
	text-align: center;
	max-width: 560px;
}

.rc-admin-note {
	margin: 0;
	font-size: 0.9rem;
	color: var(--rc-muted);
	text-align: center;
}

/* Pantallas bajas en horizontal (móvil girado). */
@media (max-height: 520px) and (orientation: landscape) {
	.rc-disc {
		width: clamp(240px, calc(100vh - 90px), 560px);
	}
}

/* ---------------------------------------------------------------
   6. Contenido: blog, entradas, páginas, archivo, búsqueda, 404
---------------------------------------------------------------- */
.content-area {
	width: 100%;
	max-width: var(--rc-max);
	margin: 0 auto;
	padding: 24px var(--rc-gutter) 56px;
}

.page-header {
	margin-bottom: 28px;
}

.page-title,
.entry-header .entry-title {
	margin-top: 0.4em;
	font-size: clamp(1.7rem, 5vw, 2.5rem);
	overflow-wrap: anywhere;
}

.archive-description,
.page-header p {
	color: var(--rc-muted);
}

.post-list {
	display: grid;
	gap: 18px;
}

.post-card {
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: var(--rc-radius);
	overflow: hidden;
}

.post-card__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__body {
	padding: 18px 20px 20px;
}

.post-card .entry-title {
	margin: 0 0 6px;
	font-size: 1.35rem;
	overflow-wrap: anywhere;
}

.post-card .entry-title a {
	color: var(--rc-text);
	text-decoration: none;
}

.post-card .entry-title a:hover {
	color: var(--rc-accent-text);
}

.post-card .entry-summary p {
	margin: 0.6em 0 0;
}

.entry-meta,
.entry-footer {
	color: var(--rc-muted);
	font-size: 0.9rem;
}

.entry-meta a,
.entry-footer a {
	color: inherit;
}

.entry-thumbnail img {
	display: block;
	border-radius: var(--rc-radius);
	margin: 0 auto 24px;
}

.entry-content {
	overflow-wrap: break-word;
}

.entry-content > * {
	max-width: 100%;
}

.entry-footer {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--rc-border);
}

.page-links {
	margin: 24px 0;
}

.read-more {
	display: inline-block;
	margin-top: 10px;
	font-weight: 600;
}

/* Paginación y navegación entre entradas */
.pagination,
.post-navigation {
	margin-top: 36px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	color: var(--rc-text);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--rc-button);
	border-color: var(--rc-button);
	color: var(--rc-on-button);
	font-weight: 700;
}

.page-numbers.dots {
	background: transparent;
	border-color: transparent;
}

.post-navigation a {
	display: block;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	color: var(--rc-text);
	text-decoration: none;
	max-width: 100%;
}

.post-navigation .meta-nav {
	display: block;
	color: var(--rc-muted);
	font-size: 0.85rem;
}

/* Comentarios */
.comments-area {
	margin-top: 48px;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 18px;
}

.comment-body {
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: var(--rc-radius);
	padding: 14px 16px;
	margin-bottom: 14px;
}

.comment-meta {
	font-size: 0.9rem;
	color: var(--rc-muted);
}

.comment-meta a {
	color: inherit;
}

.comment-author .avatar {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
}

/* 404 y sin resultados */
.error-404 .rc-actions,
.no-results .rc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0;
}

/* ---------------------------------------------------------------
   7. Pie
---------------------------------------------------------------- */
.site-footer {
	flex-shrink: 0;
	padding: 20px var(--rc-gutter) 28px;
	text-align: center;
	color: var(--rc-muted);
	font-size: 0.875rem;
}

.site-footer p {
	margin: 0;
}

/* ---------------------------------------------------------------
   8. Móvil
---------------------------------------------------------------- */
@media (max-width: 480px) {
	:root {
		--rc-header-h: 60px;
	}

	.menu-toggle__label {
		font-size: 0.95rem;
	}

	.rc-listen-link span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.rc-player {
		gap: 14px;
	}

	.rc-face {
		padding: 6% 10%;
	}

	.post-navigation .nav-links {
		flex-direction: column;
	}
}

/* ---------------------------------------------------------------
   9. Movimiento reducido
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.rc-play:hover:not(:disabled),
	.rc-play:active:not(:disabled) {
		transform: none;
	}
}

/* Modo de alto contraste de Windows */
@media (forced-colors: active) {
	.rc-play,
	.rc-button,
	.page-numbers.current {
		border: 2px solid ButtonText;
	}
}

/* ---------------------------------------------------------------
   10. Controles y paneles del reproductor (1.2.0)
   Paneles y controles usan las variables --rc-panel-* y --rc-control,
   que cambian con el modo claro/oscuro del visitante.
---------------------------------------------------------------- */
:root {
	--rc-control: #ff2d8a;
	--rc-on-control: #0b0b10;
	--rc-panel: #14141c;
	--rc-panel-surface: #1c1c25;
	--rc-panel-border: #34343f;
	--rc-panel-text: #f2f2f7;
	--rc-panel-muted: #a8a8ba;
	--rc-panel-accent: #ff6aa9;
	--rc-panel-ui: #ff2d8a;
	--rc-on-panel-ui: #0b0b10;
	--rc-panel-danger: #ff8a8a;
}

/* Grupos de botones (esquinas) */
.rc-group {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px;
	border: 1px solid color-mix(in srgb, var(--rc-control) 45%, transparent);
	border-radius: 12px;
}

.rc-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--rc-control) 40%, transparent);
	border-radius: 10px;
	background: transparent;
	color: var(--rc-control);
	cursor: pointer;
}

.rc-icon-btn svg {
	width: 20px;
	height: 20px;
}

.rc-icon-btn:hover {
	background: color-mix(in srgb, var(--rc-control) 12%, transparent);
}

.rc-icon-btn[aria-pressed="true"],
.rc-icon-btn[aria-expanded="true"],
.rc-icon-btn[aria-selected="true"] {
	background: color-mix(in srgb, var(--rc-control) 24%, transparent);
	border-color: var(--rc-control);
}

.site-header .rc-mode {
	flex: 0 0 auto;
}

/* Barra de paneles del reproductor (esquina superior izquierda) */
.rc-player {
	position: relative;
}

.rc-tools {
	position: absolute;
	top: 4px;
	left: var(--rc-gutter);
	z-index: 5;
}

/* Disco: pista, anterior/siguiente */
.rc-track {
	margin: 0;
	max-width: 100%;
	font-size: clamp(12px, 3.3cqi, 18px);
	color: var(--rc-accent-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rc-track[hidden] {
	display: none;
}

.rc-transport {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(6px, 3cqi, 22px);
}

.rc-skip {
	display: grid;
	place-items: center;
	width: clamp(40px, 11cqi, 60px);
	height: clamp(40px, 11cqi, 60px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--rc-disc-ui, var(--rc-accent));
	cursor: pointer;
}

.rc-skip svg {
	width: 78%;
	height: auto;
}

.rc-skip:hover:not([aria-disabled="true"]) {
	background: color-mix(in srgb, var(--rc-disc-ui, var(--rc-accent)) 14%, transparent);
}

.rc-skip[aria-disabled="true"] {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Fila inferior */
.rc-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px;
}

.rc-round {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 46px;
	height: 46px;
	padding: 0 10px;
	border: 2px solid var(--rc-control);
	border-radius: 999px;
	background: transparent;
	color: var(--rc-control);
	cursor: pointer;
	font-weight: 700;
}

.rc-round > svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.rc-round[aria-pressed="true"],
.rc-round[aria-expanded="true"] {
	background: var(--rc-control);
	color: var(--rc-on-control);
}

.rc-round__badge {
	display: none;
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	background: var(--rc-control);
	color: var(--rc-on-control);
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

.rc-round[data-repeat="one"] .rc-round__badge {
	display: block;
	outline: 2px solid var(--rc-bg);
}

.rc-speed select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font-weight: 700;
	padding: 0 2px;
	cursor: pointer;
}

.rc-speed select option {
	color: #17171f;
	background: #ffffff;
}

.rc-speed:focus-within {
	outline: 3px solid var(--rc-accent-text);
	outline-offset: 3px;
}

.rc-speed select:focus-visible {
	outline: none;
}

.rc-speed[data-disabled="1"] {
	opacity: 0.45;
}

.rc-row-note {
	min-height: 1.4em;
	margin: -6px 0 0;
	font-size: 0.875rem;
	color: var(--rc-muted);
	text-align: center;
}

/* Botón de cierre de paneles */
.rc-close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--rc-panel-border);
	border-radius: 10px;
	background: transparent;
	color: var(--rc-panel-accent);
	cursor: pointer;
}

.rc-close svg {
	width: 20px;
	height: 20px;
}

/* Panel lateral */
.rc-drawer {
	position: fixed;
	z-index: 70;
	top: 12px;
	bottom: 12px;
	left: 12px;
	width: min(400px, calc(100vw - 24px));
	display: flex;
	flex-direction: column;
	background: var(--rc-panel);
	color: var(--rc-panel-text);
	border: 1px solid var(--rc-panel-border);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.rc-drawer[hidden],
.rc-eq[hidden],
.rc-pane[hidden],
[data-rc-subpane][hidden] {
	display: none;
}

.rc-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px;
	border-bottom: 1px solid var(--rc-panel-border);
}

.rc-drawer .rc-group {
	border-color: var(--rc-panel-border);
}

.rc-drawer .rc-icon-btn {
	color: var(--rc-panel-accent);
	border-color: var(--rc-panel-border);
}

.rc-drawer .rc-icon-btn[aria-selected="true"] {
	background: color-mix(in srgb, var(--rc-panel-ui) 22%, transparent);
	border-color: var(--rc-panel-ui);
}

.rc-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px;
}

.rc-drawer a,
.rc-eq a {
	color: var(--rc-panel-accent);
}

.rc-drawer :focus-visible,
.rc-eq :focus-visible {
	outline-color: var(--rc-panel-accent);
}

.rc-pane-note {
	margin: 10px 0 0;
	font-size: 0.875rem;
	color: var(--rc-panel-muted);
}

.rc-pane-heading {
	margin: 18px 0 8px;
	font-size: 0.95rem;
	color: var(--rc-panel-accent);
}

.rc-callout {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, var(--rc-panel-ui) 45%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, var(--rc-panel-ui) 10%, transparent);
	font-size: 0.9rem;
}

/* Buscador y lista */
.rc-search {
	position: relative;
	margin-bottom: 10px;
}

.rc-search svg {
	position: absolute;
	left: 12px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: var(--rc-panel-muted);
	pointer-events: none;
}

.rc-drawer input[type="search"],
.rc-drawer input[type="text"],
.rc-drawer input[type="url"],
.rc-drawer select {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--rc-panel-border);
	border-radius: 10px;
	background: var(--rc-panel-surface);
	color: var(--rc-panel-text);
}

.rc-search input {
	padding-left: 40px !important;
}

.rc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.rc-item {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--rc-panel-border);
	border-radius: 12px;
	background: var(--rc-panel-surface);
}

.rc-item[aria-current="true"] {
	border-color: var(--rc-panel-ui);
	background: color-mix(in srgb, var(--rc-panel-ui) 14%, var(--rc-panel-surface));
}

.rc-item__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 4px 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.rc-item__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--rc-panel-ui) 16%, transparent);
	color: var(--rc-panel-accent);
}

.rc-item__icon svg {
	width: 20px;
	height: 20px;
}

.rc-item__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.rc-item__title {
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rc-item__meta {
	font-size: 0.8rem;
	color: var(--rc-panel-muted);
	overflow-wrap: anywhere;
}

.rc-item__acts {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
	max-width: 116px;
}

.rc-act {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--rc-panel-border);
	border-radius: 8px;
	background: transparent;
	color: var(--rc-panel-accent);
	cursor: pointer;
}

.rc-act svg {
	width: 17px;
	height: 17px;
}

.rc-act:disabled,
.rc-act[aria-disabled="true"] {
	opacity: 0.35;
	cursor: not-allowed;
}

.rc-act--danger {
	color: var(--rc-panel-danger);
}

.rc-list__empty {
	padding: 12px;
	color: var(--rc-panel-muted);
}

.rc-share-manual input {
	margin-top: 6px;
}

/* Añadir */
.rc-subtabs {
	display: flex;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--rc-panel-border);
}

.rc-subtabs button {
	flex: 1 1 0;
	min-height: 44px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--rc-panel-muted);
	font-weight: 600;
	cursor: pointer;
}

.rc-subtabs button[aria-selected="true"] {
	color: var(--rc-panel-accent);
	border-bottom-color: var(--rc-panel-ui);
}

.rc-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 26px 16px;
	border: 2px dashed color-mix(in srgb, var(--rc-panel-ui) 60%, transparent);
	border-radius: 12px;
	text-align: center;
	color: var(--rc-panel-accent);
	cursor: pointer;
}

.rc-drop svg {
	width: 44px;
	height: 44px;
}

.rc-drop span {
	color: var(--rc-panel-muted);
	font-size: 0.875rem;
}

.rc-drop[data-over="1"],
.rc-drop:hover {
	background: color-mix(in srgb, var(--rc-panel-ui) 10%, transparent);
}

.rc-drop:focus-within {
	outline: 3px solid var(--rc-panel-accent);
	outline-offset: 2px;
}

.rc-drop__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.rc-field {
	margin: 0 0 12px;
}

.rc-field label,
.rc-field legend {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 0.9rem;
}

.rc-kind {
	border: 0;
	padding: 0;
}

.rc-kind label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	font-weight: 400;
}

.rc-kind input {
	accent-color: var(--rc-panel-ui);
	width: 18px;
	height: 18px;
}

.rc-drawer [aria-invalid="true"] {
	border-color: var(--rc-panel-danger) !important;
}

.rc-button--block {
	width: 100%;
}

.rc-drawer .rc-button,
.rc-eq .rc-button {
	background: var(--rc-panel-ui);
	color: var(--rc-on-panel-ui);
}

.rc-drawer .rc-button--ghost {
	background: transparent;
	color: var(--rc-panel-danger);
	border: 1px solid var(--rc-panel-border);
}

.rc-drawer .rc-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.rc-feedback p {
	margin: 6px 0 0;
}

.rc-feedback[data-kind="error"] p:first-child {
	color: var(--rc-panel-danger);
}

/* Ayuda */
.rc-keys {
	margin: 0;
}

.rc-keys div {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 5px 0;
}

.rc-keys dt {
	flex: 0 0 96px;
	margin: 0;
}

.rc-keys dd {
	margin: 0;
	font-size: 0.9rem;
}

.rc-drawer kbd {
	display: inline-block;
	min-width: 32px;
	padding: 3px 8px;
	border: 1px solid color-mix(in srgb, var(--rc-panel-ui) 60%, transparent);
	border-radius: 6px;
	background: var(--rc-panel-surface);
	color: var(--rc-panel-accent);
	font: 600 0.8rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
	text-align: center;
}

.rc-help-list {
	margin: 0;
	padding-left: 18px;
	font-size: 0.9rem;
}

.rc-help-list li {
	margin-bottom: 6px;
}

/* Ajustes */
.rc-setting {
	margin-top: 16px;
	padding: 12px;
	border: 1px solid var(--rc-panel-border);
	border-radius: 12px;
}

.rc-setting__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rc-panel-accent);
}

.rc-setting__row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rc-setting__row input[type="range"] {
	flex: 1 1 auto;
	accent-color: var(--rc-panel-ui);
}

.rc-setting__row output {
	min-width: 56px;
	padding: 4px 8px;
	border: 1px solid var(--rc-panel-border);
	border-radius: 8px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Ecualizador */
.rc-eq {
	position: fixed;
	z-index: 70;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	width: min(680px, calc(100vw - 24px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 14px 18px 18px;
	background: var(--rc-panel);
	color: var(--rc-panel-text);
	border: 1px solid var(--rc-panel-border);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.rc-eq__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rc-panel-title {
	margin: 0;
	font-size: 1.05rem;
	color: var(--rc-panel-accent);
}

.rc-eq__status {
	margin: 6px 0 10px;
	font-size: 0.875rem;
	color: var(--rc-panel-muted);
}

.rc-eq[data-status="cors"] .rc-eq__status,
.rc-eq[data-status="reconnect"] .rc-eq__status,
.rc-eq[data-status="unsupported"] .rc-eq__status {
	color: var(--rc-panel-danger);
}

.rc-eq__bands {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rc-panel-border);
}

.rc-eq__band {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	color: var(--rc-panel-accent);
}

.rc-eq__band input[type="range"] {
	writing-mode: vertical-lr;
	direction: rtl;
	width: 28px;
	height: 140px;
	margin: 0;
	accent-color: var(--rc-panel-ui);
	cursor: pointer;
}

.rc-eq__band output {
	font-variant-numeric: tabular-nums;
	color: var(--rc-panel-muted);
	white-space: nowrap;
}

.rc-eq__presets {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.rc-chip {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--rc-panel-border);
	border-radius: 8px;
	background: transparent;
	color: var(--rc-panel-accent);
	cursor: pointer;
}

.rc-chip:hover {
	background: color-mix(in srgb, var(--rc-panel-ui) 12%, transparent);
}

/* Disco más compacto cuando es pequeño (móvil) */
@container (max-width: 380px) {
	.rc-face {
		gap: 4px;
	}

	.rc-name {
		font-size: 14px;
	}

	.rc-play {
		width: 50px;
		height: 50px;
	}

	.rc-volume {
		height: 36px;
	}

	.rc-mute {
		width: 36px;
		height: 36px;
	}

	.rc-volume input[type="range"] {
		height: 36px;
	}
}

@media (max-width: 720px) {
	.rc-tools {
		position: static;
		align-self: flex-start;
	}
}

@media (max-width: 600px) {
	.rc-eq {
		bottom: 12px;
	}

	.rc-eq__bands {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.rc-eq__band {
		display: grid;
		grid-template-columns: 58px 1fr 56px;
		align-items: center;
	}

	.rc-eq__band input[type="range"] {
		writing-mode: horizontal-tb;
		direction: ltr;
		width: 100%;
		height: 28px;
	}

	.rc-eq {
		padding: 10px 14px 14px;
	}

	.rc-eq__status {
		margin: 4px 0 6px;
	}

	.rc-eq__presets {
		gap: 6px;
		margin-top: 8px;
	}

	.rc-chip {
		min-height: 36px;
		padding: 0 10px;
	}
}

@media (max-width: 480px) {
	.menu-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.menu-toggle {
		padding: 0 12px;
	}

	.site-header .rc-icon-btn {
		width: 36px;
		height: 36px;
	}

	.site-header .rc-group {
		gap: 3px;
		padding: 3px;
	}

	.rc-row {
		gap: 10px;
	}
}
