/**
 * Radio Station Pro - Frontend Styles
 * @package RadioStationPro
 * @since 1.0.0
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.rsp-shortcode, .rsp-widget-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.rsp-shortcode *, .rsp-widget-content * {
    box-sizing: border-box;
}

/* ==========================================================================
   On-Air Display
   ========================================================================== */

.rsp-on-air-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.rsp-on-air-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.rsp-on-air-display > * {
    position: relative;
    z-index: 2;
}

.rsp-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsp-live-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: rsp-pulse 2s infinite;
}

@keyframes rsp-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.rsp-show-main {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.rsp-show-artwork {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.rsp-show-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsp-show-details {
    flex: 1;
    min-width: 0;
}

.rsp-show-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.rsp-show-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.rsp-show-title a:hover {
    opacity: 0.8;
}

.rsp-show-description {
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.rsp-show-hosts, .rsp-show-guests {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.rsp-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.rsp-show-times {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.rsp-show-progress {
    margin-top: 1.5rem;
}

.rsp-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.rsp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.rsp-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}

.rsp-show-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rsp-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rsp-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.rsp-listen-section {
    margin-top: 1.5rem;
}

.rsp-listen-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsp-listen-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.rsp-listen-icon {
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center;
    background-size: contain;
}

/* ==========================================================================
   Off-Air Display
   ========================================================================== */

.rsp-off-air-display {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.rsp-off-air-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.rsp-off-air-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rsp-off-air-message {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.rsp-upcoming-shows {
    margin-top: 2rem;
}

.rsp-upcoming-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.rsp-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsp-upcoming-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: left;
}

.rsp-upcoming-artwork {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.rsp-upcoming-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsp-upcoming-info {
    flex: 1;
    min-width: 0;
}

.rsp-upcoming-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rsp-upcoming-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   Show Carousel
   ========================================================================== */

.rsp-show-carousel {
    background: transparent;
    border-radius: 12px;
    padding: 2rem;
    overflow: hidden;
}

.rsp-carousel-header {
    display: none;
}

.rsp-carousel-title {
    display: none;
}

.rsp-carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.rsp-carousel-prev,
.rsp-carousel-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsp-carousel-prev:hover,
.rsp-carousel-next:hover {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.rsp-icon-arrow-left,
.rsp-icon-arrow-right {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.rsp-icon-arrow-left {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>');
}

.rsp-icon-arrow-right {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>');
}

.rsp-carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.rsp-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%; /* Show all 3 slides at once */
    gap: 1rem;
    align-items: flex-start; /* Allow cards to have their natural height */
}

.rsp-carousel-slide {
    flex: 0 0 calc(33.333% - 0.67rem); /* Fixed width for each slide */
    min-width: calc(33.333% - 0.67rem); /* Each slide takes 1/3 of the track minus gap */
    opacity: 1; /* Always fully visible */
    transition: none; /* Remove transitions */
}

.rsp-show-card {
    background: transparent;
    border: none;
    border-radius: 15px;
    height: auto; /* Let height be determined by image aspect ratio */
    min-height: 200px; /* Minimum height for consistency */
    position: relative;
    transition: all 0.3s ease;
    overflow: visible; /* Allow full card to be visible */
    aspect-ratio: auto; /* Allow natural aspect ratio */
    box-shadow: none; /* Remove any shadow */
}

.rsp-show-card:hover {
    transform: translateY(-5px);
}

/* Artwork Background */
.rsp-show-artwork-background {
    position: relative; /* Changed from absolute to relative */
    width: 100%;
    height: auto; /* Let height be determined by image */
    z-index: 1;
    background: #f8f9fa; /* Fallback background color */
}

.rsp-show-artwork-background img {
    width: 100%;
    height: auto; /* Let height be determined by image aspect ratio */
    object-fit: contain; /* Changed from cover to contain to preserve aspect ratio */
    object-position: center;
    display: block;
}

.rsp-artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through to image */
}

.rsp-placeholder-artwork {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px; /* Fixed height for placeholder since no image */
    min-height: 200px;
}

.rsp-placeholder-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Text Overlay */
.rsp-show-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 3;
    color: white;
    pointer-events: none; /* Allow clicks to pass through to image */
}

.rsp-show-info-overlay .rsp-show-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: #ffffff !important;
}

.rsp-show-info-overlay .rsp-show-title a {
    color: #ffffff !important;
    text-decoration: none;
}

.rsp-show-info-overlay .rsp-show-title a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

.rsp-show-info-overlay .rsp-show-hosts {
    margin-bottom: 0.5rem;
}

.rsp-show-info-overlay .rsp-hosts-list {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    color: #ffffff;
}

.rsp-show-info-overlay .rsp-show-times {
    margin-top: 0.5rem;
}

.rsp-show-info-overlay .rsp-show-time {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
    color: #ffffff;
}

.rsp-show-card:hover {
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}



.rsp-show-card .rsp-show-artwork {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.rsp-placeholder-artwork {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.rsp-placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.rsp-show-card .rsp-show-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.rsp-show-card .rsp-show-title a {
    color: #333;
}

.rsp-show-card .rsp-show-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.rsp-show-card .rsp-show-hosts,
.rsp-show-card .rsp-show-guests {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.rsp-show-card .rsp-show-times {
    font-size: 0.8rem;
    color: #007cba;
    font-weight: 600;
    margin-bottom: 1rem;
}



.rsp-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.rsp-carousel-dot {
    width: 10px;
    height: 10px;
    background: #dee2e6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsp-carousel-dot.active {
    background: #007cba;
    transform: scale(1.2);
}

.rsp-carousel-dot:hover {
    background: #007cba;
}

/* ==========================================================================
   Schedule Display
   ========================================================================== */

.rsp-schedule-display {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rsp-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.rsp-schedule-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.rsp-schedule-controls {
    display: flex;
    gap: 0.5rem;
}

.rsp-format-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsp-format-toggle.active {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.rsp-format-toggle:hover {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.rsp-icon-grid,
.rsp-icon-list {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.rsp-icon-grid {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"/></svg>');
}

.rsp-icon-list {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/></svg>');
}

/* Grid Schedule */
.rsp-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.rsp-schedule-day-headers {
    display: contents;
}

.rsp-day-header {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    position: relative;
}

.rsp-day-header.current-day {
    background: #007cba;
    color: white;
}

.rsp-today-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.rsp-schedule-day {
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.rsp-schedule-day.current-day {
    background: rgba(0, 124, 186, 0.1);
    border: 2px solid #007cba;
}

.rsp-schedule-show {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #007cba;
    transition: all 0.2s ease;
    cursor: pointer;
}

.rsp-schedule-show:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rsp-schedule-show.current-show {
    border-left-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.rsp-schedule-show .rsp-show-time {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.rsp-schedule-show .rsp-show-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.rsp-schedule-show .rsp-show-title a {
    color: #333;
    text-decoration: none;
}

.rsp-schedule-show .rsp-show-hosts {
    font-size: 0.75rem;
    color: #666;
}

.rsp-current-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #ff4757;
    font-weight: 600;
    margin-top: 0.25rem;
}

.rsp-no-shows {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #666;
    font-style: italic;
}

/* List Schedule */
.rsp-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rsp-schedule-list .rsp-schedule-day {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.rsp-schedule-list .rsp-day-header {
    background: none;
    padding: 0 0 1rem 0;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1rem;
}

.rsp-day-shows {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsp-schedule-list .rsp-schedule-show {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: none;
    margin-bottom: 0;
}

.rsp-schedule-list .rsp-schedule-show:hover {
    background: #e9ecef;
    transform: none;
}

.rsp-schedule-list .rsp-show-artwork {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.rsp-schedule-list .rsp-show-info {
    flex: 1;
    min-width: 0;
}

.rsp-schedule-list .rsp-show-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.rsp-schedule-list .rsp-show-time {
    font-size: 0.9rem;
    color: #007cba;
    font-weight: 600;
}

.rsp-schedule-list .rsp-show-hosts {
    font-size: 0.8rem;
    color: #666;
}

/* ==========================================================================
   Single Show Display
   ========================================================================== */

.rsp-single-show {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rsp-show-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rsp-single-show .rsp-show-artwork {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rsp-single-show .rsp-show-info {
    flex: 1;
    min-width: 0;
}

.rsp-single-show .rsp-show-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.rsp-single-show .rsp-show-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.rsp-single-show .rsp-show-hosts,
.rsp-single-show .rsp-show-guests {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.rsp-single-show .rsp-show-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rsp-genre-tag {
    background: #007cba;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rsp-show-content {
    margin-bottom: 2rem;
}

.rsp-show-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.rsp-show-schedule {
    margin-bottom: 2rem;
}

.rsp-single-show .rsp-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsp-single-show .rsp-schedule-day {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.rsp-single-show .rsp-day-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.rsp-single-show .rsp-day-times {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rsp-time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

.rsp-single-show .rsp-time {
    font-weight: 600;
    color: #007cba;
}

.rsp-single-show .rsp-timezone {
    font-size: 0.8rem;
    color: #666;
}

.rsp-show-player {
    margin-bottom: 2rem;
}

.rsp-show-player h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.rsp-soundcloud-player,
.rsp-spotify-player {
    margin-bottom: 1.5rem;
}

.rsp-show-player h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.rsp-embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.rsp-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.rsp-show-social {
    margin-bottom: 2rem;
}

.rsp-single-show .rsp-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.rsp-single-show .rsp-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rsp-single-show .rsp-social-link:hover {
    background: #007cba;
    border-color: #007cba;
    color: white;
    transform: translateY(-2px);
}

.rsp-single-show .rsp-social-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.rsp-related-shows {
    margin-bottom: 2rem;
}

.rsp-related-shows h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.rsp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rsp-related-show {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.rsp-related-show:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rsp-related-artwork {
    width: 100%;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.rsp-related-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsp-related-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rsp-related-title a {
    color: #333;
    text-decoration: none;
}

.rsp-related-title a:hover {
    color: #007cba;
}

.rsp-related-hosts {
    font-size: 0.8rem;
    color: #666;
}

.rsp-no-related {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* ==========================================================================
   Audio Player
   ========================================================================== */

.rsp-audio-player {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.rsp-audio-player audio {
    width: 100%;
    max-width: 400px;
}

.rsp-html5-player {
    border-radius: 8px;
}

/* ==========================================================================
   Themes
   ========================================================================== */

.rsp-theme-dark {
    background: #1a1a1a;
    color: #ffffff;
}

.rsp-theme-dark .rsp-show-carousel,
.rsp-theme-dark .rsp-schedule-display,
.rsp-theme-dark .rsp-single-show {
    background: #2d2d2d;
    color: #ffffff;
}

.rsp-theme-dark .rsp-show-card {
    background: #3d3d3d;
    border-color: #4d4d4d;
    color: #ffffff;
}

.rsp-theme-dark .rsp-show-title,
.rsp-theme-dark .rsp-carousel-title,
.rsp-theme-dark .rsp-schedule-title {
    color: #ffffff;
}

.rsp-theme-dark .rsp-show-description {
    color: #cccccc;
}

.rsp-theme-dark .rsp-carousel-prev,
.rsp-theme-dark .rsp-carousel-next,
.rsp-theme-dark .rsp-format-toggle {
    background: #3d3d3d;
    border-color: #4d4d4d;
    color: #ffffff;
}

.rsp-theme-dark .rsp-carousel-prev:hover,
.rsp-theme-dark .rsp-carousel-next:hover,
.rsp-theme-dark .rsp-format-toggle:hover {
    background: #007cba;
    border-color: #007cba;
}

.rsp-theme-light {
    background: #ffffff;
    color: #333333;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .rsp-show-main {
        flex-direction: column;
        text-align: center;
    }

    .rsp-show-artwork {
        width: 100px;
        height: 100px;
        margin: 0 auto 1rem;
    }

    .rsp-schedule-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .rsp-schedule-day-headers {
        display: none;
    }

    .rsp-schedule-day {
        min-height: auto;
    }

    .rsp-schedule-day::before {
        content: attr(data-day);
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #007cba;
    }

    .rsp-show-header {
        flex-direction: column;
        text-align: center;
    }

    .rsp-single-show .rsp-show-artwork {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem;
    }

    .rsp-related-grid {
        grid-template-columns: 1fr;
    }

    .rsp-carousel-track {
        width: 100%; /* Keep 3-card layout on mobile */
        gap: 0.5rem; /* Reduce gap on mobile */
    }

    .rsp-carousel-slide {
        min-width: calc(50% - 0.5rem); /* Show 2 cards on mobile */
    }

    .rsp-carousel-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .rsp-schedule-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rsp-on-air-display,
    .rsp-off-air-display,
    .rsp-show-carousel,
    .rsp-schedule-display,
    .rsp-single-show {
        padding: 1rem;
    }

    .rsp-show-title {
        font-size: 1.2rem;
    }

    .rsp-carousel-title,
    .rsp-schedule-title {
        font-size: 1.2rem;
    }

    .rsp-single-show .rsp-show-title {
        font-size: 1.5rem;
    }

    .rsp-show-card {
        min-height: 150px; /* Minimum height on mobile */
        padding: 0; /* Remove padding to ensure full image coverage */
    }
    
    .rsp-show-card .rsp-show-artwork {
        height: auto; /* Let image determine height */
    }
    
    .rsp-carousel-track {
        width: 100%; /* Keep 2-card layout on mobile */
        gap: 0.5rem; /* Reduce gap on mobile */
    }
    
    .rsp-carousel-slide {
        min-width: calc(50% - 0.25rem); /* Show 2 cards on mobile */
    }
    
    /* Hide third card on mobile */
    .rsp-carousel-slide:nth-child(3) {
        display: none;
    }
}

/* Tablet - Show 2 cards on medium screens */
@media (max-width: 768px) and (min-width: 481px) {
    .rsp-carousel-slide {
        min-width: calc(50% - 0.5rem); /* Show 2 cards on tablets */
    }
    
    /* Hide third card on tablets */
    .rsp-carousel-slide:nth-child(3) {
        display: none;
    }
}

/* ==========================================================================
   Font Sizes
   ========================================================================== */

.rsp-font-small {
    font-size: 0.9rem;
}

.rsp-font-medium {
    font-size: 1rem;
}

.rsp-font-large {
    font-size: 1.1rem;
}

.rsp-font-small .rsp-show-title {
    font-size: 1.2rem;
}

.rsp-font-large .rsp-show-title {
    font-size: 1.8rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.rsp-hidden {
    display: none !important;
}

.rsp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rsp-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.rsp-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: rsp-spin 1s linear infinite;
}

@keyframes rsp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .rsp-carousel-track,
    .rsp-show-card,
    .rsp-schedule-show,
    .rsp-listen-button,
    .rsp-social-link {
        transition: none;
    }

    .rsp-live-dot {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .rsp-on-air-display,
    .rsp-off-air-display {
        border: 2px solid #000;
    }

    .rsp-show-card,
    .rsp-schedule-show {
        border: 1px solid #000;
    }
}

.rsp-carousel-prev:focus,
.rsp-carousel-next:focus,
.rsp-format-toggle:focus,
.rsp-carousel-dot:focus,
.rsp-listen-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .rsp-carousel-controls,
    .rsp-schedule-controls,
    .rsp-listen-button,
    .rsp-social-link {
        display: none !important;
    }

    .rsp-carousel-track {
        transform: none !important;
        width: 100% !important;
    }

    .rsp-carousel-slide {
        min-width: 100% !important;
        opacity: 1 !important;
        page-break-inside: avoid;
    }

    .rsp-show-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}
