/*
Theme Name: Poder KY Radio
Theme URI: https://poderky.com/
Author: Five Yellows
Author URI: https://fiveyellows.com/
Description: Tema oficial claro, moderno y responsive para Poder KY, diseñado para trabajar con Poder Radio Hub y su reproductor persistente.
Version: 1.0.3
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: poder-ky-radio
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, accessibility-ready
*/

:root {
  --pky-white: #ffffff;
  --pky-bg: #f5f7fa;
  --pky-bg-blue: #eaf3ff;
  --pky-blue: #174ea6;
  --pky-blue-bright: #2878d0;
  --pky-blue-deep: #103a7a;
  --pky-red: #d62828;
  --pky-red-bright: #ef3e36;
  --pky-red-soft: #fff0f0;
  --pky-text: #172033;
  --pky-muted: #64748b;
  --pky-border: #e2e8f0;
  --pky-shadow: 0 12px 40px rgba(23, 78, 166, 0.1);
  --pky-shadow-soft: 0 8px 24px rgba(23, 78, 166, 0.07);
  --pky-radius: 20px;
  --pky-radius-sm: 14px;
  --pky-container: 1220px;
  --pky-header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pky-bg);
  color: var(--pky-text);
  font-family: Inter, "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .pky-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--pky-blue); }
a:hover { color: var(--pky-red); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--pky-blue); color: #fff; }

.pky-container {
  width: min(calc(100% - 36px), var(--pky-container));
  margin-inline: auto;
}
.pky-narrow { width: min(calc(100% - 36px), 820px); margin-inline: auto; }
.pky-screen-reader-text,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pky-skip-link:focus {
  position: fixed !important;
  z-index: 1000000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  clip: auto;
  background: #fff;
  border: 2px solid var(--pky-blue);
  border-radius: 10px;
  color: var(--pky-text);
}

