/**
 * Radio Schedule Manager - Front-end Styles
 * Neutral, structural layout only. No brand colours or font declarations.
 * Override these in your theme's CSS to match your site's design.
 */

/* ========================================
   Error / Notice
   ======================================== */
.rsm-error {
    color: #c00;
    font-weight: 600;
    padding: 10px;
    background: #fff0f0;
    border-left: 3px solid #c00;
}
.rsm-notice {
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

/* ========================================
   Shows List  [radio-schedule-shows-all]
   ======================================== */
.rsm-shows-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rsm-shows-list .rsm-show-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    list-style: none;
}
.rsm-shows-list .rsm-show-item:hover {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.rsm-show-image {
    flex-shrink: 0;
    width: 150px;
}
.rsm-show-thumbnail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.rsm-show-details {
    flex: 1;
    padding: 5px 0 5px 15px;
}
.rsm-show-title {
    margin: 5px 0;
}
.rsm-show-title a {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}
.rsm-show-title a:hover {
    text-decoration: underline;
}
.rsm-show-schedule {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.7;
}
.rsm-show-excerpt {
    font-size: 14px;
    line-height: 20px;
    opacity: 0.8;
}

/* ========================================
   Now Playing  [radio-schedule-now-playing]
   ======================================== */
.rsm-now-playing {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.rsm-np-image a {
    display: flex;
}
.rsm-np-image img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}
.rsm-np-details {
    padding: 0 0 0 10px;
}
.rsm-np-title {
    font-size: 15px;
    text-decoration: none;
    color: inherit;
}
.rsm-np-listen {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    text-decoration: none;
    color: inherit;
}
.rsm-play-icon {
    margin-right: 5px;
    font-size: 12px;
}

/* ========================================
   Radio Streams List  [radio-streams]
   Grid of station blocks with image, name, description, Listen Now button.
   ======================================== */
.rsm-streams-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}
.rsm-stream-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden;
}
.rsm-stream-item:hover {
    box-shadow: none;
}
.rsm-stream-image {
    margin: 0;
}
.rsm-stream-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}
.rsm-stream-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rsm-stream-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}
.rsm-stream-description {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 15px;
}
.rsm-stream-description p {
    margin: 0 0 8px 0;
}
.rsm-stream-description p:last-child {
    margin-bottom: 0;
}
.rsm-stream-listen {
    margin-top: auto;
    align-self: flex-start;
}

@media only screen and (max-width: 768px) {
    .rsm-streams-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Listen Now Button  [radio-schedule-listen-now]
   Minimal neutral styling — override in your theme.
   ======================================== */
.rsm-listen-now-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1;
    transition: opacity 0.2s ease;
}
.rsm-listen-now-btn:hover,
.rsm-listen-now-btn:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}
.rsm-listen-now-btn .rsm-play-icon {
    margin-right: 8px;
    font-size: 12px;
}

/* ========================================
   Tabs (shared across listen-back and by-day)
   ======================================== */
.rsm-listen-back-tabs.ui-widget.ui-widget-content,
.rsm-day-tabs.ui-widget.ui-widget-content,
.rsm-show-listen-back.ui-widget.ui-widget-content {
    padding: 0;
    border: 0;
}
.rsm-listen-back-tabs .ui-tabs-nav,
.rsm-day-tabs .ui-tabs-nav,
.rsm-show-listen-back .ui-tabs-nav {
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
}
.rsm-listen-back-tabs .ui-tabs-nav li,
.rsm-day-tabs .ui-tabs-nav li,
.rsm-show-listen-back .ui-tabs-nav li {
    margin: 0 1px;
    border-radius: 0;
    display: inline-block;
    float: none;
    width: 97px;
    background: #eee;
    border: 0;
}
.rsm-listen-back-tabs .ui-tabs-nav li a,
.rsm-day-tabs .ui-tabs-nav li a,
.rsm-show-listen-back .ui-tabs-nav li a {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #333;
    margin-bottom: 0;
}
.rsm-listen-back-tabs .ui-tabs-nav li.ui-tabs-active,
.rsm-day-tabs .ui-tabs-nav li.ui-tabs-active,
.rsm-show-listen-back .ui-tabs-nav li.ui-tabs-active {
    background: #555;
}
.rsm-listen-back-tabs .ui-tabs-nav li.ui-tabs-active a,
.rsm-day-tabs .ui-tabs-nav li.ui-tabs-active a,
.rsm-show-listen-back .ui-tabs-nav li.ui-tabs-active a {
    color: #fff;
}
.rsm-listen-back-tabs .ui-tabs-panel,
.rsm-show-listen-back .ui-tabs-panel {
    padding: 10px 0;
}
/* Schedule By Day: only 20px (1.25em) padding-top on panels, nothing else */
.rsm-day-tabs.ui-tabs .ui-tabs-panel,
.rsm-day-tabs .ui-tabs-panel {
    padding: 1.25em 0 0 0;
}
.rsm-full-day { display: inline; }
.rsm-short-day { display: none; }

