body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #4f8cff 0%, #a1e3ff 100%);
  min-height: 100vh;
}
header {
  background: #222;
  color: #fff;
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.container {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
label {
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  display: block;
}
select, input {
  margin: 0.5rem 0 1rem 0;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  background: #f7faff;
  transition: border 0.2s;
}
select:focus, input:focus {
  border: 1.5px solid #4f8cff;
  outline: none;
}
/* Layout for side-by-side sections */
.station-list {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.station-section {
  flex: 1 1 350px;
  min-width: 300px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
}

.tv-container {
  background: #eaf6ff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(79,140,255,0.10);
  padding: 1.5rem 1rem;
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4f8cff;
  margin: 2rem 0 1rem 0;
  letter-spacing: 0.5px;
}
.station {
  border-radius: 10px;
  background: #f7faff;
  box-shadow: 0 2px 8px rgba(79,140,255,0.07);
  padding: 1.2rem 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.station:hover {
  box-shadow: 0 4px 16px rgba(79,140,255,0.13);
}
.station-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 0.3rem;
}
.station-tags {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.5rem;
}
audio, video, iframe {
  width: 100%;
  max-width: 400px;
  margin-top: 0.5rem;
  border-radius: 8px;
  background: #222;
}
.empty-message {
  color: #888;
  font-size: 1.05rem;
  margin: 1.5rem 0;
  text-align: center;
}
/* --- Responsive Design for Mobile Devices --- */
@media (max-width: 900px) {
  .container {
    padding: 1rem 0.5rem;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .section-title {
    font-size: 1.1rem;
    margin: 1.2rem 0 0.7rem 0;
  }
  .station-list {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  .station-section {
    min-width: 0;
    max-width: 100%;
    padding: 0;
  }
  .tv-container {
    margin-left: 0;
    padding: 1rem 0.3rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(79,140,255,0.07);
  }
  audio, video, iframe {
    max-width: 100%;
    height: auto;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
    background: linear-gradient(135deg, #4f8cff 0%, #a1e3ff 100%);
  }
  header {
    padding: 1rem 0.3rem 0.7rem 0.3rem;
    font-size: 1rem;
  }
  .container {
    padding: 0.2rem;
  }
  .section-title {
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
  }
  .station-title {
    font-size: 1rem;
  }
  .station-tags {
    font-size: 0.9rem;
  }
  .station {
    padding: 0.7rem 0.5rem;
    margin-bottom: 0.7rem;
    border-radius: 8px;
  }
  .tv-container {
    padding: 0.7rem 0.1rem;
    border-radius: 8px;
  }
  audio, video, iframe {
    height: 140px !important;
    max-width: 100%;
    border-radius: 6px;
  }
  label, select, input {
    font-size: 0.98rem;
  }
}

@media (max-width: 430px) {
  header h1 {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 0.95rem;
  }
  .station-title {
    font-size: 0.95rem;
  }
  .station-tags {
    font-size: 0.85rem;
  }
  .station {
    padding: 0.5rem 0.2rem;
    margin-bottom: 0.5rem;
  }
  audio, video, iframe {
    height: 100px !important;
    border-radius: 4px;
  }
}

/* Portrait orientation: stack sections, larger touch targets, more vertical spacing */
@media (max-width: 900px) and (orientation: portrait) {
  .container > div {
    flex-direction: column !important;
    gap: 1.2rem !important;
  }
  .tv-container {
    margin-left: 0;
    margin-top: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(79,140,255,0.10);
  }
  .station-section {
    margin-top: 0.5rem;
  }
  audio, video, iframe {
    min-width: 0;
    max-width: 100%;
    height: 140px !important;
  }
}

/* Landscape orientation: side-by-side layout, compact controls, less vertical spacing */
@media (max-width: 900px) and (orientation: landscape) {
  .container > div {
    flex-direction: row !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
  }
  .tv-container {
    margin-left: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(79,140,255,0.10);
  }
  .station-section {
    margin-top: 1rem;
  }
  audio, video, iframe {
    min-width: 0;
    max-width: 320px;
    height: 100px !important;
  }
  .station {
    padding: 0.7rem 0.5rem;
    margin-bottom: 0.7rem;
  }
}
