/*
Theme Name: UCOES Radio
Theme URI: https://ucoesradio.com/
Author: UCOES Radio
Author URI: https://ucoesradio.com/
Description: Tema personalizado oscuro para UCOES Radio - Radio online 24h desde El Salvador. Incluye visualizador de audio canvas, reproductor streaming, secciones de programas, servicios funerarios, inmobiliaria, anuncios, galeria y contacto.
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ucoes-radio
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #080c1a;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080c1a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-gradient {
  background: linear-gradient(90deg, #60a5fa, #c084fc, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
}

.glass-strong {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
}

.glow-blue {
  box-shadow: 0 0 30px rgba(59,130,246,0.15), 0 0 60px rgba(59,130,246,0.05);
}

.section-bg {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
@media (min-width: 640px) { .section-bg { padding: 8rem 0; } }

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #080c1a 0%, #0a0e1f 50%, #080c1a 100%);
  z-index: 0;
}

/* ===== NAVBAR ===== */
.nav-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.5s ease;
}

.nav-transparent { background: transparent; }

.nav-scrolled {
  background: rgba(8,12,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) { .nav-inner { height: 80px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nav-logo-sub {
  font-size: 0.625rem;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.nav-btn {
  margin-left: 1rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(37,99,235,0.2);
  transition: all 0.3s;
}

.nav-btn:hover {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  padding: 0.5rem;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile menu overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.mobile-overlay.active { display: block; }

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 106;
  background: rgba(8,12,26,0.98);
  backdrop-filter: blur(24px);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active { transform: translateX(0); }

.mobile-menu a {
  display: block;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #cbd5e1;
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.mobile-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.mobile-menu .mobile-btn {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  border-radius: 0.75rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1 {
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(59,130,246,0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-orb-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(139,92,246,0.1);
  animation: float 6s ease-in-out infinite 2s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.pulse-dot {
  position: relative;
  width: 0.625rem;
  height: 0.625rem;
}

.pulse-dot::before,
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.pulse-dot::before {
  background: #f87171;
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

.pulse-dot::after {
  background: #ef4444;
}

.hero-logo {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
}

@media (min-width: 640px) { .hero-logo { width: 10rem; height: 10rem; } }

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 6rem; } }

.hero-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 36rem;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.7;
}

@media (min-width: 640px) { .hero-subtitle { font-size: 1.25rem; } }

/* Player card */
.player-card {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 1rem;
}

.player-card iframe {
  display: block;
  width: 100%;
  height: 110px;
  border: none;
  border-radius: 0.75rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 32rem;
  margin: 3rem auto 0;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

@media (min-width: 640px) { .stat-value { font-size: 1.875rem; } }

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 4rem;
}

.scroll-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: #60a5fa;
  border-radius: 50%;
  margin: 0 auto;
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ===== SECTION HEADERS ===== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.section-badge svg { width: 1rem; height: 1rem; }

.section-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .section-title { font-size: 3rem; } }

.section-desc {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 36rem;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

.card-grid-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid-6 { grid-template-columns: repeat(6, 1fr); }
}

.card {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover { transform: scale(1.02); }

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrap img { transform: scale(1.1); }

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #080c1a, rgba(8,12,26,0.5), transparent);
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Program cards - overlay style */
.program-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.program-card .program-img {
  aspect-ratio: 4/3;
}

.program-card .program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.program-card:hover .program-img img { transform: scale(1.1); }

.program-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, #080c1a, rgba(8,12,26,0.5), transparent);
}

/* ===== TABS ===== */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover { color: #fff; }

.tab-btn.active {
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  box-shadow: 0 4px 15px rgba(37,99,235,0.2);
  border-color: transparent;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FEATURED PLAN ===== */
.featured-ring {
  box-shadow: 0 0 0 2px rgba(245,158,11,0.3);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f59e0b, #eab308);
  color: #000;
  font-size: 0.625rem;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.feature-list li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #60a5fa;
  flex-shrink: 0;
}

/* ===== INMOBILIARIA CARDS ===== */
.inmo-card {
  padding: 1rem;
  text-align: center;
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.inmo-card:hover {
  transform: scale(1.05);
  box-shadow: inset 0 0 0 1px rgba(16,185,129,0.3), 0 0 40px rgba(16,185,129,0.05);
}

.inmo-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.inmo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 4rem;
  grid-auto-rows: 180px;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}

.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-span-2 { grid-column: span 2; }
.gallery-row-2 { grid-row: span 2; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-float-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
}

.about-text p {
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-text strong { color: #fff; }

.about-text em { color: #fff; font-style: italic; }

.about-text .highlight { color: #60a5fa; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 2fr 3fr; gap: 2rem; }
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
}

.contact-info-card:hover {
  background: rgba(255,255,255,0.08);
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-icon svg { width: 1.25rem; height: 1.25rem; color: #fff; }

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-size: 0.875rem;
  color: #fff;
  font-weight: 500;
}

/* Contact form */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.875rem;
  transition: all 0.2s;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #64748b; }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2);
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.contact-form .form-group { margin-bottom: 1.25rem; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37,99,235,0.2);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

.btn-primary svg { width: 1rem; height: 1rem; }

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 0 2rem;
  background: #060a14;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand p {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 20rem;
  line-height: 1.7;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.875rem;
  color: #64748b;
  transition: color 0.2s;
}

.footer-links a:hover { color: #60a5fa; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.08);
}

.footer-social svg { width: 1rem; height: 1rem; color: #94a3b8; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-bottom .heart { color: #ef4444; }

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== WORDPRESS SPECIFIC ===== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.aligncenter { display: block; margin: 0 auto; }

.wp-caption { max-width: 100%; }

/* Admin bar fix */
body.admin-bar .nav-fixed { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav-fixed { top: 46px; }
}

/* ===== RESPONSIVE HELPERS ===== */
.hide-mobile { display: none; }
@media (min-width: 1024px) { .hide-mobile { display: block; } }

.show-mobile { display: block; }
@media (min-width: 1024px) { .show-mobile { display: none; } }

.text-center { text-align: center; }

/* ===== HTML5 AUDIO PLAYER ===== */
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.player-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.player-header-text { text-align: left; }

.player-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0;
}

.player-status-text {
  color: #94a3b8;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.player-status-text svg { width: 0.75rem; height: 0.75rem; }

.player-header-right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.player-streaming-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Visualizer */
.player-visualizer-wrap {
  position: relative;
  height: 5rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.player-visualizer-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.visualizer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visualizer-dots {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 2rem;
}

.v-dot {
  width: 0.25rem;
  border-radius: 9999px;
  background: #475569;
  height: 20%;
  animation: vDotPulse 1.2s ease-in-out infinite;
}

@keyframes vDotPulse {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* Track info */
.player-track-info {
  margin-bottom: 1.25rem;
  text-align: center;
}

.player-track-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
}

.live-pulse {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: ping 1s cubic-bezier(0,0,0.2,1) infinite;
  opacity: 0.75;
}

.pulse-core {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
}

.track-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}

.track-name.track-live { color: #4ade80; }

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.play-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(37,99,235,0.3);
  transition: all 0.2s;
}

.play-btn:hover {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  box-shadow: 0 0 30px rgba(37,99,235,0.5);
  transform: scale(1.05);
}

.play-btn:active { transform: scale(0.95); }

.play-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.play-btn svg { color: #fff; }

.loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Volume */
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 16rem;
}

.mute-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.mute-btn:hover { color: #fff; }

.volume-slider {
  flex: 1;
  height: 0.375rem;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 2px solid #1e3a5f;
}

.volume-slider::-moz-range-thumb {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 2px solid #1e3a5f;
}

.vol-percent {
  font-size: 0.75rem;
  color: #94a3b8;
  width: 2rem;
  text-align: right;
  flex-shrink: 0;
}

/* Status badge */
.status-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.status-live {
  background: rgba(34,197,94,0.2);
  color: #4ade80;
}

.status-paused {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
}

.status-loading {
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
}

.status-error {
  background: rgba(239,68,68,0.2);
  color: #f87171;
}

/* Error message */
.player-error {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
  font-size: 0.875rem;
  text-align: center;
}

.retry-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.retry-link:hover { color: #fca5a5; }

@media (max-width: 480px) {
  .player-controls {
    gap: 0.75rem;
  }
  .volume-wrap {
    max-width: 10rem;
  }
  .vol-percent {
    display: none;
  }
}
