/*
Theme Name: Baladas Clásicas y Viejitas
Theme URI: https://example.com
Author: Tu emisora
Description: Tema de noticias y radio inspirado en diseño moderno con hero, carruseles, ranking musical y multimedia.
Version: 1.12.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baladas-clasicas
*/

/* === Variables === */
:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-accent: #e31e24;
  --color-accent-hover: #c41a1f;
  --portal-red: #e3000f;
  --color-badge-trends: #f5a623;
  --color-badge-life: #e67e22;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Lato", system-ui, -apple-system, sans-serif;
  --container: 1220px;
  /* Ancho máximo del cuerpo del artículo (singles, páginas de contenido) */
  --content-max-width: 760px;
  /* Altura aproximada del reproductor fijo: define en CSS adicional si usas barra persistente */
  --radio-player-height: 86px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --color-bg: #0f0f0f;
  --color-surface: #1a1a1a;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  transition: background 0.25s ease, color 0.25s ease;
  /* Evita que el contenido quede tapado por un reproductor sticky (plugins / CSS propio) */
  padding-bottom: var(--radio-player-height);
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 900;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* === Header — sticky, drawer, buscar + tema alineados === */
body.nav-drawer-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
  transition: padding 0.25s ease, min-height 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 60px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.header-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-accent), #9b1c1f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-logo-circle--sm {
  width: 40px;
  height: 40px;
  font-size: 10px;
}

.custom-logo-link img {
  max-height: 52px;
  width: auto;
}

.site-title-text {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.15;
  color: var(--color-text);
  max-width: 140px;
}

/* Menú escritorio — Lato 700, AJAX vía data-baladas-ajax-nav en PHP */
.main-navigation--desktop {
  flex: 1;
  display: none;
  justify-content: center;
  min-width: 0;
}

.main-navigation--desktop .menu-principal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
}

.main-navigation--desktop a {
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  padding: 8px 4px;
}

.main-navigation--desktop a:hover,
.main-navigation--desktop .current-menu-item > a,
.main-navigation--desktop .current_page_item > a {
  color: var(--color-accent);
}

/* Submenús escritorio (dropdown) — min-width 1025px */
@media (min-width: 1025px) {
  .main-navigation--desktop .menu-item-has-children {
    position: relative;
  }

  .main-navigation--desktop .menu-item-has-children > a {
    position: relative;
  }

  .main-navigation--desktop .menu-item-has-children > a::after {
    content: "";
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
  }

  .main-navigation--desktop .sub-menu {
    position: absolute;
    top: 150%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition:
      opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
      visibility 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
      transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
      top 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-width: 220px;
    padding: 12px 0;
    z-index: 999;
    border: 1px solid rgba(0, 0, 0, 0.05);
    list-style: none;
    margin: 0;
  }

  [data-theme="dark"] .main-navigation--desktop .sub-menu {
    background: var(--color-surface);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  }

  .main-navigation--desktop .menu-item-has-children:hover > .sub-menu {
    top: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-navigation--desktop .menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
  }

  .main-navigation--desktop .sub-menu li {
    margin: 0;
    padding: 0;
  }

  .main-navigation--desktop .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      padding-left 0.2s ease;
  }

  [data-theme="dark"] .main-navigation--desktop .sub-menu li a {
    color: var(--color-text);
  }

  .main-navigation--desktop .sub-menu li a:hover,
  .main-navigation--desktop .sub-menu li a:focus {
    background-color: #f8f9fa;
    color: var(--portal-red, #e3000f);
    padding-left: 25px;
  }

  [data-theme="dark"] .main-navigation--desktop .sub-menu li a:hover,
  [data-theme="dark"] .main-navigation--desktop .sub-menu li a:focus {
    background-color: rgba(255, 255, 255, 0.06);
  }

  /* Segundo nivel anidado */
  .main-navigation--desktop .sub-menu .menu-item-has-children {
    position: relative;
  }

  .main-navigation--desktop .sub-menu .menu-item-has-children > .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 6px;
    transform: translateY(8px);
  }

  .main-navigation--desktop .sub-menu .menu-item-has-children:hover > .sub-menu {
    top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@keyframes baladas-submenu-slide-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Drawer / móvil: submenús en acordeón */
.site-nav-drawer__menu .menu-item-has-children {
  position: relative;
}

.site-nav-drawer__menu .menu-item-has-children > a {
  position: relative;
  padding-right: 36px;
}

.site-nav-drawer__menu .menu-item-has-children > a::after {
  content: "";
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -5px;
  transition: transform 0.3s ease;
  opacity: 0.75;
  pointer-events: none;
}

.site-nav-drawer__menu .menu-item-has-children.is-open > a::after {
  transform: rotate(-135deg);
}

.site-nav-drawer__menu .sub-menu {
  position: static;
  box-shadow: none;
  transform: none;
  visibility: visible;
  opacity: 1;
  display: none;
  padding-left: 20px;
  padding-top: 4px;
  padding-bottom: 4px;
  background: transparent;
  border: none;
  list-style: none;
  margin: 0;
}

.site-nav-drawer__menu .sub-menu.is-open {
  display: block;
  animation: baladas-submenu-slide-down 0.3s ease forwards;
}

.site-nav-drawer__menu .sub-menu li {
  margin: 0;
  padding: 0;
}

.site-nav-drawer__menu .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}

[data-theme="dark"] .site-nav-drawer__menu .sub-menu li a {
  color: var(--color-text-muted);
}

.site-nav-drawer__menu .sub-menu li a:hover,
.site-nav-drawer__menu .sub-menu li a:focus {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--portal-red, #e3000f);
  padding-left: 25px;
}

[data-theme="dark"] .site-nav-drawer__menu .sub-menu li a:hover,
[data-theme="dark"] .site-nav-drawer__menu .sub-menu li a:focus {
  background-color: rgba(255, 255, 255, 0.06);
}

/* Bloque derecho: buscar + tema + hamburguesa */
.header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-end {
    gap: 20px;
  }
}

/* Buscador y modo oscuro: 12px móvil, 20px escritorio */
.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