/* Header */
.pky-topbar {
  background: var(--pky-blue-deep);
  color: rgba(255,255,255,.92);
  font-size: 13px;
}
.pky-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.pky-topbar__label { margin: 0; font-weight: 700; letter-spacing: .02em; }
.pky-topbar__links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pky-topbar__links a { color: #fff; text-decoration: none; opacity: .9; }
.pky-topbar__links a:hover { opacity: 1; text-decoration: underline; }
.pky-site-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.9);
  transition: box-shadow .2s ease, background .2s ease;
}
.pky-site-header.is-scrolled { box-shadow: 0 8px 28px rgba(23,78,166,.1); }
.pky-header__inner {
  min-height: var(--pky-header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}
.pky-branding { display: flex; align-items: center; min-width: 190px; }
.pky-branding a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pky-text); }
.pky-branding .custom-logo { width: auto; max-width: 190px; max-height: 62px; object-fit: contain; }
.pky-branding__plugin-logo { width: auto; max-width: 190px; max-height: 62px; object-fit: contain; }
.pky-branding__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--pky-blue), var(--pky-blue-bright));
  color: #fff;
  font-family: Poppins, Montserrat, sans-serif;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(23,78,166,.24);
}
.pky-branding__text { display: flex; flex-direction: column; line-height: 1.1; }
.pky-branding__name { font-family: Poppins, Montserrat, sans-serif; font-size: 20px; font-weight: 800; color: var(--pky-blue); }
.pky-branding__tagline { margin-top: 4px; color: var(--pky-muted); font-size: 12px; font-weight: 600; }
.pky-nav-wrap { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.pky-primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.pky-primary-nav li { position: relative; }
.pky-primary-nav a {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--pky-text);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.pky-primary-nav a:hover,
.pky-primary-nav .current-menu-item > a,
.pky-primary-nav .current_page_item > a { background: var(--pky-bg-blue); color: var(--pky-blue); }
.pky-primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--pky-border);
  border-radius: 14px;
  box-shadow: var(--pky-shadow);
}
.pky-primary-nav li:hover > .sub-menu,
.pky-primary-nav li:focus-within > .sub-menu { display: block; }
.pky-primary-nav .sub-menu a { white-space: nowrap; }
.pky-listen-button,
.pky-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--pky-red);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(214,40,40,.18);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.pky-listen-button:hover,
.pky-button:hover { color: #fff; background: var(--pky-red-bright); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(214,40,40,.24); }
.pky-button--secondary { background: #fff; color: var(--pky-blue); border-color: var(--pky-border); box-shadow: var(--pky-shadow-soft); }
.pky-button--secondary:hover { background: var(--pky-bg-blue); color: var(--pky-blue); }
.pky-button--blue { background: var(--pky-blue); box-shadow: 0 8px 18px rgba(23,78,166,.2); }
.pky-button--blue:hover { background: var(--pky-blue-bright); }
.pky-live-pulse { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.65); animation: pky-pulse 1.7s infinite; }
.pky-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--pky-border);
  border-radius: 12px;
  background: #fff;
  color: var(--pky-text);
}
.pky-menu-toggle span,
.pky-menu-toggle::before,
.pky-menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: .2s ease; }
.pky-menu-toggle[aria-expanded="true"] span { opacity: 0; }
.pky-menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.pky-menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* Main and sections */
#prh-app-content { min-height: 55vh; }
.pky-section { padding: 76px 0; }
.pky-section--white { background: #fff; }
.pky-section--blue { background: var(--pky-bg-blue); }
.pky-section--compact { padding: 48px 0; }
.pky-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.pky-section__eyebrow,
.pky-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--pky-red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pky-section__title,
.pky-page-title,
.pky-entry-title {
  margin: 0;
  color: var(--pky-blue);
  font-family: Poppins, Montserrat, sans-serif;
  font-weight: 800;
  line-height: 1.15;
}
.pky-section__title { font-size: clamp(30px, 4vw, 46px); }
.pky-section__description { max-width: 690px; margin: 10px 0 0; color: var(--pky-muted); }
.pky-section__link { flex: 0 0 auto; font-weight: 800; text-decoration: none; }
.pky-empty { padding: 28px; border: 1px dashed var(--pky-border); border-radius: var(--pky-radius); color: var(--pky-muted); text-align: center; }

/* Hero */
.pky-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(40,120,208,.18), transparent 33%),
    radial-gradient(circle at 10% 90%, rgba(214,40,40,.08), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--pky-bg-blue) 100%);
  padding: 78px 0 72px;
}
.pky-hero::before,
.pky-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.pky-hero::before { width: 280px; height: 280px; right: -130px; top: -110px; border: 46px solid rgba(23,78,166,.05); }
.pky-hero::after { width: 170px; height: 170px; left: -90px; bottom: -100px; border: 32px solid rgba(214,40,40,.05); }
.pky-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: center; gap: 56px; }
.pky-hero__title {
  max-width: 800px;
  margin: 0;
  color: var(--pky-text);
  font-family: Poppins, Montserrat, sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: .99;
}
.pky-hero__title strong { color: var(--pky-blue); }
.pky-hero__text { max-width: 680px; margin: 24px 0 0; color: var(--pky-muted); font-size: clamp(17px, 2vw, 20px); }
.pky-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pky-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--pky-muted); font-size: 14px; font-weight: 650; }
.pky-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.pky-hero__meta span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pky-blue-bright); }
.pky-hero__card { position: relative; }
.pky-hero__card::before { content: ""; position: absolute; inset: 18px -16px -16px 18px; border-radius: 28px; background: linear-gradient(145deg, rgba(23,78,166,.16), rgba(214,40,40,.1)); }
.pky-hero__card-inner { position: relative; padding: 22px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.85); border-radius: 26px; box-shadow: 0 24px 70px rgba(23,78,166,.18); }
.pky-hero__card-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--pky-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.pky-hero__waves { display: flex; align-items: center; gap: 4px; height: 26px; }
.pky-hero__waves i { display: block; width: 4px; border-radius: 99px; background: var(--pky-red); animation: pky-wave 1s ease-in-out infinite alternate; }
.pky-hero__waves i:nth-child(1) { height: 10px; }
.pky-hero__waves i:nth-child(2) { height: 21px; animation-delay: .15s; }
.pky-hero__waves i:nth-child(3) { height: 15px; animation-delay: .3s; }
.pky-hero__waves i:nth-child(4) { height: 25px; animation-delay: .45s; }
.pky-hero__waves i:nth-child(5) { height: 12px; animation-delay: .6s; }
.pky-hero__card .prh-now { border: 0; box-shadow: none; padding: 8px 0 0; }
.pky-hero__card .prh-now h2 { font-size: clamp(24px,3vw,34px); }
.pky-hero__card .prh-now > img { width: 128px; }


