/**
 * WP Radio Scheduler - Frontend Stylesheet
 * Responsive, ultra-modern styling for Today's Schedule, Weekly Tabs, Now Playing & Calendar
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* Base Container */
.wprs-wrapper {
    font-family: 'Outfit', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 0;
    box-sizing: border-box;
    width: 100%;
}

.wprs-wrapper *, .wprs-wrapper *::before, .wprs-wrapper *::after {
    box-sizing: inherit;
}

/* ==========================================================================
   Themes: Glassmorphism, Dark, and Light
   ========================================================================== */

/* 1. Glass Theme (Default) */
.wprs-theme-glass {
    --wprs-bg: rgba(255, 255, 255, 0.85);
    --wprs-card-bg: rgba(255, 255, 255, 0.95);
    --wprs-border: rgba(226, 232, 240, 0.8);
    --wprs-text-main: #0f172a;
    --wprs-text-muted: #64748b;
    --wprs-accent: #0284c7;
    --wprs-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --wprs-hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --wprs-hero-text: #ffffff;
}

/* 2. Dark Theme */
.wprs-theme-dark {
    --wprs-bg: #0f172a;
    --wprs-card-bg: #1e293b;
    --wprs-border: #334155;
    --wprs-text-main: #f8fafc;
    --wprs-text-muted: #94a3b8;
    --wprs-accent: #38bdf8;
    --wprs-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --wprs-hero-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --wprs-hero-text: #ffffff;
}

/* 3. Light Theme */
.wprs-theme-light {
    --wprs-bg: #f8fafc;
    --wprs-card-bg: #ffffff;
    --wprs-border: #e2e8f0;
    --wprs-text-main: #1e293b;
    --wprs-text-muted: #64748b;
    --wprs-accent: #2563eb;
    --wprs-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --wprs-hero-bg: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --wprs-hero-text: #ffffff;
}

/* ==========================================================================
   Today's Schedule & Live Broadcast Header Card
   ========================================================================== */
.wprs-header-card {
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--wprs-shadow);
    margin-bottom: 24px;
    position: relative;
    backdrop-filter: blur(10px);
}

.wprs-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.wprs-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.wprs-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: wprsPulse 1.6s infinite;
}

@keyframes wprsPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.wprs-main-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--wprs-text-main);
    flex-basis: 100%;
}

.wprs-current-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wprs-text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Hero Live Now Banner */
.wprs-now-hero-banner {
    background: var(--wprs-hero-bg);
    color: var(--wprs-hero-text);
    border-radius: 12px;
    padding: 20px;
    border-left: 6px solid #38bdf8;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.wprs-hero-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f87171;
    margin-bottom: 8px;
}

.wprs-hero-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wprs-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.wprs-hero-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
}

.wprs-hero-details {
    flex-grow: 1;
}

.wprs-hero-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.wprs-hero-rj {
    display: inline-block;
    font-size: 14px;
    color: #94a3b8;
    margin-right: 12px;
}

.wprs-hero-time {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wprs-time-badge-rem {
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.wprs-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-top: 14px;
    overflow: hidden;
}

.wprs-progress-bar {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* ==========================================================================
   Timeline Schedule Items
   ========================================================================== */
.wprs-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wprs-program-item {
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--wprs-shadow);
    transition: all 0.25s ease;
    position: relative;
}

.wprs-program-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.wprs-program-item.is-on-air {
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.wprs-program-item.is-passed {
    opacity: 0.65;
}

.wprs-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    text-align: center;
    font-weight: 700;
}

.wprs-time-start {
    font-size: 15px;
    color: var(--wprs-text-main);
}
.wprs-time-divider {
    width: 12px;
    height: 2px;
    background: var(--wprs-text-muted);
    margin: 3px 0;
    opacity: 0.4;
}
.wprs-time-end {
    font-size: 12px;
    color: var(--wprs-text-muted);
}

.wprs-icon-col {
    flex-shrink: 0;
}

.wprs-prog-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.wprs-prog-thumb-fallback {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
}

.wprs-info-col {
    flex-grow: 1;
    padding-left: 12px;
    border-left: 4px solid var(--wprs-accent);
}

.wprs-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wprs-item-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--wprs-text-main);
}

.wprs-badge-live {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    animation: wprsPulse 1.6s infinite;
}

.wprs-badge-upcoming {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.wprs-badge-completed {
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
}

.wprs-rj-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wprs-text-muted);
    margin-top: 4px;
}

