/* Two Column Layout */
.two-column-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.left-column {
    flex: 3;
    min-width: 300px;
}

.right-column {
    flex: 1;
    min-width: 250px;
}

/* On smaller screens, stack columns vertically */
@media (max-width: 992px) {
    .two-column-container {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
}

/* Suggested Stations Section */
.suggested-stations-section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
}

.stations-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.suggested-stations-title {
    color: #1b6ec2;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    user-select: none;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.radio-label span {
    font-weight: 500;
}

/* Show Toggles Background - matching Home page */
.show-toggles-background {
    background-color: transparent;
    padding: 8px 0px;
    border-radius: 0px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Genre Filter Styles - matching Home page */
.genre-filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0px;
    margin-top: 0px;
    border-top: none;
}

.genre-filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.genre-dropdown-wrapper {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.genre-dropdown-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #1b6ec2;
    pointer-events: none;
}

.genre-dropdown {
    padding: 10px 32px 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    background: #ffffff;
    border: 2px solid #1b6ec2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(27, 110, 194, 0.3);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    min-width: 150px;
}

.genre-dropdown::-ms-expand {
    display: none;
}

.genre-dropdown:hover {
    border-color: #4a90e2;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.genre-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.2);
}

/* Show Type Filter Styles - matching genre filter pattern */
.show-type-filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-type-filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.show-type-dropdown-wrapper {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.show-type-dropdown-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #1b6ec2;
    pointer-events: none;
}

.show-type-dropdown {
    padding: 10px 32px 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    background: #ffffff;
    border: 2px solid #1b6ec2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(27, 110, 194, 0.3);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    min-width: 150px;
}

.show-type-dropdown::-ms-expand {
    display: none;
}

.show-type-dropdown:hover {
    border-color: #4a90e2;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.show-type-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.2);
}

/* Station Type Filter Styles */
.station-type-filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0px;
    margin-top: 0px;
    border-top: none;
}

.station-type-filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.station-type-dropdown-wrapper {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.station-type-dropdown-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #1b6ec2;
    pointer-events: none;
}

.station-type-dropdown {
    padding: 10px 32px 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    background: #ffffff;
    border: 2px solid #1b6ec2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(27, 110, 194, 0.3);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    min-width: 150px;
}

.station-type-dropdown::-ms-expand {
    display: none;
}

.station-type-dropdown:hover {
    border-color: #4a90e2;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.station-type-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.2);
}

/* Sort Filter Styles */
.sort-filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0px;
    margin-top: 0px;
    border-top: none;
}

.sort-filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.sort-dropdown-wrapper {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.sort-dropdown-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #1b6ec2;
    pointer-events: none;
}

.sort-dropdown {
    padding: 10px 32px 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    background: #ffffff;
    border: 2px solid #1b6ec2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(27, 110, 194, 0.3);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    min-width: 150px;
}

.sort-dropdown::-ms-expand {
    display: none;
}

.sort-dropdown:hover {
    border-color: #4a90e2;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.2);
}

/* Search Filter Styles */
.search-filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-filter-container .input-group {
    width: 120px; /* Set the width for the entire input group */
}

.search-input {
    /* Remove width as it's now handled by .input-group */
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    background: #ffffff;
    border: 2px solid #1b6ec2;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(27, 110, 194, 0.3);
    /* width: 120px; */ /* Removed */
    text-transform: uppercase;
}

.search-input::placeholder {
    color: #999;
    text-transform: none;
}

.search-input:hover {
    border-color: #4a90e2;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.2);
}

.input-group-text {
    background-color: #1b6ec2;
    color: white;
    border: 2px solid #1b6ec2;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 10px 12px;
}

.input-group-text .bi-search {
    font-size: 0.9rem;
}

.expand-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: none;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    margin-left: auto;
}

.expand-toggle-btn:hover {
    background-color: #f8f9fa;
    border-color: #1b6ec2;
}

.expand-toggle-btn .chevron-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: #333;
}

.expand-toggle-btn .chevron-icon.expanded {
    transform: rotate(180deg);
}

