/* Wrapper to hold the slider and absolute arrows */
.ryna-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 140px; /* FORCES the container to stay open */
}

.ryna-slider-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    
    /* UPDATE THIS LINE: Top, Right, Bottom, Left padding */
    padding: 10px 45px 15px 45px; 
    
    height: 100%;
    align-items: center; 
    width: 100%;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
    cursor: default !important;
}
.ryna-slider-container::-webkit-scrollbar { 
    display: none; /* Chrome, Safari and Opera */
}

/* Card Isolation (Updated Height) */
.ryna-slider-card {
    flex: 0 0 240px; 
    height: 140px; /* Increased by 15px to fit the 2-line footer */
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none; 
    transition: box-shadow 0.2s, border-color 0.2s;
}
.ryna-slider-card:hover { 
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); 
    border-color: #0d6efd; 
}

/* Arrows (Hidden on mobile devices) */
.ryna-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #15122d;
    font-weight: 900;
    font-size: 16px;
    transition: all 0.2s ease;
    user-select: none;
}
.ryna-slider-arrow:hover { background: #15122d; color: #ffffff; }
.ryna-slider-arrow-left { left: -15px; }
.ryna-slider-arrow-right { right: -15px; }

@media (max-width: 768px) {
    /* Touch screens don't need arrows, they can swipe */
    .ryna-slider-arrow { display: none; }
}

/* Header Row Isolation */
.ryna-slider-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
    margin-bottom: 5px;
}
.ryna-slider-date { font-size: 11px; font-weight: 700; color: #6c757d; font-family: Arial, sans-serif; }
/* Card Live State Highlight */
.ryna-slider-card.is-live {
    border-color: #ef4444; /* Red border for active games */
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15); /* Soft red shadow */
}

/* Status Badges */
.ryna-slider-badge-final { 
    background-color: #5a6268; 
    color: white; 
    font-size: 10px; 
    padding: 3px 8px; 
    border-radius: 12px; 
    font-weight: 700; 
    font-family: Arial, sans-serif; 
}
.ryna-slider-badge-upcoming { 
    background-color: #e2e8f0; 
    color: #475569; 
    border: 1px solid #cbd5e1;
    font-size: 10px; 
    padding: 2px 8px; 
    border-radius: 12px; 
    font-weight: 700; 
    font-family: Arial, sans-serif; 
}
.ryna-slider-badge-live { 
    background-color: #ef4444; /* Alert Red */
    color: white; 
    font-size: 10px; 
    padding: 3px 8px; 
    border-radius: 12px; 
    font-weight: 800; 
    font-family: Arial, sans-serif; 
    animation: pulse-red 2s infinite; /* Optional: tiny pulse effect */
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* Team Row Isolation */
.ryna-slider-team-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ryna-slider-team-info { display: flex; align-items: center; gap: 8px; }
.ryna-slider-team-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; border: 1px solid #eee; background: #fff; pointer-events: none;}
.ryna-slider-team-name { font-size: 13px; font-weight: 700; color: #333; font-family: Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.ryna-slider-team-score { font-size: 15px; font-weight: 800; color: #333; font-family: Arial, sans-serif; }

/* Loser State Isolation */
.ryna-slider-is-loser .ryna-slider-team-name { font-weight: 400; color: #888; }
.ryna-slider-is-loser .ryna-slider-team-score { font-weight: 400; color: #888; }

/* Footer Isolation (Updated for 2 lines) */
.ryna-slider-footer-info { 
    font-size: 10px; 
    color: #888; 
    padding-top: 6px; 
    border-top: 1px dashed #f0f0f0; 
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: Arial, sans-serif; 
}

.ryna-slider-footer-line {
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
/* Sets the default drag cursor */
.ryna-slider-container {
    cursor: grab;
}

/* Automatically collapse the scroller and wrapper if they are empty */
#sched-scroll:empty,
#top1:empty {
    display: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