@media (min-width: 768px) {
  .header-actions {
    gap: 20px;
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.icon-btn:hover {
  background: rgba(227, 30, 36, 0.12);
  color: var(--color-accent);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: flex;
}

@media (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }

  .main-navigation--desktop {
    display: flex;
  }
}

/* Móvil: búsqueda y tema en drawer */
@media (max-width: 767px) {
  .header-search-toggle {
    display: none !important;
  }

  .header-actions > .theme-toggle {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .site-nav-drawer__footer {
    display: none;
  }
}

/* Drawer lateral */
.site-nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.site-nav-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(100%, 380px);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  background: var(--color-bg);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow: hidden auto;
}

[data-theme="dark"] .site-nav-drawer {
  border-left-color: rgba(255, 255, 255, 0.1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

.site-nav-drawer.is-open {
  transform: translateX(0);
}

@media (min-width: 1025px) {
  .site-nav-drawer,
  .site-nav-drawer-backdrop {
    display: none !important;
  }
}

.site-nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

[data-theme="dark"] .site-nav-drawer__top {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-nav-drawer__brand {
  min-width: 0;
  flex: 1;
}

.site-nav-drawer__logo .custom-logo-link img {
  max-height: 40px;
  width: auto;
}

.site-nav-drawer__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-nav-drawer__site-name {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-drawer__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.site-nav-drawer__close:hover {
  background: rgba(227, 30, 36, 0.12);
  color: var(--color-accent);
}

.site-nav-drawer__close-icon {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.site-nav-drawer__nav {
  flex: 1;
  padding: 12px 0 8px;
  overflow-y: auto;
}

.site-nav-drawer__menu {
  list-style: none;
  margin: 0;
  padding: 0 8px;
}

.site-nav-drawer__menu li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .site-nav-drawer__menu li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-nav-drawer__menu a {
  display: block;
  padding: 14px 12px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.site-nav-drawer__menu a:hover,
.site-nav-drawer__menu .current-menu-item > a {
  color: var(--color-accent);
}

.site-nav-drawer__search {
  padding: 16px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

[data-theme="dark"] .site-nav-drawer__search {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.site-nav-drawer__search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-nav-drawer__search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  background: var(--color-bg);
  color: var(--color-text);
}

.site-nav-drawer__search-submit {
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  cursor: pointer;
}

.site-nav-drawer__footer {
  padding: 12px 18px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
}

[data-theme="dark"] .site-nav-drawer__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* === Section titles === */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
}

.section-title .chevron {
  color: var(--color-accent);
  font-weight: 700;
}

/* Enlace en título de sección (Últimas noticias, categoría en portada) */
.section-title-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.section-title-link:hover,
.section-title-link:focus {
  color: inherit;
  text-decoration: none;
}

.section-title-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-title-link__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}

.section-title-link__chevron .fa-chevron-right {
  font-size: 0.72em;
  line-height: 1;
  vertical-align: middle;
}

.section-title-link:hover .section-title-link__chevron,
.section-title-link:focus-visible .section-title-link__chevron {
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  .section-title-link__chevron {
    transition: none;
  }

  .section-title-link:hover .section-title-link__chevron,
  .section-title-link:focus-visible .section-title-link__chevron {
    transform: none;
  }
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

[data-theme="dark"] .carousel-btn {
  border-color: rgba(255, 255, 255, 0.15);
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* === Badge === */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.badge-noticias {
  background: var(--color-accent);
}

a.badge.badge--link {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  border: none;
  vertical-align: baseline;
}

a.badge.badge--link:hover,
a.badge.badge--link:focus {
  color: #fff;
  opacity: 0.92;
  text-decoration: none;
}

a.badge.badge--link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.badge-tendencias {
  background: var(--color-badge-trends);
  color: #1a1a1a;
}

.badge-estilo {
  background: var(--color-badge-life);
}

/* === Hero === */
.hero-section {
  padding: 28px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background: #111;
}

.hero-main__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}

.hero-main__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
  display: block;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
  pointer-events: none;
}

.hero-main .badge,
.hero-main a.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.hero-main-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.hero-main-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-side-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: box-shadow 0.2s;
}

.hero-side-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 500px) {
  .hero-side-item {
    grid-template-columns: 100px 1fr;
  }
}

.hero-side-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-item__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.hero-side-body .badge,
.hero-side-body a.badge {
  margin-bottom: 6px;
}

.hero-side-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.hero-side-title-link {
  color: inherit;
  text-decoration: none;
}

.hero-side-title-link:hover,
.hero-side-title-link:focus {
  color: var(--color-accent);
  text-decoration: none;
}

.hero-side-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* === Latest news carousel === */
.latest-section {
  padding: 16px 0 48px;
}

.carousel-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  margin: 0 -20px;
  padding: 0 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-wrap::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-bottom: 4px;
}

.news-card {
  flex: 0 0 calc(25% - 13.5px);
  min-width: 0;
}

@media (max-width: 1100px) {
  .news-card {
    flex: 0 0 calc(33.333% - 12px);
  }
}

@media (max-width: 768px) {
  .news-card {
    flex: 0 0 calc(50% - 9px);
  }
}

@media (max-width: 480px) {
  .news-card {
    flex: 0 0 100%;
  }
}

.news-card-inner {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card.latest-news__item:hover .news-card-inner,
.news-card.category-news__item:hover .news-card-inner {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.news-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 14px 16px 18px;
}

.news-card-body .badge,
.news-card-body a.badge {
  margin-bottom: 8px;
}

.news-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.news-card-title-link {
  color: inherit;
  text-decoration: none;
}

.news-card-title-link:hover,
.news-card-title-link:focus {
  color: var(--color-accent);
  text-decoration: none;
}

.news-card-excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Últimas noticias + bloques por categoría (misma grilla) === */
.baladas-news-grid-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.baladas-archivo-cat .baladas-news-grid-block {
  margin-top: 0;
}

/* Tablet: 2 columnas */
@media (min-width: 600px) {
  .baladas-news-grid-block {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .baladas-news-grid-block {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .baladas-news-grid-block {
    grid-template-columns: repeat(4, 1fr);
  }
}

.baladas-news-grid-block .news-card-body {
  padding: 14px 14px 18px;
}

.baladas-news-grid-block .news-card-title {
  font-size: 14px;
  line-height: 1.35;
}

.baladas-news-grid-block .news-card-excerpt {
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

/* Portada v1.7+ — mini zoom en tarjetas de noticias (hero principal, lateral, últimas, categoría) */
.hero-main .hero-main__media.news-item__image-wrapper,
.hero-news__item .news-item__image-wrapper,
.latest-news__item .news-item__image-wrapper,
.category-news__item .news-item__image-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.hero-main .hero-main__media.news-item__image-wrapper {
  border-radius: inherit;
}

.hero-main .hero-main__media.news-item__image-wrapper img,
.hero-news__item .news-item__image-wrapper img,
.latest-news__item .news-item__image-wrapper img,
.category-news__item .news-item__image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
  transform: scale(1);
  transform-origin: center center;
}

.hero-main .hero-main__media.news-item__image-wrapper:hover img,
.hero-news__item:hover .news-item__image-wrapper img,
.latest-news__item:hover .news-item__image-wrapper img,
.category-news__item:hover .news-item__image-wrapper img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero-main .hero-main__media.news-item__image-wrapper img,
  .hero-news__item .news-item__image-wrapper img,
  .latest-news__item .news-item__image-wrapper img,
  .category-news__item .news-item__image-wrapper img {
    transition: none;
  }

  .hero-main .hero-main__media.news-item__image-wrapper:hover img,
  .hero-news__item:hover .news-item__image-wrapper img,
  .latest-news__item:hover .news-item__image-wrapper img,
  .category-news__item:hover .news-item__image-wrapper img {
    transform: scale(1);
  }
}

/* === Archivo de noticias por categoría === */
.baladas-archivo-section {
  padding: 16px 0 56px;
}

.baladas-archivo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 28px;
}

.baladas-archivo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text);
}

.baladas-archivo-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.baladas-archivo-pill.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.baladas-archivo-cat {
  padding: 24px 0 10px;
}

.baladas-archivo-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.baladas-archivo-section__title {
  margin: 0;
}

.baladas-archivo-cat-hash {
  color: var(--color-accent);
  font-weight: 900;
}

.baladas-archivo-ver-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text);
}