.stations-grid-container {
    padding: 0 50px;
    position: relative;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, max-content));
    gap: 15px;
    padding: 10px 5px;
    justify-content: start;
    align-content: start;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    padding: 10px 0;
    transition: transform 0.5s ease;
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1b6ec2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.show-more-btn:hover {
    background-color: #155a9c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.show-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.show-more-btn:hover svg {
    transform: translateY(2px);
}

.no-stations-message {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

#stationsCarousel {
    padding: 0 50px;
}

#stationsCarousel .carousel-inner {
    padding: 0;
}

.stations-page {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    padding: 10px 5px;
    min-height: 130px;
}

#stationsCarousel .carousel-control-prev,
#stationsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

#stationsCarousel .carousel-control-prev {
    left: 0;
}

#stationsCarousel .carousel-control-next {
    right: 0;
}

#stationsCarousel .carousel-control-prev-icon,
#stationsCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#stationsCarousel .carousel-control-prev:hover,
#stationsCarousel .carousel-control-next:hover {
    background-color: #0056b3;
}

.station-box {
    min-width: 120px;
    height: 120px;
    background-color: #1565c0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-box.has-logo {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    background-origin: content-box;
    padding: 4px;
}

.station-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    flex-shrink: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.station-wrapper.hidden {
    display: none;
}

.station-wrapper.visible {
    display: flex;
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.station-icon {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 66px;
    height: 66px;
    opacity: 0.3;
    color: #ffffff;
    pointer-events: none;
    z-index: 1;
}

.station-call-letters {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    width: 80%;
    line-height: 1.1;
    z-index: 2;
    position: relative;
}

.station-box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.station-box.selected {
    background-color: #0d47a1;
    border-color: rgba(0, 0, 0, 0.2);
}

.station-box.selected .station-icon {
    color: #ffffff;
    opacity: 0.4;
}

.station-box.selected:hover {
    background-color: #0a3d7a;
}

.station-box.has-logo:hover {
    background-color: #ffffff;
}

.station-box.has-logo.selected {
    background-color: #ffffff;
    border: 2px solid #1565c0;
}

.station-box.has-logo.selected:hover {
    background-color: #f0f0f0;
}

.station-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 6px;
    width: 120px;
}

.station-call-frequency {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 2.5px;
    line-height: 1.2;
}

.station-location {
    font-size: 0.7rem;
    color: #0277bd;
    line-height: 1.2;
}

.carousel-nav-btn {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.carousel-nav-btn:hover {
    background-color: #f8f9fa;
    border-color: #1b6ec2;
}

.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
    color: #6c757d;
}

.carousel-nav-btn:hover svg {
    color: #1b6ec2;
}

.carousel-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-nav-btn.disabled:hover {
    background-color: #fff;
    border-color: #dee2e6;
}

.carousel-nav-btn.disabled svg {
    color: #6c757d;
}

.carousel-nav-btn.invisible {
    visibility: hidden;
    pointer-events: none;
}

/* Shows Section */
.shows-section {
    margin-top: 30px;
    margin-bottom: 20px;
    padding:0;
}

@media (max-width: 576px) {
    .shows-section {
    margin-top: 0px;
    margin-bottom: 10px;
    padding:0;
    }
}

@media (max-width: 576px) {
    .filter-toggle{
        margin-top: 0px;
        margin-bottom: 2px;
    }
}



.shows-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.shows-title {
    color: #1b6ec2;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.no-shows-message {
    padding: 20px;
    text-align: left;
    color: #6c757d;
    font-style: italic;
    white-space: pre-line;
}

/* Favorites Section */
.favorites-section {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 0;
}

.favorites-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.favorites-title {
    color: #1b6ec2;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.no-favorites-message {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

#favoritesCarousel {
    padding: 0 50px;
}

#favoritesCarousel .carousel-inner {
    padding: 0;
}

.favorites-page {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    padding: 10px 5px;
    min-height: 130px;
}

#favoritesCarousel .carousel-control-prev,
#favoritesCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

#favoritesCarousel .carousel-control-prev {
    left: 0;
}

#favoritesCarousel .carousel-control-next {
    right: 0;
}

#favoritesCarousel .carousel-control-prev-icon,
#favoritesCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#favoritesCarousel .carousel-control-prev:hover,
#favoritesCarousel .carousel-control-next:hover {
    background-color: #0056b3;
}

