:root {
  --rua-player-bg: rgba(255, 255, 255, 0.84);
  --rua-player-line: rgba(15, 36, 54, 0.12);
  --rua-player-text: #112235;
  --rua-player-soft: rgba(17, 34, 53, 0.62);
  --rua-player-accent: #005eb8;
  --rua-player-blue: #003da5;
}

.rua-player-shell,
.rua-player-shell * {
  box-sizing: border-box;
}

.rua-player-shell {
  position: fixed;
  z-index: 99998;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  width: 100%;
  max-width: 100vw;
  padding: 0 clamp(10px, 2vw, 28px) calc(clamp(10px, 1.4vw, 20px) + env(safe-area-inset-bottom, 0px));
  color: var(--rua-player-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.rua-player {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.15fr) 58px minmax(0, 1.35fr) minmax(260px, auto);
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 1500px;
  min-height: 86px;
  margin: 0 auto;
  padding: 14px 20px 14px 104px;
  background:
    linear-gradient(115deg, rgba(0, 90, 139, 0.08), transparent 36%),
    linear-gradient(275deg, rgba(243, 112, 33, 0.11), transparent 36%),
    var(--rua-player-bg);
  border: 1px solid var(--rua-player-line);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 36, 54, 0.2);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  pointer-events: auto;
}

.rua-player[hidden] {
  display: none;
}

.rua-player__art {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  width: 76px;
  height: 76px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: translate(-24%, -50%);
}

.rua-player__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rua-player__station,
.rua-player__program {
  min-width: 0;
}

.rua-player__station strong,
.rua-player__program a {
  display: block;
  overflow: hidden;
  color: var(--rua-player-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rua-player__station span,
.rua-player__program span,
.rua-player__program small {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: var(--rua-player-soft);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rua-player__program a {
  margin-top: 3px;
  font-size: 18px;
}

.rua-player__program small {
  font-size: 12px;
  text-transform: none;
}

.rua-player__play,
.rua-player__tv {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.rua-player__play {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--rua-player-accent);
  box-shadow: 0 14px 28px rgba(243, 112, 33, 0.24);
  transition: transform 160ms ease, filter 160ms ease;
}

.rua-player__play:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.rua-player__play:active {
  transform: translateY(0) scale(0.98);
}

.rua-player__icon {
  position: relative;
  display: block;
}

.rua-player__svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.rua-player__icon-pause {
  display: none;
}

.rua-player__play.is-playing .rua-player__icon-play {
  display: none;
}

.rua-player__play.is-playing .rua-player__icon-pause {
  display: block;
}

.rua-player__icon--play {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid currentColor;
}

.rua-player__play.is-playing .rua-player__icon--play {
  width: 16px;
  height: 22px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
}

.rua-player__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.rua-player__range {
  width: 132px;
  accent-color: var(--rua-player-accent);
}

.rua-player__range:focus {
  outline: 2px solid var(--rua-player-accent);
  outline-offset: 4px;
}

.rua-player__tv,
.rua-tv-modal__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--rua-player-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.rua-player__live {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--rua-player-accent);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.rua-player__live i {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: ruaLivePulse 1.7s infinite;
}

.rua-tv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(4, 9, 15, 0.62);
  pointer-events: auto;
}

.rua-tv-modal[hidden] {
  display: none;
}

.rua-tv-modal__panel {
  position: relative;
  width: min(100%, 980px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--rua-player-line);
  border-radius: 18px;
  background: #101822;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.rua-tv-modal__intro {
  max-width: 620px;
  margin-bottom: 18px;
}

.rua-tv-modal__panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
}

.rua-tv-modal__panel p {
  margin: 0 0 20px;
  color: var(--rua-player-soft);
}

.rua-tv-modal__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #05080c;
  aspect-ratio: 16 / 9;
}

.rua-tv-modal__frame[hidden] {
  display: none;
}

.rua-tv-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rua-tv-modal__link {
  margin-top: 18px;
}

.rua-tv-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

body.rua-pjax-loading {
  cursor: progress;
}

body.rua-pjax-loading main,
body.rua-pjax-loading .site-main,
body.rua-pjax-loading .wp-site-blocks {
  opacity: 0.7;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
}