.baladas-archivo-ver-mas:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* === Ranking Top 21 (portada + archivo) === */
.ranking-section {
  padding: 16px 0 48px;
}

.ranking-section__head {
  margin-bottom: 8px;
}

/* Portada: carrusel horizontal + escritorio 5 columnas */
.ranking-home-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 8px 16px 16px;
  scrollbar-width: thin;
}

.ranking-home-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  width: max-content;
  min-width: 100%;
}

.ranking-home-item {
  flex: 0 0 calc(48% - 7px);
  max-width: 280px;
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 700px) and (max-width: 1099px) {
  .ranking-home-item {
    flex: 0 0 calc(32% - 10px);
    max-width: 320px;
  }
}

@media (min-width: 1100px) {
  .ranking-home-scroll {
    overflow: visible;
    margin: 0;
    padding: 8px 0 0;
    scroll-snap-type: none;
  }

  .ranking-home-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
  }

  .ranking-home-item {
    flex: none;
    max-width: none;
    width: auto;
  }
}

.ranking-cover-link {
  display: block;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

.ranking-cover-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.ranking-play-overlay {
  pointer-events: none;
}

.ranking-play-overlay .ranking-play-btn {
  pointer-events: auto;
}

.ranking-num--home {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 900;
  font-family: var(--font);
  line-height: 1;
  margin-top: 8px;
}

.ranking-track-link {
  color: inherit;
  text-decoration: none;
}

.ranking-track-link:hover,
.ranking-track-link:focus {
  color: var(--color-accent);
}

/* Archivo ranking — estilo lista tipo Los 40 */
.ranking-archive--l40 {
  padding: 24px 0 64px;
  background: linear-gradient(180deg, #f3f4f6 0%, #fff 120px);
}

.ranking-archive__header {
  margin-bottom: 28px;
  text-align: center;
}

.ranking-archive__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font);
  color: #111;
}

.ranking-archive__intro {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Legacy grid (otras vistas) */
.ranking-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .ranking-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .ranking-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--color-surface);
  position: relative;
  min-height: 120px;
}

.ranking-item.is-playing {
  background: var(--color-accent);
  color: #fff;
}

.ranking-item.is-playing .ranking-num {
  color: #fff;
}

.ranking-item.is-playing .ranking-track {
  color: #fff;
}

.ranking-item.is-playing .ranking-artist {
  color: rgba(255, 255, 255, 0.9);
}

.ranking-cover-wrap {
  grid-column: 1 / -1;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 100%;
}

.ranking-section--home .ranking-cover-wrap .ranking-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ranking-section--home .ranking-cover-wrap:hover .ranking-play-overlay {
  opacity: 1;
}

.ranking-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s;
}

.ranking-item.is-playing .ranking-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

.ranking-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 4px;
}

.ranking-meta {
  display: contents;
}

.ranking-num {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
  align-self: end;
}

.ranking-text {
  align-self: end;
  min-width: 0;
}

.ranking-track {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

.ranking-artist {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.ranking-item.is-playing .ranking-artist {
  color: rgba(255, 255, 255, 0.85);
}

/* Reorder grid for cover on top */
.ranking-item {
  grid-template-rows: auto auto;
}

.ranking-cover-wrap {
  grid-row: 1;
  grid-column: 1 / -1;
}

.ranking-num {
  grid-row: 2;
  grid-column: 1;
}

.ranking-text {
  grid-row: 2;
  grid-column: 2;
}

/* === Podcasts === */
.podcasts-section {
  padding: 16px 0 48px;
}

.podcast-card {
  flex: 0 0 calc(20% - 14.4px);
  min-width: 0;
}

@media (max-width: 1024px) {
  .podcast-card {
    flex: 0 0 calc(25% - 13.5px);
  }
}

@media (max-width: 768px) {
  .podcast-card {
    flex: 0 0 calc(33.333% - 12px);
  }
}

@media (max-width: 520px) {
  .podcast-card {
    flex: 0 0 calc(50% - 9px);
  }
}

.podcast-card a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.podcast-card a:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.podcast-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Videos === */
.videos-section {
  padding: 16px 0 48px;
}

.videos-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .videos-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .videos-row {
    grid-template-columns: 1fr;
  }
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #111;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 50%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  font-size: 20px;
  padding-left: 4px;
  transition: transform 0.2s, background 0.2s;
}

.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-accent-hover);
}

.video-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  z-index: 2;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* === Stations === */
.stations-section {
  padding: 16px 0 56px;
  text-align: center;
}

.stations-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 36px;
}

.station-logo {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(0.15);
  transition: opacity 0.2s, transform 0.2s;
}

.station-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.station-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 48px;
  padding: 0 14px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* === Footer (Chérie-style: franja roja + bloque negro) === */
.site-footer.site-footer--cherie {
  background: #000;
  color: #fff;
  border-top: none;
  padding: 0;
  font-family: var(--font);
}

/* Franja roja superior */
.footer-franja-roja {
  background: #e31e24;
  padding: 16px 0;
}

.footer-franja-roja__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-franja-roja__logo-link.custom-logo-link,
.footer-franja-roja__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer-franja-roja__logo .custom-logo {
  max-height: 44px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-franja-roja__sitename {
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer-franja-roja__sitename:hover {
  color: #fff;
  opacity: 0.92;
}

.footer-franja-roja__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  color: #fff;
  text-decoration: none;
}

.footer-social-link:hover {
  color: #fff;
  opacity: 0.9;
}

.footer-social-link__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  font-size: 15px;
}