.wprs-item-desc {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: var(--wprs-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Today's Schedule: 3-Program Focus Deck (Previous, Current, Next)
   ========================================================================== */
.wprs-trio-deck {
    display: grid;
    grid-template-columns: 1fr 1.22fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .wprs-trio-deck {
        grid-template-columns: 1fr;
    }
}

.wprs-trio-card {
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--wprs-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wprs-trio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

/* Previous Show Card */
.wprs-trio-card.is-prev {
    opacity: 0.9;
    border-left: 4px solid #64748b;
}

/* Current Live Show Card */
.wprs-trio-card.is-current {
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.18), 0 0 0 1px #ef4444;
    transform: translateY(-2px);
    z-index: 2;
}

/* Next Show Card */
.wprs-trio-card.is-next {
    border-left: 4px solid var(--wprs-accent);
}

.wprs-trio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.wprs-trio-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.wprs-tag-prev {
    background: #e2e8f0;
    color: #475569;
}

.wprs-tag-live {
    background: #ef4444;
    color: #ffffff;
    animation: wprsPulse 1.6s infinite;
}

.wprs-tag-next {
    background: rgba(2, 132, 199, 0.12);
    color: var(--wprs-accent);
}

.wprs-trio-body {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-grow: 1;
}

.wprs-trio-thumb-wrap {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.wprs-trio-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wprs-trio-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
}

.wprs-trio-info {
    flex-grow: 1;
    min-width: 0;
}

.wprs-trio-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--wprs-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wprs-trio-card.is-current .wprs-trio-title {
    font-size: 18px;
    color: var(--wprs-text-main);
}

.wprs-trio-rj {
    font-size: 13px;
    color: var(--wprs-text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wprs-trio-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--wprs-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wprs-trio-card .wprs-progress-track {
    margin-top: 14px;
}

/* Collapsible Full Lineup Button */
.wprs-toggle-full-schedule-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--wprs-card-bg);
    border: 1px dashed var(--wprs-border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--wprs-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.wprs-toggle-full-schedule-btn:hover {
    border-color: var(--wprs-accent);
    color: var(--wprs-accent);
    background: rgba(2, 132, 199, 0.05);
}

.wprs-full-schedule-collapse {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    margin-bottom: 16px;
}

.wprs-full-schedule-collapse::-webkit-scrollbar {
    width: 6px;
}
.wprs-full-schedule-collapse::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}
.wprs-full-schedule-collapse::-webkit-scrollbar-thumb {
    background: var(--wprs-accent, #0284c7);
    border-radius: 6px;
}

/* ==========================================================================
   Weekly Schedule Tabs View (Fixed Window Size & Smooth Scrollbar)
   ========================================================================== */
.wprs-weekly-header {
    margin-bottom: 16px;
}
.wprs-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--wprs-text-muted);
}

.wprs-day-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.wprs-day-tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s;
}

.wprs-day-tab-btn:hover {
    border-color: var(--wprs-accent);
}

.wprs-day-tab-btn.is-active {
    background: var(--wprs-accent);
    color: #ffffff;
    border-color: var(--wprs-accent);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.wprs-tab-name {
    font-weight: 700;
    font-size: 14px;
}
.wprs-tab-sub {
    font-size: 12px;
    opacity: 0.85;
}
.wprs-tab-date {
    font-size: 11px;
    opacity: 0.7;
}

.wprs-weekly-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 11px;
    font-weight: 600;
    color: var(--wprs-text-muted);
    margin-bottom: 8px;
    gap: 4px;
}

.wprs-day-panel {
    display: none;
    max-height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    border-radius: 12px;
}

.wprs-day-panel.is-active {
    display: block;
    animation: wprsFadeIn 0.3s ease;
}

.wprs-day-panel::-webkit-scrollbar {
    width: 7px;
}

.wprs-day-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.wprs-day-panel::-webkit-scrollbar-thumb {
    background: var(--wprs-accent, #0284c7);
    border-radius: 8px;
}

.wprs-day-panel::-webkit-scrollbar-thumb:hover {
    background: #0369a1;
}

.wprs-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.wprs-grid-card {
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    border-top: 4px solid var(--wprs-accent);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--wprs-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wprs-grid-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wprs-grid-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}
.wprs-grid-thumb-fallback {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
}

.wprs-grid-time-badge {
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.wprs-grid-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--wprs-text-main);
}
.wprs-grid-rj {
    font-size: 13px;
    color: var(--wprs-text-muted);
}
.wprs-grid-slot {
    font-size: 12px;
    color: var(--wprs-text-muted);
    font-weight: 600;
}
.wprs-grid-desc {
    margin: 0;
    font-size: 12px;
    color: var(--wprs-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Compact Now Playing Card
   ========================================================================== */
.wprs-now-playing-card {
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--wprs-shadow);
}

.wprs-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.wprs-np-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wprs-np-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}
.wprs-np-thumb-fallback {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
}

.wprs-np-details {
    flex-grow: 1;
}

.wprs-np-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--wprs-text-main);
}

.wprs-np-rj {
    font-size: 12px;
    color: var(--wprs-text-muted);
}

