/* ===== Base Styles ===== */
body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: linear-gradient(135deg, #e3f0ff 0%, #f5f5f5 100%);
  margin: 0;
  padding: 0;
  color: #222;
  transition: background 0.3s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.title-link {
  text-decoration: none !important;
}

.logo {
  height: 48px;
  width: 48px;
  margin-right: 12px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: rotate(10deg) scale(1.05);
}

.header1 {
  font-size: 2em;
  color: #1976d2;
  font-weight: bold;
  letter-spacing: 1px;
  vertical-align: middle;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 12px;
}

.company-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #1976d2;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}
.company-btn:hover, 
.company-btn.active {
  background: #1565c0;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.18);
}

main {
  max-width: 900px;
  margin: 32px auto 0 auto;
  padding: 0 16px 32px 16px;
}

h1 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 24px;
  font-weight: 700;
  color: #1976d2;
}

.hero {
  text-align: center;
  margin: 48px 0 32px 0;
  font-size: 0.95em;
  animation: fadeIn 1s ease;
}

.hero-logo {
  margin-top: 24px;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.08);
  transition: transform 0.3s ease;
}
.hero-logo:hover {
  transform: scale(1.1);
}

.quick-links {
  text-align: center;
  margin: 32px 0;
}

.quick-btns {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

#filters {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.04);
  padding: 16px;
  transition: all 0.3s ease;
}

label {
  margin-right: 6px;
  font-weight: 500;
  color: #1976d2;
}

select {
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid #b0c4de;
  min-width: 140px;
  font-size: 1em;
  background: #f7fbff;
  color: #222;
  transition: border 0.2s ease;
}
select:hover {
  border-color: #1976d2;
}

#station-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.station {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
  padding: 18px 20px;
  transition: all 0.3s ease;
}
.station:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.2);
}

.station strong {
  font-size: 1.15em;
  color: #1976d2;
}

.station em {
  color: #666;
  margin-bottom: 8px;
  display: block;
  font-style: normal;
}

audio {
  margin-top: 8px;
  width: 100%;
  outline: none;
  border-radius: 6px;
  background: #f7fbff;
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, #e3f0ff 0%, #f5f5f5 100%);
  text-align: center;
  padding: 24px 12px;
  font-size: 0.9em;
  color: #555;
  border-top: 1px solid #ddd;
  margin-top: 40px;
  animation: fadeIn 0.8s ease;
}

.footer-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.footer-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}
/* ===== Play Counter Section ===== */
.play-counter-section {
  text-align: center;
  margin: 40px auto;
  padding: 0 20px;
}

#globalPlayCount {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(135deg, #f5f9ff 0%, #e3f0ff 100%);
  border-radius: 16px;
  box-shadow: 
    0 4px 20px rgba(25, 118, 210, 0.15),
    inset 0 0 0 1px rgba(255,255,255,0.8);
  font-size: 1.2em;
  font-weight: 600;
  color: #1976d2;
  transition: all 0.3s ease;
  border: 1px solid rgba(25, 118, 210, 0.1);
}

#playCountNumber {
  font-size: 1.4em;
  font-weight: 700;
  color: #0d47a1;
  background: linear-gradient(90deg, #1976d2, #42a5f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 8px;
}

#globalPlayCount:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 30px rgba(25, 118, 210, 0.25),
    inset 0 0 0 1px rgba(255,255,255,0.8);
}

/* Animation for counter updates */
@keyframes countUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.updating {
  animation: countUpdate 0.5s ease;
}

/* ===== Play Stats Section ===== */
.play-stats-section {
  margin: 60px auto;
  max-width: 900px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.stats-container {
  background: linear-gradient(135deg, #f0f7ff 0%, #e3f0ff 100%);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.stats-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(25, 118, 210, 0.3);
}

.stat-box {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.1);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.15);
}

/* Animation for counter updates */
@keyframes pulseGrow {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.updating {
  animation: pulseGrow 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-container {
    padding: 30px 20px;
  }
  
  .stat-box {
    padding: 15px;
  }
}

/* Animate background with slow subtle movement */
@keyframes backgroundMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body {
  background: linear-gradient(135deg, #e3f0ff 0%, #f5f5f5 100%);
  background-size: 200% 200%;
  animation: backgroundMove 30s ease infinite;
  transition: background 0.5s ease;
  color: #222;
}

/* Gradient animated header text */
@keyframes gradientText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.header1 {
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 1px;
  background: linear-gradient(270deg, #1976d2, #42a5f5, #1976d2);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 6s ease infinite;
  transition: color 0.3s ease;
}

/* Smooth scale and shadow hover on company buttons */
.company-btn {
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.company-btn:hover,
.company-btn.active {
  background: #1565c0;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.25);
  transform: scale(1.05);
}

/* Station card fade in and slide up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.station {
  animation: fadeInUp 0.4s ease forwards;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.station:hover {
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.24);
  transform: translateY(-4px);
}

/* Hero logo pulse */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 24px rgba(25, 118, 210, 0.08); }
  50% { transform: scale(1.05); box-shadow: 0 6px 30px rgba(25, 118, 210, 0.14); }
}

.hero-logo {
  animation: pulse 3s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}

/* Quick buttons: scale up on hover */
.quick-btns a {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-btns a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(25, 118, 210, 0.2);
}

/* Focus outlines for accessibility */
.company-btn:focus,
select:focus,
.quick-btns a:focus {
  outline: 3px solid #1976d2;
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(25, 118, 210, 0.7);
}

/* Footer icon hover with smooth scale */
.footer-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* === HEADER STYLES === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.05),
    inset 0 0 0 2px transparent; /* for animated border */

  border-radius: 0 0 16px 16px;
  perspective: 1000px;
  overflow: visible;
  animation: borderSlide 4s linear infinite;
  transition: box-shadow 0.3s ease;
}