body.rua-pjax-swapping main,
body.rua-pjax-swapping .site-main,
body.rua-pjax-swapping .wp-site-blocks {
  opacity: 0 !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none;
}

body.rua-pjax-settled main,
body.rua-pjax-settled .site-main,
body.rua-pjax-settled .wp-site-blocks {
  animation: ruaPjaxSettle 0.22s ease both;
}

body.rua-player-active {
  padding-bottom: 132px;
}

@keyframes ruaPjaxSettle {
  from {
    opacity: 0.72;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ruaLivePulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body.rua-pjax-loading main,
  body.rua-pjax-loading .site-main,
  body.rua-pjax-loading .wp-site-blocks {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.rua-pjax-settled main,
  body.rua-pjax-settled .site-main,
  body.rua-pjax-settled .wp-site-blocks {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .rua-player {
    grid-template-columns: minmax(0, 1fr) 52px minmax(220px, auto);
    gap: 14px;
    padding-left: 96px;
  }

  .rua-player__program {
    grid-column: 1 / 3;
  }

  .rua-player__actions {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 860px) {
  .rua-player {
    grid-template-columns: minmax(0, 1fr) 50px;
    padding-left: 92px;
  }

  .rua-player__program,
  .rua-player__actions {
    grid-column: 1 / -1;
  }

  .rua-player__actions {
    grid-row: auto;
    justify-content: space-between;
  }

  body.rua-player-active {
    padding-bottom: 186px;
  }
}

@media (max-width: 640px) {
  .rua-player-shell {
    padding: 0;
  }

  .rua-player {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 12px;
    min-height: 0;
    padding: 12px 12px 12px 76px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    width: 100%;
  }

  .rua-player__art {
    left: 0;
    width: 56px;
    height: 56px;
    transform: translate(10px, -50%);
  }

  .rua-player__station strong {
    font-size: 17px;
  }

  .rua-player__station span,
  .rua-player__program span,
  .rua-player__program small {
    font-size: 11px;
  }

  .rua-player__play {
    width: 48px;
    height: 48px;
  }

  .rua-player__program,
  .rua-player__actions {
    grid-column: 1 / -1;
  }

  .rua-player__program a {
    font-size: 15px;
  }

  .rua-player__actions {
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .rua-player__range {
    width: min(32vw, 110px);
  }

  .rua-player__live,
  .rua-player__tv {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.rua-player-active {
    padding-bottom: 190px;
  }
}

@media (max-width: 420px) {
  .rua-player__range {
    display: none;
  }

  .rua-player__station strong {
    font-size: 15px;
  }

  .rua-player__program a {
    font-size: 14px;
  }

  .rua-player__live,
  .rua-player__tv {
    padding: 0 10px;
  }
}

/* Radio UA 1.0.3: clean broadcast bar + automatic floating TV. */
.rua-player {
  grid-template-columns: minmax(180px, 1fr) 56px minmax(220px, 1.1fr) minmax(220px, auto);
  max-width: 1180px;
  min-height: 78px;
  padding: 12px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(0, 90, 139, 0.08), rgba(243, 112, 33, 0.12));
  border: 1px solid rgba(17, 34, 53, 0.12);
  border-radius: 18px;
  color: #102238;
  box-shadow: 0 16px 42px rgba(16, 34, 56, 0.16);
}

.rua-player__art,
.rua-player__tv {
  display: none !important;
}

.rua-player__station strong,
.rua-player__program a {
  color: #102238;
  font-size: 19px;
  letter-spacing: 0;
}

.rua-player__station span,
.rua-player__program span,
.rua-player__program small {
  color: rgba(16, 34, 56, 0.62);
}

.rua-player__play {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--rua-player-accent);
  box-shadow: 0 12px 24px rgba(243, 112, 33, 0.24);
}

.rua-player__actions {
  gap: 16px;
}

.rua-player__range {
  width: 126px;
}

.rua-player__live {
  min-height: 36px;
  color: #fff;
  background: var(--rua-player-accent);
  font-size: 12px;
}

.rua-tv-float {
  position: fixed;
  z-index: 99997;
  top: calc(22px + var(--wp-admin--admin-bar--height, 0px));
  right: 22px;
  width: min(420px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: #07111c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.rua-tv-float[hidden] {
  display: none;
}

.rua-tv-float__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07111c;
}

.rua-tv-float__frame iframe,
.rua-tv-float__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.rua-tv-float__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.rua-tv-float:hover .rua-tv-float__controls,
.rua-tv-float:focus-within .rua-tv-float__controls {
  opacity: 1;
}

.rua-tv-float__controls button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #102238;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  pointer-events: auto;
}

.rua-tv-float__controls [data-rua-tv-float-expand] {
  align-self: flex-end;
  margin-top: auto;
}

@media (max-width: 1180px) {
  .rua-player {
    grid-template-columns: minmax(180px, 1fr) 52px minmax(180px, 1fr) auto;
    padding-left: 18px;
  }

  .rua-player__program {
    grid-column: auto;
  }

  .rua-player__actions {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .rua-player {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px 14px;
    padding: 12px 14px;
  }

  .rua-player__program,
  .rua-player__actions {
    grid-column: 1 / -1;
  }

  .rua-player__actions {
    justify-content: space-between;
  }

  .rua-tv-float {
    top: calc(14px + var(--wp-admin--admin-bar--height, 0px));
    right: 14px;
    width: min(340px, calc(100vw - 28px));
  }
}

@media (max-width: 640px) {
  .rua-player {
    grid-template-columns: minmax(0, 1fr) 46px;
    border-radius: 16px 16px 0 0;
    padding: 12px 14px;
  }

  .rua-player__station strong {
    font-size: 16px;
  }

  .rua-player__program a {
    font-size: 15px;
  }

  .rua-player__range {
    width: min(38vw, 128px);
  }

  .rua-tv-float {
    width: min(260px, calc(100vw - 24px));
  }
}

@media (max-width: 420px) {
  .rua-player__range {
    display: block;
    width: 92px;
  }

  .rua-player__live {
    min-height: 32px;
    padding: 0 10px;
  }
}

/* Radio UA 1.1.0: final polished overrides. */
.rua-player-shell .rua-player {
  grid-template-columns: 72px minmax(180px, 1fr) 54px minmax(220px, 1.15fr) minmax(210px, auto) !important;
  gap: 16px !important;
  max-width: 1180px !important;
  min-height: 82px !important;
  padding: 12px 18px !important;
  color: #102238 !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(0, 90, 139, 0.10), rgba(243, 112, 33, 0.08)) !important;
  border: 1px solid rgba(16, 34, 56, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 42px rgba(16, 34, 56, 0.18) !important;
  backdrop-filter: blur(18px) saturate(1.28) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.28) !important;
}

.rua-player-shell .rua-player__art {
  position: static !important;
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  filter: drop-shadow(0 7px 16px rgba(16, 34, 56, 0.14)) !important;
  transform: none !important;
}

.rua-player-shell .rua-player__art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
}

.rua-player-shell .rua-player__tv {
  display: none !important;
}

.rua-player-shell .rua-player__station strong,
.rua-player-shell .rua-player__program a {
  color: #102238 !important;
  font-size: 18px !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.rua-player-shell .rua-player__station span,
.rua-player-shell .rua-player__program span,
.rua-player-shell .rua-player__program small {
  color: rgba(16, 34, 56, 0.64) !important;
}

.rua-player-shell button.rua-player__play {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 52px !important;
  height: 52px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--rua-player-accent) !important;
  box-shadow: 0 12px 26px rgba(243, 112, 33, 0.25) !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--rua-player-accent) 28%, transparent) !important;
  outline: none !important;
  text-decoration: none !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.rua-player-shell button.rua-player__play:hover,
.rua-player-shell button.rua-player__play:focus,
.rua-player-shell button.rua-player__play:active,
.rua-player-shell button.rua-player__play.is-playing,
.rua-player-shell button.rua-player__play.is-playing:hover,
.rua-player-shell button.rua-player__play.is-playing:focus,
.rua-player-shell button.rua-player__play.is-playing:active {
  color: #fff !important;
  background: var(--rua-player-accent) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 26px rgba(243, 112, 33, 0.25) !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--rua-player-accent) 28%, transparent) !important;
}