/* ========================================
   Listen Back entries
   ======================================== */
.rsm-lb-show-title {
    font-size: 18px;
    line-height: 1.2em;
    margin-top: 20px;
    margin-bottom: 5px;
    font-weight: 600;
}
.rsm-lb-entry {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}
.rsm-lb-label {
    width: 15%;
    padding: 10px;
    font-size: 14px;
    flex-shrink: 0;
}
.rsm-lb-player {
    width: 80%;
    padding: 10px;
}
.rsm-lb-player audio {
    width: 100%;
}

/* ========================================
   Schedule By Day  [radio-schedule-by-day]
   ======================================== */
.rsm-day-tabs .rsm-day-show-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rsm-day-tabs .rsm-show-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    list-style: none;
}
.rsm-day-tabs .rsm-show-item:hover {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.rsm-day-tabs .rsm-show-thumbnail img {
    width: 120px;
    height: 120px;
}
.rsm-day-tabs .rsm-show-image {
    width: 120px;
}
.rsm-show-time {
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.7;
}

/* ========================================
   Single Show Listen Back [radio-schedule-show-listen-back]
   ======================================== */
.rsm-show-listen-back {
    clear: both;
    width: 100%;
}

/* ========================================
   Responsive
   ======================================== */
@media only screen and (max-width: 1018px) {
    .rsm-show-image {
        width: 120px;
    }
    .rsm-show-thumbnail img {
        width: 120px;
        height: 120px;
    }
    .rsm-show-details {
        padding: 5px 0 5px 15px;
    }
    .rsm-full-day { display: none; }
    .rsm-short-day { display: inline !important; }

    .rsm-listen-back-tabs .ui-tabs-nav li,
    .rsm-day-tabs .ui-tabs-nav li,
    .rsm-show-listen-back .ui-tabs-nav li {
        width: auto;
    }
    .rsm-listen-back-tabs .ui-tabs-nav li a,
    .rsm-day-tabs .ui-tabs-nav li a,
    .rsm-show-listen-back .ui-tabs-nav li a {
        padding: 10px 8px;
    }
}

@media only screen and (max-width: 480px) {
    .rsm-shows-list .rsm-show-item,
    .rsm-day-tabs .rsm-show-item {
        flex-direction: column;
    }
    .rsm-show-image {
        width: 100%;
        margin-bottom: 10px;
    }
    .rsm-show-thumbnail img {
        width: 100%;
        height: auto;
    }
    .rsm-day-tabs .rsm-show-image {
        width: 100%;
    }
    .rsm-day-tabs .rsm-show-thumbnail img {
        width: 100%;
        height: auto;
    }
    .rsm-show-details {
        padding: 0;
    }
    .rsm-show-title a {
        font-size: 16px;
    }
    .rsm-show-excerpt {
        font-size: 13px;
    }

    .rsm-lb-entry {
        flex-direction: column;
    }
    .rsm-lb-label {
        width: 100%;
        padding: 5px 0;
    }
    .rsm-lb-player {
        width: 100%;
        padding: 5px 0;
    }

    .rsm-now-playing {
        flex-direction: column;
        align-items: flex-start;
    }
    .rsm-np-details {
        padding: 10px 0 0 0;
    }
}