.wprs-np-time {
    font-size: 11px;
    color: var(--wprs-text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.wprs-np-next {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed var(--wprs-border);
    font-size: 12px;
    color: var(--wprs-text-muted);
    display: flex;
    gap: 6px;
    align-items: center;
}

.wprs-next-label {
    font-weight: 800;
    color: var(--wprs-accent);
}
.wprs-next-title {
    font-weight: 600;
    color: var(--wprs-text-main);
}

.wprs-empty-state {
    text-align: center;
    padding: 30px;
    color: var(--wprs-text-muted);
}
.wprs-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

/* ==========================================================================
   Today's Program Carousel / Slider (256x256 Thumbnail, Live Highlight)
   ========================================================================== */
.wprs-slider-wrapper {
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--wprs-shadow);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.wprs-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wprs-border);
}

.wprs-slider-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wprs-slider-nav-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wprs-slider-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    color: var(--wprs-text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wprs-slider-nav-btn:hover {
    background: var(--wprs-accent);
    color: #ffffff;
    border-color: var(--wprs-accent);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.wprs-slider-nav-btn:active {
    transform: scale(0.95);
}

/* Slider Track & Viewport */
.wprs-slider-container {
    position: relative;
    width: 100%;
}

.wprs-slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
    padding: 10px 4px 18px 4px;
}

.wprs-slider-viewport::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.wprs-slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    user-select: none;
}

/* 256x256 Card Container */
.wprs-slider-card {
    flex: 0 0 280px;
    width: 280px;
    background: var(--wprs-card-bg);
    border: 1px solid var(--wprs-border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.wprs-slider-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--wprs-accent);
}

/* Currently Playing / ON AIR Highlight */
.wprs-slider-card.is-on-air {
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.22), 0 0 0 1px #ef4444;
    transform: translateY(-4px);
    animation: wprsCardGlow 2.5s infinite alternate;
}

@keyframes wprsCardGlow {
    0% {
        box-shadow: 0 12px 30px rgba(239, 68, 68, 0.18), 0 0 12px rgba(239, 68, 68, 0.2);
    }
    100% {
        box-shadow: 0 16px 38px rgba(239, 68, 68, 0.32), 0 0 22px rgba(239, 68, 68, 0.4);
    }
}

.wprs-slider-card.is-passed {
    opacity: 0.65;
}

/* 256x256 Thumb Box */
.wprs-slider-thumb-box {
    width: 256px;
    height: 256px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 12px auto;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #1e293b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.wprs-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.5s ease;
}

.wprs-slider-card:hover .wprs-slider-img {
    transform: scale(1.06);
}

.wprs-slider-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--prog-color, #0284c7) 0%, #0f172a 100%);
    border-radius: 14px;
}

.wprs-fallback-icon {
    font-size: 52px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.wprs-fallback-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Status Overlay Badge */
.wprs-slider-status-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.wprs-slider-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
}

.wprs-slider-badge.wprs-badge-live {
    background: #ef4444;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
    animation: wprsPulse 1.6s infinite;
}

.wprs-slider-badge.wprs-badge-upcoming {
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.2);
}

.wprs-slider-badge.wprs-badge-completed {
    background: rgba(15, 23, 42, 0.65);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Live Aura Ring */
.wprs-slider-live-ring {
    position: absolute;
    inset: 0;
    border: 3px solid #ef4444;
    border-radius: 14px;
    pointer-events: none;
    z-index: 2;
}

/* Time Overlay Badge (Glass Badge on Image) */
.wprs-slider-time-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Progress bar inside card */
.wprs-slider-card-progress {
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
    display: none;
}

.wprs-slider-card-progress.is-visible {
    display: block;
}

/* Card Body Details */
.wprs-slider-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 6px;
    flex-grow: 1;
}

.wprs-slider-time {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.wprs-slider-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--wprs-text-main);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wprs-slider-rj {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wprs-text-muted);
}

.wprs-slider-desc {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--wprs-text-muted);
    line-height: 1.4;
}

/* Pagination Dots */
.wprs-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.wprs-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--wprs-border);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.wprs-slider-dot.is-active {
    width: 24px;
    background: var(--wprs-accent);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .wprs-slider-card {
        flex: 0 0 240px;
        width: 240px;
    }
    .wprs-slider-thumb-box {
        width: 216px;
        height: 216px;
    }
    .wprs-slider-wrapper {
        padding: 16px;
    }
}

/* ==========================================================================
   Special Programme Badges
   ========================================================================== */
.wprs-badge-special-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.35);
    text-transform: uppercase;
}

/* ==========================================================================
   Developer Copyright Protection Branding
   ========================================================================== */
.wprs-dev-credit-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-top: 10px !important;
    margin-top: 14px !important;
    border-top: 1px solid var(--wprs-border, rgba(255, 255, 255, 0.1)) !important;
    font-size: 11px !important;
    color: var(--wprs-text-muted, #94a3b8) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    user-select: none !important;
}

.wprs-dev-credit-compact {
    display: block !important;
    text-align: center !important;
    font-size: 10px !important;
    color: var(--wprs-text-muted, #94a3b8) !important;
    padding-top: 6px !important;
    margin-top: 8px !important;
    border-top: 1px solid var(--wprs-border, rgba(255, 255, 255, 0.08)) !important;
    user-select: none !important;
}