/* Editable homepage slideshow */
.pky-home-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #0c2d5c;
  color: #fff;
}
.pky-home-slider__track {
  position: relative;
  min-height: 620px;
}
.pky-home-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  transition: opacity .65s ease, visibility .65s ease;
}
.pky-home-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}
.pky-home-slide__background,
.pky-home-slide__overlay {
  position: absolute;
  inset: 0;
}
.pky-home-slide__background {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.025);
  transition: transform 7s ease;
}
.pky-home-slide.is-active .pky-home-slide__background { transform: scale(1); }
.pky-home-slide.has-no-image .pky-home-slide__background {
  background:
    radial-gradient(circle at 86% 18%, rgba(92,169,255,.34), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(239,62,54,.2), transparent 34%),
    linear-gradient(125deg, #0b2852 0%, #174ea6 62%, #2878d0 100%);
}
.pky-home-slide__overlay {
  background: linear-gradient(90deg, rgba(7,22,48,.92) 0%, rgba(7,22,48,.76) 48%, rgba(7,22,48,.26) 76%, rgba(7,22,48,.18) 100%);
}
.pky-home-slide.has-no-image .pky-home-slide__overlay {
  background: linear-gradient(90deg, rgba(7,22,48,.38), rgba(7,22,48,.08));
}
.pky-home-slide__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 620px;
  padding-top: 74px;
  padding-bottom: 94px;
}
.pky-home-slide__content {
  width: min(100%, 680px);
  padding-right: 34px;
}
.pky-home-slide__eyebrow {
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.pky-home-slide__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 10px;
  border-radius: 99px;
  background: var(--pky-red-bright);
  vertical-align: middle;
}
.pky-home-slide__title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: Poppins, Montserrat, sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-shadow: 0 5px 28px rgba(0,0,0,.28);
}
.pky-home-slide__text {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0,0,0,.22);
}
.pky-home-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.pky-button--slider-secondary {
  background: rgba(255,255,255,.94);
  color: var(--pky-blue);
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
.pky-button--slider-secondary:hover {
  background: #fff;
  color: var(--pky-blue-deep);
}
.pky-home-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 25px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 650;
}
.pky-home-slide__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pky-home-slide__meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66b2ff;
}
.pky-home-slider__now-wrap {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transform: translateY(-50%);
}
.pky-home-slider__now {
  width: min(390px, 36%);
  padding: 20px;
  pointer-events: auto;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(3,18,46,.3);
  color: var(--pky-text);
  backdrop-filter: blur(12px);
}
.pky-home-slider__now-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--pky-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pky-home-slider__now .prh-now {
  padding: 8px 0 0;
  border: 0;
  box-shadow: none;
}
.pky-home-slider__now .prh-now h2 { font-size: clamp(22px, 2.7vw, 31px); }
.pky-home-slider__now .prh-now > img { width: 112px; }
.pky-home-slider__controls {
  position: absolute;
  z-index: 5;
  bottom: 34px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}
.pky-home-slider__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
  background: rgba(7,22,48,.48);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.pky-home-slider__arrow:hover,
.pky-home-slider__arrow:focus-visible { background: var(--pky-red); border-color: var(--pky-red); }
.pky-home-slider__dots { display: flex; align-items: center; gap: 8px; }
.pky-home-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: transparent;
}
.pky-home-slider__dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: #fff;
}
.pky-home-slider.has-one-slide .pky-home-slider__controls { display: none; }
.pky-home-editable-content {
  padding: 52px 0;
  background: #fff;
}
.pky-home-editable-content .pky-entry-content > :first-child { margin-top: 0; }
.pky-home-editable-content .pky-entry-content > :last-child { margin-bottom: 0; }