.footer-social-link__circle i {
  line-height: 1;
}

/* Cuerpo negro — 4 columnas */
.footer-cuerpo-negro {
  background: #000;
  padding: 40px 0 32px;
}

.footer-columns.footer-columns--cherie {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  align-items: start;
}

/* Encabezados de columnas del pie: Lato Black + mayúsculas (estética Chérie FM) */
.footer-col__title {
  margin: 0 0 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.3;
}

.footer-menu,
.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font);
}

.footer-menu > li {
  margin-bottom: 10px;
}

.footer-menu a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-menu .sub-menu {
  margin-top: 8px;
  padding-left: 14px;
  border-left: 2px solid #e31e24;
}

.footer-menu .sub-menu li {
  margin-bottom: 8px;
}

/* Botones tienda (App Store / Google Play) — cápsula negra, borde blanco */
.footer-store-badges {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.footer-store-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  min-height: 56px;
  box-sizing: border-box;
  background: #000;
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font);
  max-width: 280px;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.footer-store-btn:hover,
.footer-store-btn:focus {
  color: #fff;
  opacity: 0.92;
  border-color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.footer-store-btn:focus-visible {
  outline: 2px solid #e31e24;
  outline-offset: 2px;
}

.footer-store-btn__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  font-size: 2.125rem;
  line-height: 1;
}

.footer-store-btn__icon .fa-apple {
  font-size: 2.35rem;
}

.footer-store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  line-height: 1.25;
}

.footer-store-btn__line1 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.footer-store-btn__line2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

/* Barra copyright */
.footer-barra-copy {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 24px;
}

.footer-copyright {
  margin: 0;
  text-align: center;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 992px) {
  .footer-columns.footer-columns--cherie {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .footer-columns.footer-columns--cherie {
    grid-template-columns: 1fr;
  }

  .footer-store-badges {
    align-items: center;
  }

  .footer-store-btn {
    width: 100%;
    max-width: min(320px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  /* Espacio para reproductor de radio fijo */
  .site-footer.site-footer--cherie {
    padding-bottom: 90px;
  }
}

/* Paginación */
.navigation.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.navigation.pagination a,
.navigation.pagination span,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.navigation.pagination a:hover,
.nav-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.navigation.pagination .current,
.nav-links .current {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* === Search overlay === */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 280;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 20px;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 560px;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.search-overlay form {
  display: flex;
  gap: 10px;
}

.search-overlay input[type="search"] {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--color-surface);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
}

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* === Utilities === */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Fallbacks cuando no hay contenido en CPTs / noticias */
.cpt-fallback {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 28px;
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

[data-theme="dark"] .cpt-fallback {
  border-color: rgba(255, 255, 255, 0.12);
}

.cpt-fallback strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--color-text);
}

.latest-section .carousel-wrap .cpt-fallback {
  width: 100%;
  max-width: none;
}

.podcasts-section .carousel-wrap .cpt-fallback {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track > .cpt-fallback {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

/* Portada modular (shortcodes en el editor) */
.front-page-content {
  width: 100%;
}

.front-page-content__article {
  margin: 0;
}

/* Archive blog (index) — grid clásico */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* === Portal de noticias por categorías (home.php) + archivo categoría (archive.php) === */
.news-portal-wrap {
  padding: 32px 0 64px;
  background: var(--color-bg);
}

/* Ancho alineado con cabecera/pie: usar junto a .container en home.php / archive.php */
.news-portal-container {
  box-sizing: border-box;
}

.news-portal-page-title {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--color-text);
}

.news-portal-section {
  margin-bottom: clamp(40px, 6vw, 56px);
}

.news-portal-section:last-of-type {
  margin-bottom: 0;
}

.news-portal-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.news-portal-section__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-text);
}

.text-red {
  color: var(--portal-red);
}

.text-red-portal {
  color: var(--portal-red);
}

.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-red);
  border: 2px solid var(--portal-red);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-ver-mas:hover,
.btn-ver-mas:focus {
  background: var(--portal-red);
  color: #fff;
}

.news-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-news-card {
  margin: 0;
  min-width: 0;
  height: 100%;
}

.portal-news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-news-card__link:hover,
.portal-news-card__link:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .portal-news-card__link:hover,
[data-theme="dark"] .portal-news-card__link:focus {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.portal-news-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(0, 0, 0, 0.06);
}

.portal-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 14px 16px;
}

.portal-news-card__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-news-card__excerpt {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

[data-theme="dark"] .portal-news-card__excerpt {
  color: var(--color-text-muted);
}

.portal-news-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.portal-news-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  color: var(--color-text-muted);
}

.portal-news-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.portal-news-card__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--portal-red);
  line-height: 1.2;
}

.portal-news-card__time {
  font-size: 10px;
  color: #888;
  line-height: 1.2;
}

[data-theme="dark"] .portal-news-card__time {
  color: var(--color-text-muted);
}

.news-portal-empty {
  margin: 0;
  color: var(--color-text-muted);
}

/* Archivo categoría / etiqueta */
.news-portal-archive-header {
  margin-bottom: 24px;
}

.news-portal-archive-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--color-text);
}

.news-portal-archive-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.news-portal-archive-desc p:last-child {
  margin-bottom: 0;
}

.news-portal-container .navigation.pagination {
  margin-top: 40px;
}

.news-portal-container .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.news-portal-container .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}

.news-portal-container .page-numbers.current {
  background: var(--color-accent);
  color: #fff;
}

.news-portal-container a.page-numbers:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

