/* System font stack for better performance */
    :root {
      --primary: #4361ee;
      --primary-dark: #3a56d4;
      --accent: #4cc9f0;
      --bg: #f8f9fa;
      --text: #2b2d42;
      --text-light: #6c757d;
      --card-bg: #ffffff;
      --header-bg: #2f3e9e;
      --footer-bg: #2b2d42;
      --shadow: 0 4px 6px rgba(0,0,0,0.05);
      --shadow-hover: 0 8px 15px rgba(0,0,0,0.1);
      --border-radius: 12px;
      --border-radius-sm: 8px;
      --desktop-width: 800px;
    }
    
    * { 
      margin: 0; 
      padding: 0; 
      box-sizing: border-box; 
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
      background: var(--bg);
      color: var(--text);
      line-height: normal;
    }

    a {
text-decoration: none !important;
}
    p{line-height: normal;margin-bottom: 0.5em;}
    /* Skip to content link for accessibility */
    .skip-link {
      position: absolute;
      top: -40px;
      left: 0;
      background: var(--primary);
      color: white;
      padding: 8px;
      z-index: 100;
      transition: top 0.3s;
    }

    h2 {
      font-size: 1.2em;
      margin-bottom: 0.3em;
       margin-top: 0.5em;
    }

    h3 {
      font-size: 1em;
      margin-bottom: 0.3em;
       margin-top: 0.5em;
    }
    
    .skip-link:focus {
      top: 0;
    }
    
    /* Fixed width container for desktop */
    .app-container {
      max-width: var(--desktop-width);
      margin: 0 auto;
      background: white;
      min-height: auto;
      position: relative;
      box-shadow: 0 0 30px rgba(0,0,0,0.1);
    }
    
    /* App-like header */
    .main-header {
      position: sticky;
      top: 0;
      background: #DA4453;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #89216B, #DA4453);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #89216B, #DA4453); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

      color: var(--text);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1em 1.5em;
      box-shadow: var(--shadow);
      z-index: 100;
      max-width: var(--desktop-width);
      margin: 0 auto;
    }
    
    .logo { 
      font-weight: 700; 
      font-size: 1.3em;
      color: #fff;
    }

    .logo a { 
      text-decoration: none;
      color: #fff;
    }
    
    nav {
      display: flex;
      align-items: center;
    }
    
    nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 0.2em;
  background-color: white;
  color: var(--primary);
  border-radius: 50%;
  font-size: 1em;
  font-weight: normal;
  text-align: center;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