/* Quick links */
.pky-quick-links { position: relative; z-index: 3; margin-top: -28px; padding-bottom: 26px; }
.pky-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pky-quick-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 104px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--pky-border);
  border-radius: 18px;
  box-shadow: var(--pky-shadow-soft);
  color: var(--pky-text);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pky-quick-card:hover { transform: translateY(-3px); border-color: rgba(40,120,208,.38); box-shadow: var(--pky-shadow); color: var(--pky-text); }
.pky-quick-card__icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px; background: var(--pky-bg-blue); color: var(--pky-blue); font-size: 23px; }
.pky-quick-card:nth-child(2) .pky-quick-card__icon { background: var(--pky-red-soft); color: var(--pky-red); }
.pky-quick-card__title { display: block; font-family: Poppins, Montserrat, sans-serif; font-weight: 800; color: var(--pky-blue); }
.pky-quick-card__text { display: block; margin-top: 2px; color: var(--pky-muted); font-size: 13px; }

/* Content cards */
.pky-content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.pky-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pky-border);
  border-radius: var(--pky-radius);
  box-shadow: var(--pky-shadow-soft);
}
.pky-card__media { display: block; aspect-ratio: 16/10; background: var(--pky-bg-blue); overflow: hidden; }
.pky-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pky-card:hover .pky-card__media img { transform: scale(1.035); }
.pky-card__body { padding: 21px; }
.pky-card__meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 9px; color: var(--pky-muted); font-size: 13px; }
.pky-card__title { margin: 0; color: var(--pky-blue); font-family: Poppins, Montserrat, sans-serif; font-size: 21px; line-height: 1.2; }
.pky-card__title a { color: inherit; text-decoration: none; }
.pky-card__title a:hover { color: var(--pky-red); }
.pky-card__excerpt { margin: 12px 0 0; color: var(--pky-muted); }
.pky-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pky-text-link { font-weight: 800; text-decoration: none; }
.pky-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 99px; background: var(--pky-bg-blue); color: var(--pky-blue); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pky-badge--red { background: var(--pky-red-soft); color: var(--pky-red); }