.rua-player-shell button.rua-player__play:focus-visible {
  outline: 3px solid var(--rua-player-blue) !important;
  outline-offset: 3px !important;
}

.rua-player-shell .rua-player__icon,
.rua-player-shell .rua-player__svg,
.rua-player-shell button.rua-player__play * {
  color: inherit !important;
  fill: currentColor !important;
}

.rua-player-shell .rua-player__svg {
  width: 25px !important;
  height: 25px !important;
  margin: 0 !important;
  transform: none !important;
}

.rua-player-shell .rua-player__icon-pause {
  display: none !important;
}

.rua-player-shell .rua-player__play.is-playing .rua-player__icon-play {
  display: none !important;
}

.rua-player-shell .rua-player__play.is-playing .rua-player__icon-pause {
  display: block !important;
}

.rua-player-shell .rua-player__actions {
  gap: 16px !important;
}

.rua-player-shell .rua-player__range {
  width: 126px !important;
  accent-color: var(--rua-player-accent) !important;
}

.rua-player-shell .rua-player__range:focus {
  outline: none !important;
}

.rua-player-shell .rua-player__range:focus-visible {
  outline: 2px solid var(--rua-player-blue) !important;
  outline-offset: 4px !important;
}

.rua-player-shell .rua-player__live {
  min-height: 36px !important;
  color: #fff !important;
  background: var(--rua-player-accent) !important;
  font-size: 12px !important;
}