nav a:hover {
  background-color: var(--accent);
  color: white;
  transform: scale(1.1);
}
    
    
    /* Main content with fixed width */
    main {
      padding: 1em 1.5em;
    }
    
    /* Category navigation */
    .category-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3em;
      margin-bottom: 1em;
      justify-content: center;
    }
    .category-btn {
      background: #DA4453;
background: -webkit-linear-gradient(to right, #89216B, #DA4453);
background: linear-gradient(to right, #89216B, #DA4453);

      border: 0px;
      border-radius: 10px;
      padding: 0.5em;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.3em;
      font-size: 0.9em;
      font-weight: 600;
      transition: all 0.2s;
      color: #fff;
    }
    
    
    .category-btn:hover {
      background: var(--primary-dark);
      color: #fff;
    }
     
    .content-wrapper {
      display: flex;
      flex-direction: column;
      gap: 1.5em;
    }
    
    /* Player section */
    .player-section {
background: #FFEFBA;
background: -webkit-linear-gradient(to top, #FFFFFF, #FFEFBA);
background: linear-gradient(to top, #FFFFFF, #FFEFBA);



border-radius: var(--border-radius);
      
      padding: 1em;
      box-shadow: var(--shadow);
      text-align: center;
      position: relative;
    }
    
    figure {
      margin: 0 auto;
      width: 120px;
      height: 120px;
    }
    
    .station-art {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: var(--border-radius);
      box-shadow: 0 8px 20px rgba(67, 97, 238, 0.2);
      border: 3px solid white;
    }
    
    .station-title { 
      font-size: 1.4em; 
      font-weight: 700; 
      margin: 0.2em 0 0.1em;
      color: var(--text);
    }
    
    .badge {
      background: #e52d27;  /* fallback for old browsers */
background: -webkit-linear-gradient(to top, #b31217, #e52d27);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to top, #b31217, #e52d27); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

      color: white;
      padding: 0.3em 1em;
      border-radius: 50px;
      font-size: 0.75em;
      font-weight: 600;
      margin-bottom: 0.1em;
      display: inline-block;
    }
    
    .player-controls {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1em;
      margin-bottom: 1em; margin-top: 0.2em;
    }
    
    .player-btn {
      background: rgba(236, 0, 140);  /* fallback solid with 50% opacity */
background: -webkit-linear-gradient(to top, rgba(252, 103, 103), rgba(236, 0, 140));
background: linear-gradient(to top, rgba(252, 103, 103), rgba(236, 0, 140));


      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      color: white;
      transition: all 0.2s;
      box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
    }
    
    .player-btn:hover {
      background: var(--primary-dark);
      transform: scale(1.05);
    }
    
    .player-btn i {
      font-size: 1.2em;
    }
    
    #playPauseBtn {
      width: 60px;
      height: 60px;
    }
    
    #playPauseBtn i {
      font-size: 1.5em;
    }
    
    .visualizer {
      display: none;
      justify-content: center;
      gap: 5px;
      height: 30px;
      padding-top: 20px;
    }
    
.bar {
  width: 4px;
  height: 6px;
  background: var(--accent, #4CAF50);
  border-radius: 0px;
  transform-origin: bottom;
  transition: transform 0.1s linear;
}

    
    .volume-wrap {

      display: flex;
      align-items: center;
      gap: 0.5em;
      margin-top: 10px;
    }
    
    .volume-wrap i {
      color: var(--text-light);
      font-size: 1em;
    }
    
    input[type="range"] { 
      flex: 1;
      height: 4px;
      -webkit-appearance: none;
      background: #e9ecef;
      border-radius: 10px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      background: var(--primary);
      border-radius: 50%;
      cursor: pointer;
    }

    .icon-symbol {
  font-size: 1.8em;
  display: inline-block;
  line-height: 1;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
    
    /* Info section */
    .info-section {
background: #F5F5F5;  /* fallback for old browsers */
background: -webkit-linear-gradient(to top, #F5F5F5, #EFEFEF, #FAFAFA, #D6D3CC);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to top, #F5F5F5, #EFEFEF, #FAFAFA, #D6D3CC); /* W3C, modern browsers */

      border-radius: var(--border-radius);
      padding: 1em;
      box-shadow: var(--shadow);
    }
    
    .info-section h2 {
      font-size: 1.3em;
      margin-bottom: 1em;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.5em;
    }
    
    .info-list {
      line-height: 1.8;
      font-size: 0.95em;
    }
    
    .info-list b {
      color: var(--text);
      font-weight: 600;
      display: inline-block;
      width: 100px;
    }
    
    .share-buttons {
      margin-top: 1.5em;
      display: flex;
      gap: 0.8em;
    }
    
    .share-btn {
      flex: 1;
      padding: 0.6em;
      border-radius: var(--border-radius-sm);
      text-decoration: none;
      font-size: 0.9em;
      font-weight: 500;
      text-align: center;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5em;
    }
    
    .whatsapp {
      background: #25D366;
      color: white;
    }
    
    .facebook {
      background: #1877F2;
      color: white;
    }
    
    .share-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }
    
    /* Sections styling */
    .section-container {
      padding: 0 1.5em;
      max-width: var(--desktop-width);
      margin: 0 auto;
    }
    
.section-title {
  font-size: 1.2em;
  margin: 1.5em 0 1em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3em;
  letter-spacing: 0.3px;
  position: relative;
  padding-left: 10px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.4em;
  background-color: var(--primary);
  border-radius: 2px;
}

    
    .station-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 1em;
    }
    
    /* Mobile view - 2 stations per row */
    @media (max-width: 600px) {
      .station-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    
    .station-card {
      background: var(--card-bg);
      border-radius: var(--border-radius-sm);
      padding: 0;
      box-shadow: var(--shadow);
      transition: all 0.2s;
      text-decoration: none;
      color: var(--text);
    }
    
    .station-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-hover);
    }
    
    .station-card img {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: var(--border-radius-sm);
      margin-bottom: 0;
    }
    
    .station-card h3 {
      font-size: 0.9em;
      font-weight: 600;
      text-align: center;
      line-height: 1;
      padding: 5px;
    }
    
    .frequency-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5em;
    }
    
    .frequency-tag {
      padding: 0.5em 1em;
      background: #DA4453;
background: -webkit-linear-gradient(to right, #89216B, #DA4453);
background: linear-gradient(to right, #89216B, #DA4453);
      border-radius: 50px;
      text-decoration: none;
      color: #fff;
      font-size: 0.85em;
      font-weight: 500;
      box-shadow: var(--shadow);
      transition: all 0.2s;
      border: 1px solid #e9ecef;
    }
    
    .frequency-tag:hover {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
    }

    .fmr-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5em;
    }
    
    .fmr-tag {
      padding: 0.5em 1em;
      background: #DA4453;
background: -webkit-linear-gradient(to right, #89216B, #DA4453);
background: linear-gradient(to right, #89216B, #DA4453);
      border-radius: 50px;
      text-decoration: none;
      color: #fff;
      font-size: 0.85em;
      font-weight: 500;
      box-shadow: var(--shadow);
      transition: all 0.2s;
      border: 1px solid #e9ecef;
    }
    
    .fmr-tag:hover {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
    }
    
    .contacts ul {
      list-style: none;
      padding-left: 0;
    }
    
    .contacts li {
      margin-bottom: 0.8em;
      display: flex;
      align-items: center;
      gap: 0.8em;
      font-size: 0.95em;
    }
    
    .fb-comments {
      margin-top: 1em;
    }
    
    /* Footer styles */
    footer {
      background: var(--footer-bg);
      color: white;
      max-width: var(--desktop-width);
      margin: 0 auto;
      padding: 2em 1.5em;
    }
    footer a{text-decoration: none; color: var(--accent);}
    
    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2em;
    }
    
    .footer-section h4 {
      font-size: 1em;
      margin-bottom: 1em;
      color: var(--accent);
    }
    
    .footer-section ul {
      list-style: none;
    }
    
    .footer-section li {
      margin-bottom: 0.6em;
    }
    
    .footer-section a {
      color: #e9ecef;
      text-decoration: none;
      font-size: 0.9em;
      transition: color 0.2s;
    }
    
    .footer-section a:hover {
      color: var(--accent);
    }
    
    .footer-bottom {
      text-align: center;
      padding-top: 2em;
      margin-top: 2em;
      font-size: 0.8em;
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Responsive adjustments */
    @media (min-width: 768px) {
      .content-wrapper {
        flex-direction: row;
      }
      
      .player-section {
        flex: 0 0 300px;
      }
      
      .category-nav {
        justify-content: flex-start;
      }
    }

    @media (max-width: 800px) {
      .app-container {
        box-shadow: none;
      }
      
      .section-container {
        padding: 0 1em;
      }
      
      .footer-content {
        grid-template-columns: 1fr;
      }
    }

    .install-box {
  position: fixed;
  bottom: 20px;
  left: 10px;
  right: 10px;
  background: linear-gradient(135deg, #d83b60, #ff5f8a);
  color: white;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(216, 59, 96, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.install-icon {
  font-size: 1.8rem;
}

.install-text {
  flex: 1;
}
.install-text h3 {
  margin: 0;
  font-size: 1.05rem;
}
.install-text p {
  margin: 3px 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.install-btn {
  background: white;
  color: #d83b60;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.install-btn:hover {
  background: #fff3f7;
  transform: scale(1.05);
}
.install-actions {
  display: flex;
  gap: 6px;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 6px;
}