/* Plugin output integration */
.pky-shortcode-wrap:empty { display: none; }
.pky-shortcode-wrap .prh-grid { gap: 22px; }
.pky-shortcode-wrap .prh-card {
  height: 100%;
  border-color: var(--pky-border);
  border-radius: var(--pky-radius);
  box-shadow: var(--pky-shadow-soft);
  padding: 22px;
}
.pky-shortcode-wrap .prh-card img { max-height: 260px; object-fit: cover; }
.pky-shortcode-wrap .prh-sponsors .prh-card img { max-height: 130px; object-fit: contain; background: #fff; }
.pky-shortcode-wrap .prh-actions a,
.pky-shortcode-wrap .prh-button { transition: transform .18s ease, background .18s ease; }
.pky-shortcode-wrap .prh-actions a:hover,
.pky-shortcode-wrap .prh-button:hover { transform: translateY(-1px); }
.pky-shortcode-wrap .prh-list { gap: 13px; }
.pky-shortcode-wrap .prh-list .prh-card { min-height: 74px; padding: 16px 19px; }
.pky-now-next-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 22px; margin-bottom: 24px; }
.pky-now-next-grid > *:empty { display: none; }
.pky-now-next-grid .prh-card { height: 100%; }
.pky-now-next-grid .prh-now { padding: 22px; }
.pky-now-next-grid .pky-next .prh-card { display: flex; flex-direction: column; justify-content: center; }
.pky-staff-shell .prh-staff-login { margin: 0 auto; }
.pky-staff-shell .login-username label,
.pky-staff-shell .login-password label { display: block; font-weight: 800; color: var(--pky-text); }
.pky-staff-shell .input { width: 100%; padding: 12px 13px; border: 1px solid var(--pky-border); border-radius: 11px; background: #fff; }
.pky-staff-shell .button-primary { border: 0; border-radius: 999px; background: var(--pky-red); color: #fff; padding: 11px 20px; font-weight: 800; }

/* App CTA */
.pky-app-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--pky-blue-deep), var(--pky-blue-bright)); color: #fff; border-radius: 28px; padding: 44px; box-shadow: 0 22px 60px rgba(23,78,166,.24); }
.pky-app-cta::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border: 48px solid rgba(255,255,255,.08); border-radius: 50%; }
.pky-app-cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; }
.pky-app-cta h2 { margin: 0; color: #fff; font-family: Poppins, Montserrat, sans-serif; font-size: clamp(28px,4vw,46px); line-height: 1.1; }
.pky-app-cta p { max-width: 680px; margin: 12px 0 0; color: rgba(255,255,255,.82); }
.pky-app-cta .prh-download { margin: 0; }
.pky-app-cta .prh-download a { background: #fff; border-color: #fff; color: var(--pky-blue); }

/* Page / article */
.pky-page-hero { padding: 58px 0 48px; background: linear-gradient(180deg, #fff, var(--pky-bg-blue)); border-bottom: 1px solid var(--pky-border); }
.pky-page-title { font-size: clamp(36px,5vw,58px); }
.pky-breadcrumb { margin: 0 0 10px; color: var(--pky-muted); font-size: 14px; }
.pky-breadcrumb a { text-decoration: none; font-weight: 700; }
.pky-content-area { padding: 60px 0 88px; }
.pky-entry { background: #fff; border: 1px solid var(--pky-border); border-radius: 24px; box-shadow: var(--pky-shadow-soft); overflow: hidden; }
.pky-entry__image img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.pky-entry__body { padding: clamp(24px,5vw,52px); }
.pky-entry-title { font-size: clamp(32px,4.5vw,52px); }
.pky-entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; color: var(--pky-muted); font-size: 14px; }
.pky-entry-content { margin-top: 28px; }
.pky-entry-content > *:first-child { margin-top: 0; }
.pky-entry-content h2,
.pky-entry-content h3,
.pky-entry-content h4 { color: var(--pky-blue); font-family: Poppins, Montserrat, sans-serif; line-height: 1.2; }
.pky-entry-content a { font-weight: 700; }
.pky-entry-content blockquote { margin: 28px 0; padding: 20px 24px; background: var(--pky-bg-blue); border-left: 5px solid var(--pky-blue); border-radius: 0 14px 14px 0; }
.pky-entry-content table { width: 100%; border-collapse: collapse; }
.pky-entry-content th,
.pky-entry-content td { padding: 11px; border: 1px solid var(--pky-border); text-align: left; }
.pky-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,360px); gap: 28px; align-items: start; }
.pky-detail-card { padding: 24px; background: var(--pky-bg-blue); border: 1px solid rgba(40,120,208,.18); border-radius: 18px; }
.pky-detail-card h2 { margin-top: 0; color: var(--pky-blue); font-family: Poppins, Montserrat, sans-serif; }
.pky-detail-list { display: grid; gap: 15px; margin: 0; }
.pky-detail-list div { padding-bottom: 13px; border-bottom: 1px solid rgba(23,78,166,.12); }
.pky-detail-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.pky-detail-list dt { color: var(--pky-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pky-detail-list dd { margin: 4px 0 0; font-weight: 750; }
.pky-pagination { margin-top: 34px; }
.pky-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pky-pagination a,
.pky-pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--pky-border); border-radius: 10px; background: #fff; text-decoration: none; font-weight: 750; }
.pky-pagination .current { background: var(--pky-blue); border-color: var(--pky-blue); color: #fff; }

/* Forms / comments */
.pky-entry-content input[type="text"],
.pky-entry-content input[type="email"],
.pky-entry-content input[type="url"],
.pky-entry-content input[type="password"],
.pky-entry-content input[type="search"],
.pky-entry-content textarea,
.pky-entry-content select,
.pky-comments input[type="text"],
.pky-comments input[type="email"],
.pky-comments input[type="url"],
.pky-comments textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pky-border);
  border-radius: 12px;
  background: #fff;
}
.pky-comments { margin-top: 28px; padding: 30px; background: #fff; border: 1px solid var(--pky-border); border-radius: 20px; }
.pky-comments ol { padding-left: 24px; }
.pky-comments .submit { border: 0; border-radius: 999px; background: var(--pky-red); color: #fff; padding: 11px 20px; font-weight: 800; }

/* Footer */
.pky-site-footer { background: #10213c; color: rgba(255,255,255,.78); }
.pky-footer__grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 44px; padding: 58px 0 42px; }
.pky-footer__brand .pky-branding__name { color: #fff; }
.pky-footer__brand .pky-branding__tagline { color: rgba(255,255,255,.68); }
.pky-footer__text { max-width: 440px; margin: 18px 0 0; }
.pky-footer__title { margin: 0 0 15px; color: #fff; font-family: Poppins, Montserrat, sans-serif; font-size: 17px; }
.pky-footer-menu,
.pky-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pky-footer-menu a,
.pky-footer-contact a { color: rgba(255,255,255,.8); text-decoration: none; }
.pky-footer-menu a:hover,
.pky-footer-contact a:hover { color: #fff; text-decoration: underline; }
.pky-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.pky-footer__bottom-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.pky-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.pky-socials a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; }
.pky-socials a:hover { background: var(--pky-red); color: #fff; }

/* Compact homepage news cards */
.pky-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
}
.pky-news-grid .pky-card {
  border-radius: 18px;
}
.pky-news-grid .pky-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  max-height: 220px;
}
.pky-news-grid .pky-card__body {
  padding: 16px 17px 18px;
}
.pky-news-grid .pky-card__meta {
  margin-bottom: 7px;
  font-size: 12px;
}
.pky-news-grid .pky-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pky-news-grid .pky-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pky-news-grid .pky-card__footer {
  margin-top: 12px;
  font-size: 14px;
}

/* Persistent full-width radio player */
body.pky-has-stream {
  padding-bottom: 96px;
}
body.pky-has-stream.pky-player-minimized {
  padding-bottom: 0;
}
.prh-player {
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 999999 !important;
  width: 100% !important;
  color: #fff !important;
  background: linear-gradient(115deg, #0c1f3b 0%, #123f7d 58%, #174ea6 100%) !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 0 !important;
  box-shadow: 0 -12px 34px rgba(8,25,51,.3) !important;
  font-family: Inter, "Open Sans", sans-serif !important;
  backdrop-filter: blur(14px);
}
.prh-player::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(34vw, 520px);
  pointer-events: none;
  background: radial-gradient(circle at 75% 50%, rgba(255,255,255,.12), transparent 62%);
}
.prh-player__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 36px), 1400px) !important;
  max-width: 1400px !important;
  min-height: 92px !important;
  margin: 0 auto !important;
  padding: 13px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}
.prh-player__art {
  width: 62px !important;
  height: 62px !important;
  flex: 0 0 62px !important;
  padding: 4px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
}
.prh-player__logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}
.prh-player__play {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #fff !important;
  background: linear-gradient(135deg, var(--pky-red-bright), var(--pky-red)) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 50% !important;
  box-shadow: 0 10px 24px rgba(214,40,40,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.prh-player__play:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.05);
  box-shadow: 0 13px 28px rgba(214,40,40,.42);
}
.prh-player__play:focus-visible,
.prh-player__minimize:focus-visible,
.prh-player__volume:focus-visible {
  outline: 3px solid rgba(255,255,255,.8);
  outline-offset: 3px;
}
.prh-player__info {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  line-height: 1.2 !important;
}
.prh-player__live {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 7px 10px;
  color: #fff !important;
  background: rgba(239,62,54,.2);
  border: 1px solid rgba(255,116,109,.28);
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}
.prh-player__live span {
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  background: #ff4b44 !important;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,75,68,.72);
  animation: pky-player-pulse 1.7s infinite;
}
.prh-player__station {
  display: block !important;
  overflow: hidden;
  color: #fff !important;
  font-family: Poppins, Montserrat, sans-serif !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prh-player__program,
.prh-player__host {
  grid-column: 2;
  overflow: hidden;
  color: rgba(255,255,255,.76) !important;
  font-size: 13px !important;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prh-player__host {
  color: rgba(255,255,255,.6) !important;
}
.prh-player__volume-label {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  width: 160px;
  padding: 10px 13px 10px 38px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
}
.prh-player__volume-label::before {
  content: "VOL";
  position: absolute;
  left: 12px;
  color: rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.prh-player__volume {
  width: 100% !important;
  height: 4px;
  accent-color: #ff4b44;
  cursor: pointer;
}
.prh-player__minimize {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 13px !important;
  font-size: 23px !important;
  transition: background .18s ease, transform .18s ease;
}
.prh-player__minimize:hover {
  background: rgba(255,255,255,.18) !important;
}
.prh-player.is-minimized {
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  width: auto !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 36px rgba(8,25,51,.34) !important;
}
.prh-player.is-minimized::before {
  display: none;
}
.prh-player.is-minimized .prh-player__inner {
  width: auto !important;
  min-height: 0 !important;
  padding: 8px !important;
  gap: 8px !important;
}
.prh-player.is-minimized .prh-player__art,
.prh-player.is-minimized .prh-player__info,
.prh-player.is-minimized .prh-player__volume-label {
  display: none !important;
}
.prh-player.is-minimized .prh-player__play {
  width: 46px !important;
  height: 46px !important;
  flex-basis: 46px;
}
.prh-player.is-minimized .prh-player__minimize {
  width: 36px !important;
  height: 36px !important;
  flex-basis: 36px;
  transform: rotate(180deg);
}
.prh-pjax-loading body { cursor: progress; }
.prh-pjax-loading #prh-app-content { opacity: .55; transition: opacity .15s ease; }

@keyframes pky-player-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,75,68,.72); }
  70% { box-shadow: 0 0 0 9px rgba(255,75,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,75,68,0); }
}

@keyframes pky-pulse { 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes pky-wave { from { transform: scaleY(.65); opacity: .7; } to { transform: scaleY(1); opacity: 1; } }


@media (max-width: 1080px) {
  .pky-home-slide__content { width: min(100%, 58%); }
  .pky-home-slider__now { width: min(360px, 38%); }
}

@media (max-width: 900px) {
  .pky-home-slider,
  .pky-home-slider__track,
  .pky-home-slide__inner { min-height: 560px; }
  .pky-home-slide__content { width: min(100%, 760px); padding-right: 0; }
  .pky-home-slider__now-wrap { display: none; }
  .pky-home-slide__overlay { background: linear-gradient(90deg, rgba(7,22,48,.9), rgba(7,22,48,.55)); }
}

@media (max-width: 560px) {
  .pky-home-slider,
  .pky-home-slider__track,
  .pky-home-slide__inner { min-height: 520px; }
  .pky-home-slide__inner { padding-top: 54px; padding-bottom: 88px; }
  .pky-home-slide__title { font-size: clamp(38px, 12vw, 55px); }
  .pky-home-slide__text { margin-top: 16px; font-size: 16px; }
  .pky-home-slide__actions { margin-top: 22px; }
  .pky-home-slide__actions .pky-button,
  .pky-home-slide__actions .pky-listen-button { width: 100%; }
  .pky-home-slide__meta { display: grid; gap: 5px; }
  .pky-home-slider__controls { bottom: 24px; }
  .pky-home-slider__arrow { width: 38px; height: 38px; }
  .pky-home-editable-content { padding: 40px 0; }
}

@media (max-width: 1024px) {
  .pky-menu-toggle { display: block; }
  .pky-nav-wrap { margin-left: auto; }
  .pky-primary-nav {
    position: fixed;
    top: calc(var(--pky-header-height) + 12px);
    left: 18px;
    right: 18px;
    display: none;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--pky-border);
    border-radius: 18px;
    box-shadow: var(--pky-shadow);
  }
  .admin-bar .pky-primary-nav { top: calc(var(--pky-header-height) + 44px); }
  .pky-primary-nav.is-open { display: block; }
  .pky-primary-nav ul { display: grid; gap: 3px; }
  .pky-primary-nav .sub-menu { position: static; display: block; padding: 4px 0 4px 14px; border: 0; box-shadow: none; }
  .pky-primary-nav a { padding: 12px; }
  .pky-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .pky-hero__card { max-width: 700px; }
  .pky-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pky-footer__grid { grid-template-columns: 1.2fr 1fr; }
  .pky-footer__grid > :last-child { grid-column: span 2; }
}


@media (max-width: 900px) {
  .pky-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prh-player__inner { width: min(calc(100% - 28px), 1400px) !important; }
  .prh-player__volume-label { width: 130px; }
}

@media (max-width: 782px) {
  body.admin-bar .pky-site-header { top: 46px; }
  body.pky-has-stream { padding-bottom: 84px; }
  .prh-player__inner { min-height: 80px !important; padding: 10px 0 !important; gap: 10px !important; }
  .prh-player__art { width: 52px !important; height: 52px !important; flex-basis: 52px !important; }
  .prh-player__play { width: 48px !important; height: 48px !important; flex-basis: 48px; }
  .prh-player__info { column-gap: 9px; }
  .prh-player__live { padding: 6px 8px; font-size: 9px !important; }
  .prh-player__station { font-size: 14px; }
  .prh-player__volume-label { width: 108px; padding-left: 12px; }
  .prh-player__volume-label::before { display: none; }
  .prh-player__minimize { width: 38px !important; height: 38px !important; flex-basis: 38px; }
  .pky-topbar__inner { min-height: 42px; }
  .pky-topbar__links { display: none; }
  .pky-header__inner { min-height: 72px; gap: 12px; }
  .pky-branding { min-width: 0; margin-right: auto; }
  .pky-branding .custom-logo,
  .pky-branding__plugin-logo { max-width: 145px; max-height: 52px; }
  .pky-branding__mark { width: 46px; height: 46px; }
  .pky-branding__name { font-size: 17px; }
  .pky-branding__tagline { display: none; }
  .pky-header__listen { display: none; }
  .pky-primary-nav { top: 84px; }
  .admin-bar .pky-primary-nav { top: 130px; }
  .pky-hero { padding: 54px 0 58px; }
  .pky-hero__title { font-size: clamp(39px,12vw,60px); }
  .pky-hero__card-inner { padding: 18px; }
  .pky-section { padding: 58px 0; }
  .pky-section__header { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .pky-now-next-grid { grid-template-columns: 1fr; }
  .pky-app-cta { padding: 32px 24px; }
  .pky-app-cta__inner { grid-template-columns: 1fr; }
  .pky-detail-grid { grid-template-columns: 1fr; }
  .pky-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .pky-footer__grid > :last-child { grid-column: auto; }
  .pky-footer__bottom-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}

@media (max-width: 560px) {
  .pky-news-grid { grid-template-columns: 1fr; max-width: 430px; }
  .pky-news-grid .pky-card__media { aspect-ratio: 16 / 9; max-height: 235px; }
  .prh-player__inner { width: calc(100% - 20px) !important; }
  .prh-player__art { display: none !important; }
  .prh-player__info { display: block; }
  .prh-player__live { display: none; }
  .prh-player__program, .prh-player__host { grid-column: auto; max-width: calc(100vw - 220px); }
  .prh-player__volume-label { display: none !important; }
  .pky-container,
  .pky-narrow { width: min(calc(100% - 24px), var(--pky-container)); }
  .pky-quick-grid { grid-template-columns: 1fr; }
  .pky-quick-links { margin-top: -16px; }
  .pky-quick-card { min-height: 88px; }
  .pky-hero__actions .pky-button,
  .pky-hero__actions .pky-listen-button { width: 100%; }
  .pky-hero__meta { display: grid; }
  .pky-entry__body { padding: 23px; }
  .pky-card__body { padding: 18px; }
  .pky-shortcode-wrap .prh-now { align-items: flex-start; flex-direction: column; }
  .pky-shortcode-wrap .prh-now > img { width: 100%; aspect-ratio: 16/10; }
}

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