.rua-player-shell .rua-tv-float {
  top: calc(18px + var(--wp-admin--admin-bar--height, 0px)) !important;
  right: 18px !important;
  width: min(310px, calc(100vw - 36px)) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26) !important;
  backface-visibility: hidden !important;
  contain: layout paint !important;
  transform: translateZ(0) !important;
}

.rua-player-shell .rua-tv-float__frame iframe,
.rua-player-shell .rua-tv-float__frame video {
  pointer-events: none !important;
}

.rua-player-shell .rua-tv-float__controls {
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 10px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rua-player-shell .rua-tv-float:hover .rua-tv-float__controls,
.rua-player-shell .rua-tv-float:focus-within .rua-tv-float__controls {
  opacity: 1 !important;
}

.rua-player-shell .rua-tv-float__button {
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  place-items: center !important;
  padding: 0 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--rua-player-blue) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
  line-height: 0 !important;
  pointer-events: auto !important;
}

.rua-player-shell .rua-tv-float__button--close {
  background: var(--rua-player-accent) !important;
}

.rua-player-shell .rua-tv-float__icon {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  color: inherit !important;
  fill: currentColor !important;
  margin: 0 !important;
}

.rua-player-shell .rua-tv-float__icon--sound {
  display: none !important;
}

.rua-player-shell .rua-tv-float__button.is-unmuted .rua-tv-float__icon--muted {
  display: none !important;
}

.rua-player-shell .rua-tv-float__button.is-unmuted .rua-tv-float__icon--sound {
  display: block !important;
}

