/*
Theme Name: Citysound FM
Theme URI: https://citysoundfm.com/
Author: OpenAI
Description: Custom upscale modern WordPress theme for The All New Citysound 97.5 FM. Elementor-friendly with built-in live radio player in header and footer.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: citysoundfm
*/

:root {
  --cs-bg: #08110f;
  --cs-bg-soft: #0d1815;
  --cs-card: rgba(255,255,255,0.06);
  --cs-card-border: rgba(255,255,255,0.12);
  --cs-text: #ffffff;
  --cs-muted: #bfd2cb;
  --cs-green: #0f5b2a;
  --cs-gold: #ffd34d;
  --cs-orange: #ff7a00;
  --cs-red: #e53935;
  --cs-shadow: 0 18px 48px rgba(0,0,0,.28);
  --cs-radius: 22px;
  --cs-radius-sm: 14px;
  --cs-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cs-text);
  background:
    radial-gradient(circle at top right, rgba(255,122,0,.18), transparent 22%),
    radial-gradient(circle at top left, rgba(255,211,77,.14), transparent 26%),
    linear-gradient(180deg, #0a1411 0%, #08110f 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(calc(100% - 32px), var(--cs-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(5, 10, 9, 0.88);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 88px;
}
.branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.branding img.custom-logo,
.branding .brand-fallback img {
  max-height: 58px;
  width: auto;
}
.branding .site-title-wrap {
  display: none;
}
.main-navigation .menu,
.main-navigation ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-navigation a {
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 14px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--cs-gold);
}

.cs-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,122,0,.16), rgba(255,211,77,.12));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--cs-shadow);
}
.cs-player button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  color: #07100d;
  background: linear-gradient(180deg, #ffd34d 0%, #ff9b23 100%);
  font-weight: 800;
  cursor: pointer;
}
.cs-player-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cs-player-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cs-muted);
}
.cs-player-status {
  font-size: 14px;
  font-weight: 700;
}
.cs-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cs-red);
  box-shadow: 0 0 0 0 rgba(229,57,53,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229,57,53,.7); }
  70% { box-shadow: 0 0 0 12px rgba(229,57,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
}

.hero {
  padding: 70px 0 50px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
}
.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}
.hero-copy p {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--cs-muted);
  max-width: 660px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--cs-gold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #09100d;
  background: linear-gradient(180deg, #ffd34d 0%, #ff7a00 100%);
  box-shadow: 0 12px 28px rgba(255,122,0,.24);
}
.btn-secondary {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-logo-card,
.card {
  background: var(--cs-card);
  border: 1px solid var(--cs-card-border);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
}
.hero-logo-card {
  padding: 20px;
}
.hero-logo-card img {
  width: 100%;
  border-radius: 18px;
  filter: drop-shadow(0 0 25px rgba(255,106,0,0.35));
}

.section {
  padding: 34px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}
.section-heading p,
.page-hero p {
  margin: 6px 0 0;
  color: var(--cs-muted);
}
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.show-card,
.person-card,
.sponsor-card,
.archive-card,
.gallery-card,
.info-card,
.schedule-card {
  padding: 22px;
  border-radius: var(--cs-radius);
  background: var(--cs-card);
  border: 1px solid var(--cs-card-border);
  box-shadow: var(--cs-shadow);
}
.show-card h3,
.person-card h3,
.archive-card h3,
.info-card h3,
.schedule-card h3 { margin: 0 0 8px; }
.meta {
  color: var(--cs-gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.card p,
.show-card p,
.person-card p,
.info-card p,
.schedule-card p,
.archive-card p { color: var(--cs-muted); }

.timeline {
  display: grid;
  gap: 14px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.timeline-time {
  color: var(--cs-gold);
  font-weight: 800;
}
.page-hero {
  padding: 52px 0 18px;
}
.page-content {
  padding: 8px 0 48px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-stub input,
.form-stub textarea,
.form-stub select {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #fff;
}
.form-stub button {
  appearance: none;
  border: 0;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  color: #08110f;
  background: linear-gradient(180deg, #ffd34d 0%, #ff7a00 100%);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.placeholder-photo {
  min-height: 240px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,122,0,.28), rgba(255,211,77,.12)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,.86);
  font-weight: 700;
}
.site-footer {
  padding: 28px 0 100px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-brand img { max-height: 72px; width: auto; }
.footer-copy { color: var(--cs-muted); }
.cs-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #06110b;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(37,211,102,.28), 0 0 0 1px rgba(255,255,255,.16) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cs-whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(37,211,102,.36), 0 0 0 1px rgba(255,255,255,.22) inset;
  color: #06110b;
}
.cs-whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #128C7E;
  font-size: 17px;
  line-height: 1;
}
.cs-whatsapp-text { white-space: nowrap; }
.footer-player-wrap {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 999;
}
.footer-player {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(8,17,15,.94);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.footer-player .cs-player {
  justify-content: center;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}
.site-main .elementor {
  color: inherit;
}
.mobile-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .header-inner,
  .hero-grid,
  .footer-grid,
  .two-col,
  .grid-3,
  .grid-4,
  .photo-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .main-navigation.is-open { display: block; padding-bottom: 18px; }
  .main-navigation .menu,
  .main-navigation ul { flex-direction: column; align-items: flex-start; }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    cursor: pointer;
  }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .cs-player-meta { display: none; }
}

@media (max-width: 767px) {
  body.admin-bar .site-header { top: 46px; }
  .timeline-row { grid-template-columns: 1fr; }
  .container { width: min(calc(100% - 20px), var(--cs-width)); }
  .hero { padding-top: 42px; }
  .hero-copy p { font-size: 16px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
.cs-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #06110b;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(37,211,102,.28), 0 0 0 1px rgba(255,255,255,.16) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cs-whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(37,211,102,.36), 0 0 0 1px rgba(255,255,255,.22) inset;
  color: #06110b;
}
.cs-whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #128C7E;
  font-size: 17px;
  line-height: 1;
}
.cs-whatsapp-text { white-space: nowrap; }
  .footer-player-wrap { left: 10px; right: 10px; bottom: 10px; }
  .cs-whatsapp-float { right: 14px; bottom: 86px; padding: 12px 14px; }
  .cs-whatsapp-text { display: none; }
  .footer-player { border-radius: 20px; }
}

/* Smart Previous Shows Archive */
.archive-hero .two-col { align-items: center; }
.featured-archive-callout { min-height: 260px; display: flex; flex-direction: column; justify-content: center; }
.smart-archive-system { display: grid; gap: 22px; }
.archive-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.archive-filter { appearance: none; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--cs-text); border-radius: 999px; padding: 10px 15px; font-weight: 800; cursor: pointer; }
.archive-filter.active, .archive-filter:hover { color: #07100d; background: linear-gradient(180deg, #ffd34d 0%, #ff9b23 100%); }
.archive-search-wrap { width: 100%; }
.archive-search { width: 100%; min-height: 54px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; padding: 0 18px; font-size: 16px; }
.archive-search::placeholder { color: rgba(255,255,255,.58); }
.smart-archive-grid { align-items: stretch; }
.smart-archive-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.archive-thumb { min-height: 180px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255,122,0,.22), rgba(255,211,77,.10)); color: var(--cs-gold); font-weight: 900; text-align: center; }
.archive-thumb img { width: 100%; height: 210px; object-fit: cover; }
.archive-card-body { padding: 22px; display: grid; gap: 10px; flex: 1; }
.archive-meta-row { display: flex; flex-wrap: wrap; gap: 10px; color: var(--cs-muted); font-size: 13px; }
.cs-episode-player { width: 100%; margin-top: 4px; filter: saturate(1.1); }
.cs-episode-player-large { margin-bottom: 22px; }
.archive-audio-placeholder { border: 1px dashed rgba(255,255,255,.2); color: var(--cs-muted); border-radius: 14px; padding: 14px; font-size: 14px; }
.archive-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.episode-art img { max-height: 420px; width: 100%; object-fit: contain; }
.episode-detail-card { max-width: 920px; margin: 0 auto; }

