:root {
  /* Color principal (anaranjado del logo) */
  --radio7-main: #ff6a00;
  --radio7-main-dark: #c2410c;
  --bg-body: #f5f5f5;
  --bg-header: #0f172a;
  --bg-nav: #111827;
  --text-main: #111827;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 20px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --transition-fast: 0.2s ease;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

/* Contenedor general */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Cabecera principal */

.site-header {
  background: linear-gradient(135deg, var(--bg-header), #020617);
  color: white;
  padding: 1.7rem 0 1.1rem;
  border-bottom: 3px solid var(--radio7-main);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  width: 210px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

.site-titles h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-titles p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #cbd5f5;
}

/* Navegación */

.main-nav {
  background: var(--bg-nav);
  border-bottom: 1px solid #1f2937;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.5rem 0;
  margin: 0;
}

.nav-list li a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  color: #e5e7eb;
  border: 1px solid transparent;
  transition: background var(--transition-fast), border var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-list li a:hover {
  background: rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.7);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.nav-list li a.active {
  background: var(--radio7-main);
  border-color: var(--radio7-main);
  color: #0f172a;
}

.nav-revista a {
  border-color: #f97316;
  color: #fed7aa;
}

.nav-revista a:hover {
  background: #f97316;
  color: #111827;
}

/* Layout principal */

.main-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.8rem;
  padding: 1.7rem 1rem 2.5rem;
}

/* Player */

.player-section h2,
.sidebar h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.3rem;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.4rem;
}

.player-content {
  position: relative;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.player-meta {
  max-width: 100%;
}

.player-programa {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  color: var(--radio7-main-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-title {
  margin: 0;
  font-size: 1.25rem;
}

.player-info {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.player-description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Descripción colapsable (móvil) */
.player-description.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desc-toggle {
  align-self: flex-start;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.desc-toggle:hover {
  border-color: rgba(255, 106, 0, 0.7);
}

.player-controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-primary {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--radio7-main);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.25);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background: var(--radio7-main-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(255, 106, 0, 0.3);
  color: #e5e7eb;
}

.player-timeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-timeline .time {
  font-size: 0.8rem;
  color: #e5e7eb;
  min-width: 38px;
  text-align: center;
}

#seek-bar {
  flex: 1;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  outline: none;
  cursor: pointer;
}

#seek-bar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--radio7-main);
  border: 2px solid #0f172a;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.3);
}

#seek-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--radio7-main);
  border: 2px solid #0f172a;
}

/* Tarjetas informativas */

.info-section {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}

.info-section p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Sidebar / lista de episodios */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.2rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  max-height: 460px;
  overflow: auto;
}

.episode-item {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.episode-item:last-child {
  border-bottom: none;
}

.episode-item:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.episode-item.active {
  background: rgba(255, 106, 0, 0.06);
  border-left: 3px solid var(--radio7-main);
  padding-left: 0.75rem;
}

.episode-title {
  margin: 0 0 0.2rem;
  font-size: 0.96rem;
  font-weight: 600;
}

.episode-programa {
  margin: 0;
  font-size: 0.83rem;
  color: var(--radio7-main-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.episode-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid #d1d5db;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  background: #f9fafb;
}

/* Responsive */

@media (max-width: 840px) {
  .main-content {
    grid-template-columns: 1fr;
    padding-top: 1.2rem;
  }

  .site-header {
    padding: 1.3rem 0 0.9rem;
  }

  .site-titles h1 {
    font-size: 1.6rem;
  }

  .player-card {
    margin-bottom: 1.2rem;
  }

  .episode-list {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-list {
    flex-wrap: nowrap;
  }

  .header-content {
    justify-content: center;
  }
}
/* Contenedor del botón + menú de secciones */
.top-bar-menu {
  position: relative;
  display: flex;
  align-items: center;
}

/* Menú desplegable de la barra superior */
.top-sections-menu {
  position: absolute;
  right: 0;
  top: 120%;
  background: #111827; /* mismo tono que la nav */
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 0.35rem 0;
  min-width: 210px;
  display: none;           /* oculto por defecto */
  flex-direction: column;
  z-index: 100;
}

.top-sections-menu a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #e5e7eb;
  transition: background 0.2s ease, color 0.2s ease;
}

.top-sections-menu a:hover {
  background: rgba(255, 106, 0, 0.18);
  color: var(--radio7-main);
}

/* Clase para mostrar el menú */
.top-sections-menu.open {
  display: flex;
}

/* En pantallas grandes puedes ocultar el botón si quieres,
   y dejar solo el menú principal de abajo */
@media (min-width: 900px) {
  .menu-toggle span {
    font-size: 0.85rem;
  }
}
.share-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:1.2rem;
}

.share-btn{
  appearance:none;
  border:1px solid var(--border-soft);
  background:#fff;
  color:var(--text-main);
  padding:.55rem .9rem;
  border-radius:999px;
  text-decoration:none;
  cursor:pointer;
  font-size:.92rem;
  transition: transform var(--transition-fast), border var(--transition-fast), background var(--transition-fast);
}

.share-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255, 106, 0, 0.7);
  background: rgba(255, 106, 0, 0.08);
}