@keyframes shimmer {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* === BUTTON STYLES === */
.company-btn {
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  font-size: 1em;
  font-weight: 700;
  color: #fff;
  background: #1976d2;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  box-shadow:
    0 4px 8px rgba(25, 118, 210, 0.5),
    0 0 8px rgba(25, 118, 210, 0.4);
  perspective: 800px;
  user-select: none;
}

/* Glowing layered border with pulse animation */


.company-btn::after {
  box-shadow: 0 0 20px 6px rgba(25, 118, 210, 0.8);
  animation-delay: 1.5s;
}

/* Wave animation overlay on hover */
.company-btn::before {
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transform: translateX(-150%);
  animation: none;
}

.company-btn:hover::before {
  animation: waveMove 1s ease forwards;
}

/* Wave moving left to right */
@keyframes waveMove {
  0% { transform: translateX(-150%) skewX(-25deg); }
  100% { transform: translateX(150%) skewX(-25deg); }
}

/* 3D press effect */
.company-btn:hover {
  background: #1565c0;
  box-shadow:
    0 6px 16px rgba(21, 101, 192, 0.6),
    0 0 12px rgba(33, 150, 243, 0.9);
  transform: translateZ(12px) scale(1.05);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.company-btn:active {
  transform: translateZ(0) scale(0.95);
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.6);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Focus ring for accessibility */
.company-btn:focus-visible {
  outline: 3px solid #64b5f6;
  outline-offset: 3px;
}
/* === Scale Everything Slightly Larger for Better Visibility === */
html {
  font-size: 18px; /* Default is ~16px. Increase for overall scale-up */
}

body {
  line-height: 1.75; /* More breathing room */
}

/* Main heading and hero */
h1 {
  font-size: 2.5em; /* Was 2.2em */
  margin-bottom: 32px; /* Add spacing */
}

.hero {
  font-size: 1.05em; /* Was 0.95em */
}

.hero-logo {
  width: 140px; /* Was 120px */
  height: 140px;
}

/* Buttons */
.company-btn {
  padding: 16px 32px; /* Was 14px 30px */
  font-size: 1.1em; /* Slight increase */
  border-radius: 14px;
}

/* Station cards */
.station {
  padding: 24px 28px; /* More spacious */
}

.station strong {
  font-size: 1.25em;
}

.station em {
  font-size: 1.05em;
}

/* Filters */
select {
  font-size: 1.05em;
  padding: 8px 14px;
  min-width: 160px;
}

/* Footer */
footer {
  font-size: 1em; /* Was 0.9em */
}

/* Adjust main container width */
main {
  max-width: 1100px; /* Was 900px */
}
/* === Smaller Header === */
header {
  padding: 0 24px;
  height: 56px;
}

/* Smaller logo */
.logo {
  height: 36px;
  width: 36px;
  margin-right: 8px;
}

/* Smaller animated header text */
.header1 {
  font-size: 1.5em; /* Was 2em */
  letter-spacing: 0.5px;
}
.company-btn {
  padding: 10px 20px;     /* Was 14px 30px */
  font-size: 0.9em;        /* Was 1em */
  border-radius: 8px;      /* Was 12px */
}


/* ===== Mobile Styles ===== */
@media screen and (max-width: 600px) {
  html {
    font-size: 13px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    gap: 8px;
  }

  .logo {
    height: 28px;
    width: 28px;
    margin-right: 6px;
  }

  .header1 {
    display: none;
  }

  nav {
    display: none;
  }

  .company-btn {
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 4px;
  }

  main {
    padding: 0 8px;
    margin-top: 24px;
  }

  h1 {
    font-size: 1.5em;
    margin-bottom: 16px;
  }

  .hero {
    margin: 24px 0 16px 0;
    font-size: 0.8em;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-top: 16px;
  }

  .quick-links {
    margin: 24px 0;
  }

  .quick-btns {
    flex-direction: column;
    gap: 8px;
  }

  #filters {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }

  select {
    width: 100%;
    font-size: 0.9em;
    padding: 4px 10px;
  }

  .station {
    padding: 12px 14px;
    font-size: 0.9em;
    gap: 6px;
  }

  .station strong {
    font-size: 1em;
  }

  .station em {
    font-size: 0.85em;
  }

  audio {
    width: 100%;
  }

  footer {
    font-size: 0.8em;
    padding: 18px 8px;
  }

  .footer-icon {
    width: 36px;
    height: 36px;
  }
}


/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
