/**
 * HRN Hero Plugin — Standalone CSS
 * Uses BEM naming (hrn-hero__*) to avoid conflicts with any theme.
 * @version 1.0.0
 */

/* ── Hero Section ──────────────────────────────────────────────── */
.hrn-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  font-family: 'Poppins', 'Inter', sans-serif;
  color: #fff;
}

.hrn-hero__bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.25) saturate(1.3);
  transform: scale(1.1);
  z-index: 0;
  transition: background-image 0.8s ease;
}

.hrn-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,9,11,0.9) 0%, rgba(8,9,11,0.5) 50%, rgba(8,9,11,0.9) 100%);
  z-index: 1;
}

/* Rasta diagonal glow */
.hrn-hero__overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(160deg, rgba(204,0,0,0.08) 0%, rgba(212,160,23,0.12) 40%, rgba(0,166,81,0.08) 80%, transparent 100%);
  z-index: 0;
}

/* HRN logo watermark */
.hrn-hero__overlay::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background-image: url('/wp-content/uploads/2024/12/ball-logo-BIGH.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

/* Left Rasta stripe */
.hrn-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #cc0000 0%, #D4A017 50%, #00A651 100%);
  z-index: 3;
}

.hrn-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 48px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.hrn-hero__left { max-width: 520px; }

/* On Air badge */
.hrn-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.3);
  color: #ff4444;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.hrn-hero__dot {
  width: 6px;
  height: 6px;
  background: #ff4444;
  border-radius: 50%;
  animation: hrn-pulse 2s infinite;
}

@keyframes hrn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hrn-hero__dj {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px;
  color: #fff;
}

.hrn-hero__show {
  font-size: 1.1rem;
  font-weight: 600;
  color: #D4A017;
  margin: 0 0 4px;
}

.hrn-hero__time {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 20px;
}

/* Now Playing inside hero */
.hrn-hero__np {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
  max-width: 380px;
}

.hrn-hero__np-art {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.hrn-hero__np-info { min-width: 0; }

.hrn-hero__np-artist {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrn-hero__np-song {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Play button */
.hrn-hero__play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00E676;
  color: #08090B;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.hrn-hero__play:hover {
  background: #00C853;
  transform: scale(1.03);
}

.hrn-hero__play-icon { font-size: 1.1rem; }

/* DJ Photo */
.hrn-hero__photo {
  width: 240px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.hrn-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

/* ── Up Next ───────────────────────────────────────────────────── */
.hrn-upnext {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
}

.hrn-upnext__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hrn-upnext__img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.hrn-upnext__label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
}

.hrn-upnext__name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.hrn-upnext__time {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
}

/* ── Ad Zone ───────────────────────────────────────────────────── */
.hrn-ad-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 40px;
  align-items: stretch;
}

.hrn-ad-slot {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nuclear override — catch every nesting depth */
.hrn-ad-slot img,
.hrn-ad-slot div img,
.hrn-ad-slot div div img,
.hrn-ad-slot div div div img,
.hrn-ad-slot a img,
.hrn-ad-slot div a img,
.hrn-ad-slot div div a img {
  width: 100% !important;
  height: 200px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force all wrappers to fill */
.hrn-ad-slot > *,
.hrn-ad-slot div,
.hrn-ad-slot a,
.hrn-ad-slot span,
.hrn-ad-slot [class*="advads"],
.hrn-ad-slot [class*="advanced-ads"] {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 12px;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.hrn-ad-placeholder {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(212,160,23,0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  max-width: 1280px;
  margin: 20px auto;
  color: rgba(255,255,255,0.5);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hrn-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 20px;
  }
  .hrn-hero__left { max-width: 100%; }
  .hrn-hero__right { justify-self: center; order: -1; }
  .hrn-hero__photo { width: 160px; height: 160px; }
  .hrn-hero__np { margin: 0 auto 20px; }
  .hrn-hero__play { width: 100%; justify-content: center; }
  .hrn-upnext__inner { padding: 0 20px; }
  .hrn-ad-row {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .hrn-ad-slot img,
  .hrn-ad-slot > div img {
    height: 160px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STICKY PLAYER BAR — v1.2.0
   Fixed to viewport bottom, survives page navigation via iframe
   ═══════════════════════════════════════════════════════════════ */

#hrn-sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.6);
  font-family: 'Poppins', 'Inter', sans-serif;
  color: #fff;
  transition: transform 0.3s ease;
}

/* Rasta top stripe */
#hrn-sticky-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #cc0000 0%, #D4A017 50%, #00A651 100%);
}

.hrn-sticky__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 68px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Play button */
.hrn-sticky__play {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00E676;
  color: #08090B;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
}

.hrn-sticky__play:hover {
  background: #00C853;
  transform: scale(1.08);
}

/* Album art */
.hrn-sticky__art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1a;
}

/* Track info */
.hrn-sticky__info {
  flex: 1;
  min-width: 0;
}

.hrn-sticky__artist {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.hrn-sticky__title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Live badge */
.hrn-sticky__live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff4444;
  flex-shrink: 0;
}

.hrn-sticky__dot {
  width: 5px;
  height: 5px;
  background: #ff4444;
  border-radius: 50%;
  animation: hrn-pulse 2s infinite;
}

/* Volume slider */
.hrn-sticky__vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hrn-sticky__vol-icon {
  font-size: 0.85rem;
  opacity: 0.5;
  line-height: 1;
}

.hrn-sticky__vol {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.hrn-sticky__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00E676;
  cursor: pointer;
}

.hrn-sticky__vol::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00E676;
  cursor: pointer;
  border: none;
}

/* Close button */
.hrn-sticky__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s;
}

.hrn-sticky__close:hover { color: rgba(255,255,255,0.7); }

/* Playing state — subtle green accent on border */
#hrn-sticky-player.hrn-sticky--playing::before {
  animation: hrn-stripe-glow 3s ease-in-out infinite alternate;
}

@keyframes hrn-stripe-glow {
  from { opacity: 0.7; }
  to   { opacity: 1; filter: brightness(1.3); }
}

/* Bump page content up so sticky bar doesn't cover footer */
body { padding-bottom: 68px !important; }

/* Hidden iframe engine */
#hrn-audio-iframe {
  position: fixed;
  width: 1px;
  height: 1px;
  bottom: 68px;
  left: -9999px;
  border: none;
  visibility: hidden;
}

/* Responsive */
@media (max-width: 600px) {
  .hrn-sticky__vol-wrap { display: none; }
  .hrn-sticky__live     { display: none; }
  .hrn-sticky__inner    { gap: 12px; padding: 0 14px; }
}