/* Citysound FM Premium Color System Applied */
:root {
  --cs-bg: #0B0B0B;
  --cs-bg-soft: #111111;
  --cs-bg-deep: #050505;
  --cs-card: rgba(20,20,20,0.92);
  --cs-card-strong: #141414;
  --cs-card-border: rgba(212,175,55,0.18);
  --cs-text: #FFFFFF;
  --cs-muted: #B3B3B3;
  --cs-muted-2: #7D7D7D;
  --cs-orange: #FF6A00;
  --cs-orange-bright: #FF8A1D;
  --cs-gold: #D4AF37;
  --cs-gold-bright: #FFD700;
  --cs-green: #0F5B2A;
  --cs-red: #E53935;
  --cs-shadow: 0 22px 60px rgba(0,0,0,.42);
  --cs-glow-orange: 0 0 26px rgba(255,106,0,.26);
  --cs-glow-gold: 0 0 22px rgba(255,215,0,.16);
}
body {
  background:
    radial-gradient(circle at top right, rgba(255,106,0,.16), transparent 24%),
    radial-gradient(circle at top left, rgba(212,175,55,.13), transparent 26%),
    linear-gradient(180deg, #0B0B0B 0%, #050505 100%);
}
.site-header {
  background: rgba(7,7,7,.90);
  border-bottom: 1px solid rgba(212,175,55,.16);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--cs-orange-bright); }