/* Tablet: 3 columnas; en portal (home) ocultar solo la 4ª tarjeta */
@media (max-width: 1024px) {
  .news-category-grid:not(.news-category-grid--archive) .portal-news-card:nth-child(n + 4) {
    display: none;
  }

  .news-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Archivo: tablet en 3 columnas (todas las entradas visibles; sin ocultar 4–5) */
@media (max-width: 1024px) {
  .news-category-grid--archive {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Móvil: carril horizontal con snap (≈1,5 tarjetas) */
@media (max-width: 768px) {
  .news-category-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-inline: 0;
    grid-template-columns: unset;
    scrollbar-width: thin;
  }

  .news-category-grid::-webkit-scrollbar {
    height: 6px;
  }

  .news-category-grid .portal-news-card {
    flex: 0 0 calc(66.666% - 8px);
    min-width: calc(66.666% - 8px);
    max-width: calc(66.666% - 8px);
    scroll-snap-align: start;
    display: block;
  }

  .news-category-grid:not(.news-category-grid--archive) .portal-news-card:nth-child(n + 4) {
    display: block;
  }

  .news-category-grid--archive {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-category-grid--archive .portal-news-card {
    flex: none;
    min-width: 0;
    max-width: none;
    scroll-snap-align: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-category-grid {
    scroll-behavior: auto;
  }

  .portal-news-card__link {
    transition: none;
  }
}

.baladas-categoria-section {
  padding: 16px 0 48px;
}

/* Título H2 del bloque [baladas_categoria]: Lato Black + mayúsculas */
.baladas-categoria-section .section-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

/* === Singles (noticias, video, top 21, podcast) === */
.single-skin {
  font-family: var(--font);
  padding-top: 32px;
  padding-bottom: clamp(48px, 8vw, 88px);
}

.single-skin .container {
  max-width: var(--container);
}

.single-skin__inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Reproductor fijo: el iframe/audio del plugin sigue en wp_footer; este espacio evita solapamiento */
body.has-fixed-radio-player {
  --radio-player-height: 80px;
}

/* —— Noticias (magazine) —— */
.single-magazine {
  padding-bottom: clamp(56px, 10vw, 100px);
}

.single-magazine__header {
  margin-bottom: 28px;
}

.single-magazine__badge {
  margin-bottom: 14px;
}

.single-magazine__title {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.single-magazine__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.single-magazine__meta a {
  color: var(--color-accent);
}

.single-magazine__meta a:hover {
  text-decoration: underline;
}

.single-magazine__figure {
  margin: 0 0 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.single-magazine__figure img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.single-magazine .entry-content {
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.75;
  color: var(--color-text);
}

.single-magazine .entry-content > *:first-child {
  margin-top: 0;
}

.single-magazine .entry-content h2,
.single-magazine .entry-content h3 {
  font-family: var(--font);
  font-weight: 900;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.single-magazine .entry-content p {
  margin-bottom: 1.15em;
}

.single-magazine .entry-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-magazine .entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.single-magazine .entry-content img {
  border-radius: var(--radius-sm);
}

/* === Single noticias (nuevo mockup) — contención + hero fluido === */
.single-news {
  --single-pad-x: 20px;
  padding-top: 28px;
  padding-bottom: clamp(56px, 10vw, 100px);
  max-width: 100%;
  overflow-x: clip;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .single-news {
    --single-pad-x: 40px;
  }
}

@media (min-width: 1024px) {
  .single-news {
    --single-pad-x: 20px;
  }
}

.single-news .container.single-news__container {
  max-width: min(100%, var(--container));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--single-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--single-pad-x), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.single-news__category {
  color: var(--color-accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  margin: 0 0 14px;
}

/* Hero: móvil/tablet = columna pura; escritorio ≥1025 = solapamiento */
.single-news-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 28px;
  width: 100%;
  max-width: 100%;
}

.single-news-hero__thumb {
  width: 100%;
  max-width: 100%;
  flex: none;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.single-news-hero__thumb img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
}

.single-news-hero__red {
  width: 100%;
  max-width: 100%;
  flex: none;
  margin-left: 0;
  margin-bottom: 0;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.single-news-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3.8vw, 2.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.single-news-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  line-height: 1.55;
  font-size: 14px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.single-news-hero__meta {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.single-news-hero__author-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.single-news-hero__author-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.single-news__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.single-news__main {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-x: hidden;
}

.single-news__sidebar {
  max-width: none;
  min-width: 0;
}

@media (min-width: 1025px) {
  .single-news-hero {
    flex-direction: row;
    align-items: flex-end;
    gap: 22px;
    margin-bottom: 34px;
  }

  .single-news-hero__thumb {
    flex: 0 0 64%;
    width: auto;
    max-width: none;
  }

  .single-news-hero__red {
    flex: 0 0 40%;
    width: auto;
    max-width: none;
    margin-left: -64px;
    margin-bottom: 16px;
    padding: 26px 24px 22px;
  }

  .single-news__layout {
    grid-template-columns: minmax(0, var(--content-max-width)) minmax(0, 1fr);
    gap: 48px;
  }

  .single-news__sidebar {
    max-width: 360px;
  }
}

/* Compartir — Font Awesome 6, colores de marca, pills circulares */
.single-news__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 8px 0 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .single-news__social {
    justify-content: flex-start;
    gap: 14px;
  }
}

.single-news__social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.single-news__social-btn i {
  font-size: 18px;
  line-height: 1;
}

.single-news__social-btn--facebook {
  background: #1877f2;
}

.single-news__social-btn--x {
  background: #000000;
}

.single-news__social-btn--whatsapp {
  background: #25d366;
}

.single-news__social-btn--telegram {
  background: #229ed9;
}

.single-news__social-btn:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
  opacity: 0.92;
}

.single-news__social-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.single-news__content a {
  color: var(--color-accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-news__content p {
  margin-bottom: 1.15em;
}

.single-news__content.entry-content {
  margin-bottom: clamp(22px, 5vw, 32px);
}

/* Contención del cuerpo del artículo + tipografía + multimedia */
.single-news .entry-content {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  overflow-x: hidden;
}

.single-news .entry-content h1,
.single-news .entry-content h2,
.single-news .entry-content h3,
.single-news .entry-content h4,
.single-news .entry-content h5,
.single-news .entry-content h6,
.single-news .entry-content p,
.single-news .entry-content li {
  overflow-wrap: break-word;
  hyphens: auto;
}

.single-news .entry-content h1,
.single-news .entry-content h2,
.single-news .entry-content h3 {
  font-weight: 900;
  line-height: 1.2;
}

.single-news .entry-content :where(img, video, embed, object) {
  max-width: 100% !important;
  height: auto !important;
}

.single-news .entry-content figure {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.single-news .entry-content figure img {
  max-width: 100% !important;
  height: auto !important;
}

/*
 * Embeds en single: solo clases de bloque WP (no reglas globales sobre iframe).
 * — Multimedia: YouTube + Vimeo = ancho del artículo (~760px), 16:9.
 * — Social: Instagram, TikTok, X/Twitter, Facebook = max 550px centrado.
 */

/* HTML personalizado / párrafo (classic): solo contener ancho, sin forzar ratio */
.single-news .entry-content .wp-block-html iframe,
.single-news .entry-content p > iframe {
  max-width: 100%;
}

/* Multimedia: YouTube y Vimeo (no usar .is-type-video solo: evita TikTok u otros) */
.single-news .entry-content .wp-block-embed.wp-block-embed-youtube,
.single-news .entry-content .wp-block-embed.wp-block-embed-vimeo {
  width: 100%;
  max-width: min(100%, var(--content-max-width)) !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.single-news .entry-content .wp-block-embed.wp-block-embed-youtube .wp-block-embed__wrapper,
.single-news .entry-content .wp-block-embed.wp-block-embed-vimeo .wp-block-embed__wrapper {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

.single-news .entry-content .wp-block-embed.wp-block-embed-youtube iframe,
.single-news .entry-content .wp-block-embed.wp-block-embed-vimeo iframe {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

/* Social: ancho limitado, centrado, sombra suave (clases proveedor Gutenberg) */
.single-news .entry-content .wp-block-embed.wp-block-embed-instagram,
.single-news .entry-content .wp-block-embed.wp-block-embed-tiktok,
.single-news .entry-content .wp-block-embed.wp-block-embed-twitter,
.single-news .entry-content .wp-block-embed.wp-block-embed-x,
.single-news .entry-content .wp-block-embed.wp-block-embed-facebook {
  width: 100%;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

[data-theme="dark"] .single-news .entry-content .wp-block-embed.wp-block-embed-instagram,
[data-theme="dark"] .single-news .entry-content .wp-block-embed.wp-block-embed-tiktok,
[data-theme="dark"] .single-news .entry-content .wp-block-embed.wp-block-embed-twitter,
[data-theme="dark"] .single-news .entry-content .wp-block-embed.wp-block-embed-x,
[data-theme="dark"] .single-news .entry-content .wp-block-embed.wp-block-embed-facebook {
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .single-news .entry-content .wp-block-embed.wp-block-embed-instagram,
  .single-news .entry-content .wp-block-embed.wp-block-embed-tiktok,
  .single-news .entry-content .wp-block-embed.wp-block-embed-twitter,
  .single-news .entry-content .wp-block-embed.wp-block-embed-x,
  .single-news .entry-content .wp-block-embed.wp-block-embed-facebook {
    max-width: 100%;
  }
}

/* Wrappers sociales: respetar ratio nativo del embed (no forzar 16:9 aquí) */
.single-news .entry-content .wp-block-embed.wp-block-embed-instagram .wp-block-embed__wrapper,
.single-news .entry-content .wp-block-embed.wp-block-embed-tiktok .wp-block-embed__wrapper,
.single-news .entry-content .wp-block-embed.wp-block-embed-twitter .wp-block-embed__wrapper,
.single-news .entry-content .wp-block-embed.wp-block-embed-x .wp-block-embed__wrapper,
.single-news .entry-content .wp-block-embed.wp-block-embed-facebook .wp-block-embed__wrapper {
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

/* Contenedor 16:9 del tema dentro del contenido */
.single-news .entry-content .video-frame-16x9 {
  width: 100%;
  max-width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
}

.single-news .entry-content .video-frame-16x9 iframe {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Vídeo clásico WP */
.single-news .entry-content .wp-video,
.single-news .entry-content video {
  width: 100% !important;
  max-width: 100% !important;
}

.single-news .entry-content .wp-video .mejs-container,
.single-news .entry-content .wp-video .mejs-layer {
  max-width: 100% !important;
}

/* Tablas y código: scroll horizontal (HTML envuelto por functions.php) */
.baladas-table-scroll,
.baladas-pre-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 1.25em 0;
  box-sizing: border-box;
}

.baladas-table-scroll:focus-visible,
.baladas-pre-scroll:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.baladas-table-scroll table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0 !important;
  border-collapse: collapse;
}

.baladas-pre-scroll pre {
  margin: 0;
  max-width: none;
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
}

/* Etiquetas (pills) — tras el contenido */
.single-news__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 clamp(26px, 6vw, 40px);
  max-width: 100%;
}

.single-news__tags-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin: 0;
}

.single-news__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.single-news__tags-list li {
  margin: 0;
}

.single-news__tag-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eceef0;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.single-news__tag-pill:hover {
  background: #e31e24;
  color: #fff;
  transform: translateY(-1px);
}

[data-theme="dark"] .single-news__tag-pill {
  background: #2a2a2a;
  color: #e5e7eb;
}

[data-theme="dark"] .single-news__tag-pill:hover {
  background: #e31e24;
  color: #fff;
}

.single-news__author {
  margin-top: 0;
  margin-bottom: clamp(28px, 7vw, 44px);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 22px);
}

.single-news__author-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.single-news__author-avatar img {
  border-radius: 999px;
}

.single-news__author-name {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.single-news__author-bio-text {
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.65;
}

.single-news__author-bio-text p:last-child {
  margin-bottom: 0;
}

.single-news__author-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 900;
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.single-news__author-cta:hover {
  border-color: var(--color-accent);
  background: rgba(227, 30, 36, 0.06);
  color: var(--color-accent);
}

[data-theme="dark"] .single-news__author-cta {
  background: #111;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

[data-theme="dark"] .single-news__author-cta:hover {
  border-color: var(--color-accent);
  background: rgba(227, 30, 36, 0.15);
}

.single-news__related-title {
  margin: 0 0 18px;
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

/* Noticias relacionadas: móvil = 1 columna / imagen 16:9; tablet+ = 2 columnas */
.single-news__related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-inline: 0;
}

.single-news__related-item {
  display: flex;
  min-width: 0;
}

.single-news__related-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  width: 100%;
  text-decoration: none;
  color: inherit;
  padding: 12px 0 16px;
  -webkit-tap-highlight-color: rgba(227, 30, 36, 0.12);
}

.single-news__related-thumb {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
  flex: 0 0 auto;
}

.single-news__related-thumb img,
.single-news__related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-news__related-headline {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.single-news__sidebar-title {
  margin: 0 0 18px;
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.single-news__most-viewed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-news__most-item a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.single-news__most-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
  flex: 0 0 auto;
}

.single-news__most-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-news__most-headline {
  font-weight: 900;
  line-height: 1.25;
}

/* Lee también (inserción after 2º párrafo) — móvil 1 fila; tablet 2; escritorio 2×2 */
.baladas-lee-tambien {
  margin: 22px 0 10px;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 14px 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.baladas-lee-tambien__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--color-accent);
}

.baladas-lee-tambien__grid {
  display: block;
}

.baladas-lee-tambien__item:nth-child(n + 2) {
  display: none;
}

.baladas-lee-tambien__item {
  min-width: 0;
}

.baladas-lee-tambien__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.baladas-lee-tambien__thumb {
  width: 92px;
  flex: 0 0 92px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
}

.baladas-lee-tambien__thumb img,
.baladas-lee-tambien__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.baladas-lee-tambien__headline {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.45;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .baladas-lee-tambien {
    padding: 16px 18px;
  }

  .baladas-lee-tambien__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .baladas-lee-tambien__item:nth-child(n + 2) {
    display: block;
  }

  .baladas-lee-tambien__item:nth-child(n + 3) {
    display: none;
  }

  .baladas-lee-tambien__link {
    align-items: flex-start;
  }

  .baladas-lee-tambien__thumb {
    width: 88px;
    flex: 0 0 88px;
  }
}

@media (min-width: 1025px) {
  .baladas-lee-tambien {
    padding: 18px 20px;
  }

  .baladas-lee-tambien__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
  }

  /* Muestra las 4 entradas (anula ocultación móvil / tablet). */
  .baladas-lee-tambien__item:nth-child(n + 2) {
    display: block;
  }

  .baladas-lee-tambien__link {
    align-items: flex-start;
  }

  .baladas-lee-tambien__thumb {
    width: 96px;
    flex: 0 0 96px;
  }

  .baladas-lee-tambien__headline {
    font-size: 15px;
    line-height: 1.4;
  }
}

/* Noticias relacionadas: tablet y escritorio en 2 columnas */
@media (min-width: 768px) {
  .single-news__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 4vw, 36px);
  }

  .single-news__related-link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
  }

  .single-news__related-thumb {
    width: 96px;
    flex: 0 0 96px;
    aspect-ratio: 1;
    max-width: 96px;
  }

  .single-news__related-headline {
    font-size: 14px;
    line-height: 1.4;
  }
}

@media (min-width: 1025px) {
  .single-news__related-thumb {
    width: 104px;
    flex: 0 0 104px;
    max-width: 104px;
  }
}

/* —— Video 16:9 —— */
.video-frame-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
  background: #0a0a0a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.video-frame-16x9 > iframe,
.video-frame-16x9 iframe {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0 !important;
}

.video-frame-16x9 .wp-block-embed,
.video-frame-16x9 figure {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

.video-frame-16x9 .wp-block-embed__wrapper {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.single-video__below {
  margin-top: 32px;
}

.single-video__title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-text);
}

.single-video__notice {
  margin: 0;
  padding: 24px;
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* —— Top 21 —— */
.single-skin.single-top21 {
  position: relative;
  overflow: hidden;
}

.single-top21__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    var(--color-surface) 0%,
    var(--color-bg) 45%,
    rgba(227, 30, 36, 0.06) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.single-top21 .container {
  position: relative;
  z-index: 1;
}

.single-top21__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: min(100%, var(--container));
  margin: 0 auto;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .single-top21__grid {
    grid-template-columns: 1fr;
  }
}

.single-top21__visual {
  position: relative;
}

.single-top21__pos-bg {
  position: absolute;
  left: -8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(6rem, 22vw, 11rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.12;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.single-top21__cover {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1;
  max-width: min(100%, 420px);
}

.single-top21__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-ranking__play-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  pointer-events: none;
}

.single-ranking__play-wrap .ranking-play-btn {
  pointer-events: auto;
}

.ranking-play-btn--large {
  width: auto;
  min-width: 148px;
  height: 48px;
  border-radius: 999px;
  padding: 0 22px 0 18px;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ranking-play-btn--large i {
  font-size: 16px;
}

.single-top21__meta {
  position: relative;
  z-index: 1;
}

.single-top21__pos-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 10px 18px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(227, 30, 36, 0.35);
}

.single-top21__pos-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.single-top21__artist {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--color-accent);
}

.single-top21__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.single-top21__content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding-top: 8px;
}

.single-top21__content .entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
}

/* —— Podcast —— */
.single-podcast__wrap {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
  max-width: min(100%, calc(var(--content-max-width) + 120px));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .single-podcast__wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .single-podcast__body {
    width: 100%;
  }
}

.single-podcast__art {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  aspect-ratio: 1;
  width: 100%;
  max-width: 280px;
}

.single-podcast__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-podcast__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-text);
}

.single-podcast__excerpt {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--color-text-muted);
}

.single-podcast__body .entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

.single-podcast__body .entry-content > *:first-child {
  margin-top: 0;
}

/* === Páginas estáticas (limpio, --content-max-width) === */
.page-skin {
  font-family: var(--font);
  padding-top: clamp(32px, 6vw, 56px);
  padding-bottom: clamp(56px, 10vw, 100px);
}

.page-skin .container {
  max-width: var(--container);
}

.page-skin__inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.page-skin__header {
  margin-bottom: clamp(28px, 5vw, 40px);
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .page-skin__header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.page-skin__title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.page-skin__content {
  font-size: clamp(16px, 2.2vw, 17px);
  line-height: 1.75;
  color: var(--color-text);
}

.page-skin__content > *:first-child {
  margin-top: 0;
}

.page-skin__content h2,
.page-skin__content h3 {
  font-family: var(--font);
  font-weight: 900;
  line-height: 1.3;
  margin-top: 1.65em;
  margin-bottom: 0.65em;
  color: var(--color-text);
}

.page-skin__content h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1.65em;
  margin-bottom: 0.65em;
  color: var(--color-text);
}

.page-skin__content p {
  margin-bottom: 1.15em;
}

.page-skin__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-skin__content a:hover {
  color: var(--color-accent-hover);
}

.page-skin__content ul,
.page-skin__content ol {
  margin: 0 0 1.15em 1.25em;
  padding: 0;
}

.page-skin__content li {
  margin-bottom: 0.5em;
}

.page-skin__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.page-skin__pagination {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-muted);
}

[data-theme="dark"] .page-skin__pagination {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.page-skin__pagination-label {
  margin-right: 10px;
}

.page-skin__page-link {
  display: inline-block;
  margin: 4px 6px 4px 0;
}

.page-skin__page-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.page-skin__page-link a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Formularios (Contact Form 7, WPForms, HTML genérico) */
.page-skin__content .wpcf7-form,
.page-skin__content .wpforms-container,
.page-skin__content form {
  margin-top: 0.5rem;
}

.page-skin__content label {
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.page-skin__content input[type="text"],
.page-skin__content input[type="email"],
.page-skin__content input[type="tel"],
.page-skin__content input[type="url"],
.page-skin__content input[type="number"],
.page-skin__content input[type="date"],
.page-skin__content select,
.page-skin__content textarea {
  font-family: var(--font);
  font-size: 15px;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .page-skin__content input[type="text"],
[data-theme="dark"] .page-skin__content input[type="email"],
[data-theme="dark"] .page-skin__content input[type="tel"],
[data-theme="dark"] .page-skin__content input[type="url"],
[data-theme="dark"] .page-skin__content textarea,
[data-theme="dark"] .page-skin__content select {
  border-color: rgba(255, 255, 255, 0.15);
}

.page-skin__content input:focus,
.page-skin__content select:focus,
.page-skin__content textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.15);
}

.page-skin__content textarea {
  min-height: 140px;
  resize: vertical;
}

.page-skin__content input[type="submit"],
.page-skin__content button[type="submit"],
.page-skin__content .wpcf7-submit,
.page-skin__content .wpforms-submit {
  font-family: var(--font);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.page-skin__content input[type="submit"]:hover,
.page-skin__content button[type="submit"]:hover,
.page-skin__content .wpcf7-submit:hover,
.page-skin__content .wpforms-submit:hover {
  background: var(--color-accent-hover);
}

.page-skin__content .wpcf7-spinner {
  margin-left: 8px;
}

.page-skin__content .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
}

/* === Ranking /ranking/ — mockup Los 40 === */
.ranking-archive--l40 {
  padding: 18px 0 56px;
  background: #f2f2f2;
}

.ranking-archive--l40 .container {
  max-width: 1060px;
}

.ranking-archive__header {
  margin-bottom: 16px;
}

.ranking-l40 {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.ranking-l40-row {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.ranking-l40-row:last-child {
  border-bottom: 0;
}

.ranking-l40-row__bar {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr) auto 36px;
  gap: 10px 12px;
  align-items: center;
  min-height: 76px;
  max-height: 80px;
  padding: 0 12px 0 0;
  box-sizing: border-box;
}

.ranking-l40-rank {
  align-self: stretch;
  min-height: 76px;
  max-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ff3b30;
}

.ranking-l40-num {
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #fff;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
}

.ranking-l40-status {
  display: inline-block;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #bfc3c9;
}

.ranking-l40-thumb {
  width: 64px;
  height: 64px;
  border-radius: 0;
  box-shadow: none;
  line-height: 0;
}

.ranking-l40-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ranking-l40-track {
  font-size: clamp(16px, 1.1vw + 14px, 18px);
  font-weight: 800;
  line-height: 1.2;
  color: #111;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-l40-artist {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: #666;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-l40-vote {
  appearance: none;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font);
  color: #fff;
  background: var(--color-accent);
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.ranking-l40-vote:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.ranking-l40-vote:disabled {
  cursor: default;
  opacity: 0.88;
  background: #6b7280;
}

.ranking-l40-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: #f0f1f3;
  color: #8b9097;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ranking-l40-toggle:hover {
  background: #e7e9ed;
}

.ranking-l40-toggle__icon {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.35s ease-out;
}

.ranking-l40-row.is-expanded .ranking-l40-toggle__icon {
  transform: rotate(180deg);
}

.ranking-l40-panel {
  display: block;
  padding: 0 12px;
  margin: 0;
  background: transparent;
  border: 0;
}

.ranking-l40-row.is-expanded .ranking-l40-panel {
  padding: 10px 12px 12px;
}

.ranking-l40-row--first .ranking-l40-panel {
  border-top: 0;
  background: transparent;
}

.ranking-l40-panel[hidden] {
  display: block !important;
}

.ranking-l40-panel-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
}

.ranking-l40-panel-wrapper > .ranking-l40-panel-inner {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.ranking-l40-row.is-expanded .ranking-l40-panel-wrapper {
  grid-template-rows: 1fr;
}

.ranking-l40-content-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 24px;
  box-sizing: border-box;
}

.ranking-l40-panel__stats {
  flex: 0 0 40%;
  min-width: 0;
}

.ranking-l40-panel__video {
  flex: 0 0 60%;
  min-width: 0;
}

.ranking-l40-embed {
  margin: 0;
}

.ranking-l40-embed__ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 250px;
  height: auto;
  border-radius: 8px;
  background: #0f1114;
  overflow: hidden;
}

.ranking-l40-embed__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
}