.favorites-grid-container {
    padding: 0 50px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, max-content));
    gap: 15px;
    padding: 10px 5px;
    justify-content: start;
    align-content: start;
}

#showsCarousel {
    padding: 0 50px;
}

#showsCarousel .carousel-inner {
    padding: 0;
}

.shows-page {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    padding: 10px 5px;
    min-height: 130px;
}

#showsCarousel .carousel-control-prev,
#showsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

#showsCarousel .carousel-control-prev {
    left: 0;
}

#showsCarousel .carousel-control-next {
    right: 0;
}

#showsCarousel .carousel-control-prev-icon,
#showsCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#showsCarousel .carousel-control-prev:hover,
#showsCarousel .carousel-control-next:hover {
    background-color: #0056b3;
}

.shows-grid-container {
    padding: 0 0px;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 140px));
    gap: 15px;
    padding: 10px 5px;
    justify-content: start;
    align-content: start;
}

.show-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    flex-shrink: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.show-wrapper.hidden {
    display: none;
}

.show-wrapper.visible {
    display: flex;
    animation: fadeInSlide 0.5s ease forwards;
}

.show-box {
    min-width: 120px;
    height: 120px;
    background-color: #1565c0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-box.has-logo {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    background-origin: content-box;
    padding: 4px;
}

.show-icon {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 66px;
    height: 66px;
    opacity: 0.3;
    color: #ffffff;
    pointer-events: none;
    z-index: 1;
}

.show-name-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    width: 80%;
    line-height: 1.1;
    z-index: 2;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.show-box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.show-box.selected {
    background-color: #0d47a1;
    border-color: #42a5f5;
    box-shadow: 0 0 15px 5px rgba(33, 150, 243, 0.6), 0 0 30px 10px rgba(33, 150, 243, 0.3);
}

.show-box.selected .show-icon {
    color: #ffffff;
    opacity: 0.4;
}

.show-box.selected:hover {
    background-color: #1565c0;
    box-shadow: 0 0 20px 8px rgba(33, 150, 243, 0.7), 0 0 40px 15px rgba(33, 150, 243, 0.4);
}

.show-box.has-logo:hover {
    background-color: #ffffff;
}

.show-box.has-logo.selected {
    background-color: #ffffff;
    border: 3px solid #1565c0;
    box-shadow: 0 0 15px 5px rgba(33, 150, 243, 0.6), 0 0 30px 10px rgba(33, 150, 243, 0.3);
}

.show-box.has-logo.selected:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 20px 8px rgba(33, 150, 243, 0.7), 0 0 40px 15px rgba(33, 150, 243, 0.4);
}

.show-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 6px;
    width: 120px;
}

.show-station {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 2.5px;
    line-height: 1.2;
}

.show-time {
    font-size: 0.7rem;
    color: #0277bd;
    line-height: 1.2;
}

.show-name-below {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1565c0;
    line-height: 1.2;
    min-height: 1.2em;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: italic;
}

.show-name-below.empty {
    visibility: hidden;
}

/* Player Section */
.player-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.audio-wrapper {
    margin-bottom: 15px;
}

.audio-player {
    width: 100%;
    max-width: 400px;
    height: 50px;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.like-station-btn,
.like-show-btn,
.tag-show-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: none;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: normal;
    border-radius: 6px;
}

.like-station-btn.liked,
.like-show-btn.liked {
    background-color: #e3f2fd;
    border: 2px solid #1b6ec2;
}

.like-station-btn:hover .thumbs-icon,
.like-show-btn:hover .thumbs-icon,
.tag-show-btn:hover .tags-icon {
    opacity: 0.7;
}

.thumbs-icon,
.tags-icon {
    width: 24px;
    height: 24px;
    stroke: none;
    fill: currentColor;
    color: #6c757d;
    transition: all 0.3s ease;
}

.like-station-btn.liked .thumbs-icon,
.like-show-btn.liked .thumbs-icon {
    color: #1b6ec2;
}

.like-station-text,
.like-show-text,
.tag-show-text {
    line-height: 1;
    color: #000;
}

/* Modal Styles */
.modal {
    display: block;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto;
    overflow: visible; /* Allow close button to render outside the box */
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #000;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.btn-primary {
    background-color: #1b6ec2;
    color: #fff;
    border-color: #1b6ec2;
}