@media (max-width: 980px) {
  .rua-player-shell .rua-player {
    grid-template-columns: 58px minmax(0, 1fr) 50px !important;
    gap: 12px !important;
    padding: 12px 14px !important;
  }

  .rua-player-shell .rua-player__program,
  .rua-player-shell .rua-player__actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  .rua-player-shell .rua-player {
    grid-template-columns: 52px minmax(0, 1fr) 46px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .rua-player-shell .rua-player__art {
    width: 52px !important;
    height: 52px !important;
  }

  .rua-player-shell .rua-player__station strong,
  .rua-player-shell .rua-player__program a {
    font-size: 15px !important;
  }

  .rua-player-shell .rua-player__range {
    width: min(34vw, 110px) !important;
  }

  .rua-player-shell .rua-tv-float {
    top: calc(12px + var(--wp-admin--admin-bar--height, 0px)) !important;
    right: 12px !important;
    width: min(230px, calc(100vw - 24px)) !important;
  }
}

/* Radio UA 1.1.3: compact mobile player + stable floating TV. */
.rua-player-shell .rua-tv-float {
  position: fixed !important;
  transform: translate3d(0, var(--rua-player-viewport-offset, 0px), 0) !important;
  will-change: transform !important;
}

@media (max-width: 640px) {
  body.rua-player-active,
  body.single-post.rua-news-template.rua-player-active {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .rua-player-shell {
    padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
  }

  .rua-player-shell .rua-player {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 46px 34px !important;
    grid-template-areas:
      "art station play volume"
      "program program program volume" !important;
    gap: 6px 10px !important;
    align-items: center !important;
    min-height: 92px !important;
    padding: 8px 10px 8px 12px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .rua-player-shell .rua-player__art {
    grid-area: art !important;
    width: 40px !important;
    height: 40px !important;
  }

  .rua-player-shell .rua-player__station {
    grid-area: station !important;
    min-width: 0 !important;
  }

  .rua-player-shell .rua-player__station strong {
    font-size: 15px !important;
    line-height: 1.08 !important;
  }

  .rua-player-shell .rua-player__station span {
    margin-top: 3px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .rua-player-shell button.rua-player__play {
    grid-area: play !important;
    width: 44px !important;
    height: 44px !important;
    justify-self: end !important;
  }

  .rua-player-shell .rua-player__svg {
    width: 22px !important;
    height: 22px !important;
  }

  .rua-player-shell .rua-player__program {
    grid-area: program !important;
    display: flex !important;
    min-width: 0 !important;
    align-items: baseline !important;
    gap: 6px !important;
  }

  .rua-player-shell .rua-player__program span {
    display: inline !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .rua-player-shell .rua-player__program span::after {
    content: ":" !important;
  }

  .rua-player-shell .rua-player__program a {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    font-size: 15px !important;
    line-height: 1.12 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .rua-player-shell .rua-player__program small,
  .rua-player-shell .rua-player__live {
    display: none !important;
  }

  .rua-player-shell .rua-player__actions {
    grid-area: volume !important;
    display: flex !important;
    width: 34px !important;
    height: 78px !important;
    min-height: 78px !important;
    align-self: stretch !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .rua-player-shell .rua-player__range {
    display: block !important;
    width: 74px !important;
    max-width: none !important;
    margin: 0 -20px !important;
    transform: rotate(-90deg) !important;
    transform-origin: center !important;
  }

  .rua-player-shell .rua-tv-float {
    top: calc(env(safe-area-inset-top, 0px) + var(--wp-admin--admin-bar--height, 0px) + 10px) !important;
    right: 10px !important;
    width: min(56vw, 220px) !important;
    border-radius: 9px !important;
  }
}

/* Radio UA Player 1.2.0: carátula circular, WhatsApp y TV fullscreen. */
.rua-player-shell .rua-player {
  grid-template-columns: 64px minmax(170px, 1fr) 52px minmax(180px, 1.05fr) auto auto !important;
  grid-template-areas: "art station play program actions audience" !important;
}

.rua-player-shell .rua-player__art {
  grid-area: art !important;
  overflow: hidden !important;
  border: 3px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 999px !important;
  background: #eaf2f8 !important;
  box-shadow: 0 8px 22px rgba(16, 34, 56, 0.2) !important;
  filter: none !important;
}

.rua-player-shell .rua-player__art img {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
}

.rua-player-shell .rua-player__station {
  grid-area: station !important;
}

.rua-player-shell button.rua-player__play {
  grid-area: play !important;
}

.rua-player-shell .rua-player__program {
  grid-area: program !important;
}

.rua-player-shell .rua-player__actions {
  grid-area: actions !important;
}

.rua-player-shell .rua-player__whatsapp {
  grid-area: audience !important;
  display: grid !important;
  min-height: 44px !important;
  align-content: center !important;
  padding: 7px 13px !important;
  border: 1px solid rgba(0, 61, 165, 0.16) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #fff, rgba(0, 94, 184, 0.08)) !important;
  color: #102238 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(16, 34, 56, 0.1) !important;
  white-space: nowrap !important;
}

.rua-player-shell .rua-player__whatsapp span {
  color: var(--rua-player-blue) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.rua-player-shell .rua-player__whatsapp strong {
  margin-top: 3px !important;
  color: #102238 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
}

.rua-player-shell .rua-player__whatsapp:hover,
.rua-player-shell .rua-player__whatsapp:focus-visible {
  border-color: var(--rua-player-accent) !important;
  transform: translateY(-1px) !important;
}

.rua-player-shell .rua-tv-float__controls {
  opacity: 1 !important;
}

.rua-player-shell .rua-tv-float__icon--compress {
  display: none !important;
}

.rua-player-shell .rua-tv-float__button--fullscreen.is-active .rua-tv-float__icon--expand {
  display: none !important;
}

.rua-player-shell .rua-tv-float__button--fullscreen.is-active .rua-tv-float__icon--compress {
  display: block !important;
}

body.rua-tv-fullscreen-active {
  overflow: hidden !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback,
.rua-player-shell .rua-tv-float:fullscreen,
.rua-player-shell .rua-tv-float:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
  transform: none !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen .rua-tv-float__frame,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback .rua-tv-float__frame,
.rua-player-shell .rua-tv-float:fullscreen .rua-tv-float__frame,
.rua-player-shell .rua-tv-float:-webkit-full-screen .rua-tv-float__frame {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen iframe,
.rua-player-shell .rua-tv-float.is-fullscreen video,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback iframe,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback video,
.rua-player-shell .rua-tv-float:fullscreen iframe,
.rua-player-shell .rua-tv-float:fullscreen video,
.rua-player-shell .rua-tv-float:-webkit-full-screen iframe,
.rua-player-shell .rua-tv-float:-webkit-full-screen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen .rua-tv-float__controls,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback .rua-tv-float__controls,
.rua-player-shell .rua-tv-float:fullscreen .rua-tv-float__controls,
.rua-player-shell .rua-tv-float:-webkit-full-screen .rua-tv-float__controls {
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px !important;
}

@media (max-width: 1100px) {
  .rua-player-shell .rua-player {
    grid-template-columns: 58px minmax(0, 1fr) 50px auto !important;
    grid-template-areas:
      "art station play audience"
      "program program actions actions" !important;
  }
}

@media (max-width: 760px) {
  .rua-player-shell .rua-player {
    grid-template-columns: 52px minmax(0, 1fr) 48px !important;
    grid-template-areas:
      "art station play"
      "program program program"
      "actions actions audience" !important;
  }

  .rua-player-shell .rua-player__actions {
    justify-content: flex-start !important;
  }
}

@media (max-width: 640px) {
  body.rua-player-active,
  body.single-post.rua-news-template.rua-player-active {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .rua-player-shell .rua-player {
    grid-template-columns: 42px minmax(0, 1fr) 46px 34px !important;
    grid-template-areas:
      "art station play volume"
      "program program program volume"
      "audience audience audience volume" !important;
    min-height: 120px !important;
  }

  .rua-player-shell .rua-player__actions {
    grid-area: volume !important;
  }

  .rua-player-shell .rua-player__whatsapp {
    grid-area: audience !important;
    width: fit-content !important;
    min-height: 27px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
  }

  .rua-player-shell .rua-player__whatsapp span,
  .rua-player-shell .rua-player__whatsapp strong {
    display: inline !important;
    margin: 0 !important;
    font-size: 10px !important;
  }

  .rua-player-shell .rua-player__whatsapp strong::before {
    content: " · " !important;
  }

  .rua-player-shell .rua-tv-float__controls {
    gap: 6px !important;
    padding: 7px !important;
  }

  .rua-player-shell .rua-tv-float__button {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Radio UA Player 1.2.1: stable layouts, rounded-square art and polished TV restore. */
.rua-player-shell {
  z-index: 2147483646 !important;
}

.rua-player-shell .rua-player__art {
  overflow: hidden !important;
  border: 2px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 14px !important;
}

.rua-player-shell .rua-player__art img {
  border-radius: 12px !important;
}

.rua-player-shell .rua-tv-float {
  z-index: 2147483647 !important;
  transform: translateZ(0) !important;
  transition: opacity 0.2s ease !important;
  will-change: opacity !important;
}

.rua-player-shell .rua-tv-float.is-restoring {
  opacity: 0 !important;
  transition: none !important;
}

.rua-player-shell .rua-tv-float.is-restored {
  animation: ruaTvRestoreFade 0.22s ease-out both !important;
}

body.rua-pjax-loading main,
body.rua-pjax-loading .site-main,
body.rua-pjax-loading .wp-site-blocks {
  transform: none !important;
  transition: opacity 0.12s ease !important;
}

body.rua-pjax-settled main,
body.rua-pjax-settled .site-main,
body.rua-pjax-settled .wp-site-blocks {
  animation: ruaPjaxFadeOnly 0.16s ease both !important;
}

@keyframes ruaTvRestoreFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ruaPjaxFadeOnly {
  from { opacity: 0.82; }
  to { opacity: 1; }
}

@media (orientation: portrait) {
  .rua-player-shell .rua-player__whatsapp {
    justify-self: center !important;
    text-align: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rua-player-shell .rua-tv-float.is-restored,
  body.rua-pjax-settled main,
  body.rua-pjax-settled .site-main,
  body.rua-pjax-settled .wp-site-blocks {
    animation: none !important;
  }
}

/* Radio UA Player 1.2.3: despeje justo en móvil vertical y TV sin salto de autoplay. */
@media (max-width: 640px) and (orientation: portrait) {
  body.rua-player-active,
  body.single-post.rua-news-template.rua-player-active,
  body.single-rua_columnist.rua-column-template.rua-player-active,
  body.rua-news-archive-template.rua-player-active {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.rua-player-active .rua-home-footer,
  body.rua-player-active .rua-home-university {
    margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .rua-player-shell {
    bottom: 0 !important;
    padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
    background: transparent !important;
  }

  .rua-player-shell .rua-player {
    min-height: 116px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .rua-player-shell .rua-tv-float iframe {
    background: #000 !important;
  }
}

/* Radio UA Player 1.2.4: fullscreen real para TV en móvil, tablet y escritorio. */
body.rua-tv-fullscreen-active .rua-player-shell {
  z-index: 2147483646 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

body.rua-tv-fullscreen-active .rua-player-shell .rua-player {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.rua-tv-fullscreen-active .rua-player-shell .rua-tv-float {
  pointer-events: auto !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback,
.rua-player-shell .rua-tv-float:fullscreen,
.rua-player-shell .rua-tv-float:-webkit-full-screen {
  position: fixed !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
  transform: none !important;
  contain: none !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen .rua-tv-float__frame,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback .rua-tv-float__frame,
.rua-player-shell .rua-tv-float:fullscreen .rua-tv-float__frame,
.rua-player-shell .rua-tv-float:-webkit-full-screen .rua-tv-float__frame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  background: #000 !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen iframe,
.rua-player-shell .rua-tv-float.is-fullscreen video,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback iframe,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback video,
.rua-player-shell .rua-tv-float:fullscreen iframe,
.rua-player-shell .rua-tv-float:fullscreen video,
.rua-player-shell .rua-tv-float:-webkit-full-screen iframe,
.rua-player-shell .rua-tv-float:-webkit-full-screen video {
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
  object-fit: contain !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen .rua-tv-float__controls,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback .rua-tv-float__controls,
.rua-player-shell .rua-tv-float:fullscreen .rua-tv-float__controls,
.rua-player-shell .rua-tv-float:-webkit-full-screen .rua-tv-float__controls {
  z-index: 2 !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    12px
    max(12px, env(safe-area-inset-left, 0px)) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

.rua-player-shell .rua-tv-float.is-fullscreen .rua-tv-float__button,
.rua-player-shell .rua-tv-float.is-fullscreen-fallback .rua-tv-float__button,
.rua-player-shell .rua-tv-float:fullscreen .rua-tv-float__button,
.rua-player-shell .rua-tv-float:-webkit-full-screen .rua-tv-float__button {
  width: 44px !important;
  height: 44px !important;
  pointer-events: auto !important;
}