.cs-player {
  background: linear-gradient(135deg, rgba(255,106,0,.20), rgba(212,175,55,.12));
  border-color: rgba(212,175,55,.18);
}
.cs-player button,
.btn-primary,
.form-stub button,
.archive-filter.active,
.archive-filter:hover {
  color: #050505;
  background: linear-gradient(180deg, var(--cs-gold-bright) 0%, var(--cs-orange) 100%);
  box-shadow: 0 16px 34px rgba(255,106,0,.24);
}
.btn-secondary:hover {
  border-color: rgba(212,175,55,.32);
  box-shadow: var(--cs-glow-gold);
}
.hero-copy h1,
.section-heading h2,
.page-hero h1 { letter-spacing: -0.035em; }
.hero-logo-card img { filter: drop-shadow(0 0 26px rgba(255,106,0,.28)); }
.hero-logo-card,
.card,
.show-card,
.person-card,
.sponsor-card,
.archive-card,
.gallery-card,
.info-card,
.schedule-card {
  background: var(--cs-card);
  border-color: var(--cs-card-border);
  box-shadow: var(--cs-shadow);
}
.show-card:hover,
.person-card:hover,
.sponsor-card:hover,
.archive-card:hover,
.gallery-card:hover,
.info-card:hover,
.schedule-card:hover {
  border-color: rgba(255,106,0,.34);
  box-shadow: var(--cs-shadow), var(--cs-glow-orange);
  transform: translateY(-2px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.meta,
.timeline-time,
.eyebrow { color: var(--cs-gold-bright); }
.timeline-row {
  background: rgba(255,255,255,.035);
  border-left: 3px solid rgba(255,106,0,.55);
}
.timeline-row:hover {
  border-color: rgba(255,106,0,.72);
  background: rgba(255,106,0,.065);
}
.footer-player { background: rgba(8,8,8,.96); }
.site-footer { background: rgba(0,0,0,.38); }
.cs-live-dot {
  background: var(--cs-red);
  box-shadow: 0 0 16px rgba(229,57,53,.65);
}
.placeholder-photo {
  background:
    linear-gradient(145deg, rgba(255,106,0,.25), rgba(212,175,55,.12)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.archive-thumb { background: linear-gradient(135deg, rgba(255,106,0,.22), rgba(212,175,55,.10)); }
::selection { color: #050505; background: var(--cs-gold-bright); }

/* Sticky Interactive Header + Footer Player Upgrade */
body { padding-bottom: 104px; }
.site-header { position: sticky; top: 0; z-index: 1200; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-player-wrap { display: flex; justify-content: flex-end; }
.cs-player { position: relative; isolation: isolate; min-width: 250px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cs-player:hover { transform: translateY(-1px); box-shadow: var(--cs-shadow), var(--cs-glow-orange); }
.cs-player.is-playing { border-color: rgba(255,106,0,.48); box-shadow: var(--cs-shadow), 0 0 34px rgba(255,106,0,.24); }
.cs-player button.cs-player-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 92px; letter-spacing: .01em; }
.cs-player-icon { font-size: 14px; line-height: 1; }
.cs-player-title { font-size: 13px; font-weight: 900; color: #fff; }
.cs-player-status { color: #fff; }
.cs-player.is-playing .cs-player-status { color: var(--cs-gold-bright); }
.cs-player-volume { width: 82px; accent-color: var(--cs-orange); cursor: pointer; }
.cs-player-stream-label { display: none; font-size: 12px; color: var(--cs-muted); font-weight: 700; }
.footer-player-wrap { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 1300; pointer-events: none; }
.footer-player { pointer-events: auto; width: min(100%, 1180px); margin: 0 auto; padding: 12px 18px; border-radius: 999px; background: rgba(5,5,5,.96); border: 1px solid rgba(212,175,55,.22); box-shadow: 0 24px 70px rgba(0,0,0,.52), 0 0 28px rgba(255,106,0,.12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.footer-player .cs-player { width: 100%; max-width: none; justify-content: center; background: transparent; border: 0; box-shadow: none; padding: 0; }
.footer-player .cs-player:hover { transform: none; box-shadow: none; }
.footer-player .cs-player-stream-label { display: inline-flex; }
.footer-player .cs-player-title { font-size: 14px; }
@media (max-width: 1024px) { body { padding-bottom: 110px; } .header-inner { gap: 12px; } .header-player-wrap .cs-player { min-width: auto; padding: 8px 10px; } .header-player-wrap .cs-player-volume, .header-player-wrap .cs-player-meta, .header-player-wrap .cs-player-title { display: none; } .header-player-wrap .cs-player button.cs-player-toggle { min-width: 54px; width: 54px; padding: 0; } .header-player-wrap .cs-player button.cs-player-toggle .cs-player-action { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 118px; } .footer-player-wrap { left: 10px; right: 10px; bottom: 10px; } .footer-player { border-radius: 22px; padding: 12px; } .footer-player .cs-player { display: grid; grid-template-columns: auto auto 1fr; justify-content: stretch; gap: 10px; } .footer-player .cs-player button.cs-player-toggle { min-width: 86px; height: 46px; } .footer-player .cs-player-meta { display: flex; } .footer-player .cs-player-title, .footer-player .cs-player-stream-label { display: none; } .footer-player .cs-player-volume { grid-column: 1 / -1; width: 100%; } .cs-whatsapp-float { bottom: 104px !important; } }