.ranking-l40-no-video {
  margin: 0;
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}

.ranking-l40-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.ranking-l40-stats__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.ranking-l40-stats dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  font-weight: 600;
}

.ranking-l40-stats__row:nth-child(1) dt::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid #c5c9cf;
  border-radius: 2px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.ranking-l40-stats__row:nth-child(2) dt::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid #c5c9cf;
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.ranking-l40-stats__row:nth-child(3) dt::before {
  content: "";
  width: 8px;
  height: 1px;
  border-radius: 999px;
  background: #c5c9cf;
  flex-shrink: 0;
}

.ranking-l40-stats dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  color: #222;
}

.ranking-l40-stats__row--votes {
  display: none;
}

@media (max-width: 991px) {
  .ranking-l40-row__bar {
    grid-template-columns: 40px 56px minmax(0, 1fr) auto 34px;
    gap: 8px 10px;
    min-height: 72px;
    max-height: 78px;
    padding-right: 10px;
  }

  .ranking-l40-rank {
    min-height: 72px;
    max-height: 78px;
  }

  .ranking-l40-num {
    font-size: 24px;
  }

  .ranking-l40-thumb {
    width: 56px;
    height: 56px;
  }

  .ranking-l40-track {
    font-size: 16px;
  }

  .ranking-l40-artist {
    font-size: 12px;
  }

  .ranking-l40-toggle__icon {
    font-size: 13px;
  }

  .ranking-l40-content-box {
    padding: 14px 16px;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .ranking-l40-content-box {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
    max-width: 100%;
  }

  .ranking-l40-panel__stats,
  .ranking-l40-panel__video {
    flex: 0 0 auto;
    width: 100%;
  }

  .ranking-l40-embed__ratio {
    max-height: 200px;
  }
}

@media (max-width: 640px) {
  .ranking-l40-row__bar {
    grid-template-columns: 36px 48px minmax(0, 1fr) auto 32px;
    gap: 6px 8px;
    min-height: 68px;
    max-height: 72px;
    padding-right: 8px;
  }

  .ranking-l40-rank {
    min-height: 68px;
    max-height: 72px;
    gap: 4px;
  }

  .ranking-l40-num {
    font-size: 22px;
  }

  .ranking-l40-thumb {
    width: 48px;
    height: 48px;
  }

  .ranking-l40-track {
    font-size: 15px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ranking-l40-artist {
    display: none;
  }

  .ranking-l40-vote {
    padding: 5px 12px;
    font-size: 10px;
    letter-spacing: 0.45px;
  }

  .ranking-l40-panel {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ranking-l40-row.is-expanded .ranking-l40-panel {
    padding: 8px 8px 10px;
  }

  .ranking-l40-content-box {
    padding: 12px;
  }

  .ranking-l40-stats {
    gap: 8px 10px;
  }

  .ranking-l40-stats dt::before {
    display: none;
  }

  .ranking-l40-embed__ratio {
    max-height: 180px;
  }
}