.btn-primary:hover {
    background-color: #155a9c;
    border-color: #155a9c;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.modal-footer {
    gap: 10px;
}

@media (max-width: 1200px) {
    .stations-grid {
        grid-template-columns: repeat(5, minmax(120px, max-content));
    }
}

@media (max-width: 992px) {
    .stations-grid {
        grid-template-columns: repeat(4, minmax(120px, max-content));
    }
}

@media (max-width: 768px) {
    .stations-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-controls {
        width: 100%;
    }

    .expand-toggle-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .station-box {
        min-width: 100px;
        height: 90px;
    }

    .stations-grid {
        grid-template-columns: repeat(3, minmax(100px, 1fr));
    }
}

@media (max-width: 576px) {
    .stations-grid {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
}

/* Source Type Border Colors */
.show-box.source-liked {
    border: 3px solid #007bff !important; /* Blue border for liked shows */
}

.show-box.source-tagged {
    border: 3px solid #28a745 !important; /* Green border for tagged shows */
}

.show-box.source-virtual {
    border: 3px solid #dc3545 !important; /* Red border for virtual shows from liked stations */
}

.show-box.source-alphabetical {
    border: 3px solid #ffc107 !important; /* Yellow border for alphabetical stations */
}

/* Welcome Message for Unauthenticated Users */
.unauthorized-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.unauthorized-content {
    position: relative;
    z-index: 2;
}

.welcome-message {
    color: #5b21b6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-body {
    margin-bottom: 0;
}

.welcome-body p {
    font-size: 1rem;
    margin-top: 6px;
    margin-bottom: 6px;
    color: #4b5563;
    line-height: 1.4;
}

/* Virtual Station Logo Styling */
.virtual-station-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.virtual-call-letters {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.virtual-frequency {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 8px; /* Shrink space by half */
    width: fit-content;
}

.filter-toggle:hover {
    background-color: #f8f9fa;
}

.filter-toggle .chevron-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: #333;
}

.filter-toggle .chevron-icon.expanded {
    transform: rotate(180deg);
}

.filter-arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; /* Adjust as needed */
    height: 28px; /* Adjust as needed */
    border: 1px solid #dee2e6; /* Border around the arrow */
    border-radius: 4px; /* Slightly rounded corners */
    transition: all 0.3s ease;
    background-color: #1b6ec2;
}

.filter-toggle:hover .filter-arrow-box {
    border-color: #1b6ec2; /* Border color on hover */
}
.filter-toggle {
    background-color: white;
    color: black;
}

.filter-toggle .chevron-icon {
    color: white;
    font-weight: bolder;
}

.chevron-right {
    transform: rotate(0deg);
}

.chevron-down {
    transform: rotate(90deg);
}

/* Share Popover Styles */
.share-popover {
    position: fixed;
    z-index: 9999;
    background: #ffffff;
    border: 2px solid #1b6ec2;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding: 0;
    animation: popoverFadeIn 0.2s ease;
    min-width: 200px;
}

.share-popover-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.share-popover-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.share-popover-close svg {
    width: 12px;
    height: 12px;
    color: #ffffff;
    font-weight: bold;
}

@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.share-popover-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1b6ec2 0%, #155a9c 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    transition: background 0.2s ease;
    white-space: nowrap;
    min-width: 180px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.share-popover-btn:hover {
    background: linear-gradient(135deg, #155a9c 0%, #0d4a8a 100%);
}

.share-popover-btn svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.share-popover-btn.copied {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.share-popover-btn.copied svg {
    color: #ffffff;
}

/* Shared Station Glow Effect */
.show-box.shared-glow {
    animation: sharedGlow 2s ease-in-out infinite;
    box-shadow: 0 0 20px 5px rgba(27, 110, 194, 0.6);
}

@keyframes sharedGlow {
    0%, 100% {
        box-shadow: 0 0 20px 5px rgba(27, 110, 194, 0.6);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(27, 110, 194, 0.9);
    }
}

.show-station.fader span {
    transition: opacity 0.5s ease-in-out;
}

/* Tag Modal Panel Styles - uses sibling pattern for reliable click handling */
.tag-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
}

.tag-modal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* Station Details Panel Styles - uses sibling pattern for reliable click handling */
.station-details-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
}

.station-details-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

