/* === Radio Station Single Template Styles === */
.radio-station-single {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ----- Header ----- */
.radio-station-single .station-header {
  background: linear-gradient(135deg, #6b46c1, #4f46e5);
  color: #fff;
  padding: 2rem;
}

.radio-station-single .station-header .station-logo img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.radio-station-single .station-header .station-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.radio-station-single .station-header p {
  margin: 0.25rem 0;
  opacity: 0.9;
}

/* Genre tags */
.radio-station-single .station-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.radio-station-single .station-genres .genre-tag {
  background: #fff;
  color: #4f46e5;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* ----- Content Layout ----- */
.radio-station-single .station-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 992px) {
  .radio-station-single .station-content {
    grid-template-columns: 2fr 1fr;
  }
}

/* Main Sections */
.radio-station-single .station-main section {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.radio-station-single .station-main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

/* Sidebar */
.radio-station-single .station-sidebar > div {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Utility */
.radio-station-single .text-center {
  text-align: center;
}
.radio-station-single .text-left {
  text-align: left;
}
#stations-results.loading {
    opacity: 0.5;
    position: relative;
}
#stations-results.loading:after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}
.stations-countries ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.stations-countries li a {
    padding: 6px 12px;
    border: 1px solid #667eea;
    border-radius: 20px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.stations-countries li a:hover,
.stations-countries li a.active {
    background: #667eea;
    color: #fff;
}
.station-card-m {
    display: grid;
    grid-template-columns: 165px 1fr;
    gap: 20px;
    background: #ffffff00;
    padding: 20px;
    /* border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    margin-bottom: 20px;
    align-items: start;
}

.station-logo img {
    width: 165px;
    height: 85px;
    object-fit: contain;
    border-radius: 6px;
    background: #f9f9f900;
    display: block;
}

.station-title {
    margin: 0 0 10px;
    font-size: 2.5rem;
    font-weight: 600;
}

.station-info .meta {
    margin: 4px 0;
    font-size: 0.95rem;
    color: #fffefe;
}

.station-genres {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.station-genre {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f3f3f3; /* keep background as you already have */
    color: #333;
    font-size: 0.85rem;
    white-space: nowrap;
}
.stations-results-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.station-simple-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.station-simple-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.station-simple-card .station-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 5px;
}

.station-simple-card .station-title a {
    text-decoration: none;
    color: #222;
}

.station-simple-card .station-title a:hover {
    color: #e63946; /* highlight */
}

.station-simple-card .station-country {
    font-size: 14px;
    color: #666;
}
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.station-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.station-logo img,
.station-logo .fallback-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-info {
  flex: 1;
}

.station-name {
  font-size: 16px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Filters inline */
.flex-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.flex-filters input,
.flex-filters select {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
/* Station Card */
.station-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  /* border: 1px solid #eee; */
  border-radius: 8px;
  background: #fff;
  margin-bottom: 15px;
}

.station-logo img {
  display: block;
}
s
.station-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.station-title {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
}

.station-country {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

/* //search bar */
/* Container: inline flex */
#stations-filters {
    display: flex;
    align-items: center;
    gap: 10px; /* space between input and button */
    margin-bottom: 20px;
}

/* Search input (pill style) */
#station-search {
    flex: 1; /* takes remaining space */
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 50px; /* pill shape */
    transition: border-color 0.3s, box-shadow 0.3s;
}

#station-search:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 6px rgba(79, 70, 229, 0.3);
}

/* Submit button (pill style) */
#station-search-form button {
    padding: 8px 18px;
    font-size: 14px;
    background-color: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#station-search-form button:hover {
    background-color: #6b46c1;
    transform: translateY(-1px);
}

#station-search-form button:active {
    transform: translateY(0);
}

/* Keep inline on mobile, input shrinks and button stays next to it */
@media (max-width: 480px) {
    #stations-filters {
        flex-direction: row;
        gap: 8px;
    }

    #station-search {
        flex: 1 1 auto; /* allows shrinking */
    }

    #station-search-form button {
        flex: 0 0 auto; /* fixed size */
    }
}

/* Make form and button inline */
.station-search-form {
    display: flex !important; /* ensure flex is applied */
    flex-wrap: nowrap; /* keep items in one row */
    gap: 10px; /* space between input and button */
    align-items: center;
    max-width: 400px; /* optional */
    margin-bottom: 20px;
	margin-top: 20px;
}

.station-search-form input[type="text"] {
    flex: 1; /* take up available space */
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 50px;
    outline: none;
    min-width: 0; /* important for flexbox shrinking */
}

.station-search-form button {
    padding: 8px 18px;
    font-size: 14px;
    background-color: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap; /* prevent wrapping */
}

.station-search-form button:hover {
    background-color: #4338ca;
}

/* //listen live section  */

/* Player wrapper */
.wp-radio-player-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Make embedded player responsive */
.wp-radio-player-wrapper iframe,
.wp-radio-player-wrapper audio,
.wp-radio-player-wrapper video {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
}

/* Heading styling */
.station-player h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Stream warning styling */
.stream-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #856404;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .station-player h3 {
        font-size: 1rem;
        text-align: center;
    }

    .wp-radio-player-wrapper {
        margin: 0 auto;
    }

    .stream-warning {
        font-size: 0.9rem;
        padding: 8px;
    }
}
