/*===================================================================================
 * Live Tab CSS (ESPNcricinfo Advanced Style & 7-Device Responsive)
 * Path: assets/css/templates/single-match/tabs/live.css
===================================================================================*/

.nplsc-live-tab-wrapper {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    font-family: Arial, sans-serif !important;
}

/* Base Card Layout */
.nplsc-live-card {
    background: #ffffff !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}

/* 1. Header & Equation */
.nplsc-live-header {
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    position: relative !important;
}

.nplsc-blinking-dot {
    width: 10px !important;
    height: 10px !important;
    background-color: #d32f2f !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    animation: nplsc-blink 1.5s infinite ease-in-out !important;
}

@keyframes nplsc-blink {
    0% { opacity: 1 !important; transform: scale(1) !important; }
    50% { opacity: 0.4 !important; transform: scale(1.2) !important; }
    100% { opacity: 1 !important; transform: scale(1) !important; }
}

.nplsc-live-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #d32f2f !important;
    letter-spacing: 1px !important;
    margin-right: 15px !important;
}

.nplsc-equation-text {
    font-size: 16px !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    margin: 0 !important;
    flex-grow: 1 !important;
}

.nplsc-refresh-btn {
    background: none !important;
    border: none !important;
    color: #0056b3 !important;
    cursor: pointer !important;
    padding: 5px !important;
    transition: transform 0.3s ease !important;
}

.nplsc-refresh-btn:hover {
    transform: rotate(180deg) !important;
    color: #003d82 !important;
}

.nplsc-run-rates {
    display: flex !important;
    gap: 20px !important;
}

.nplsc-rr-box {
    font-size: 14px !important;
    color: #555 !important;
}

.nplsc-rr-box strong {
    color: #222 !important;
}

/* 2. Recent Balls Strip */
.nplsc-recent-balls-card {
    display: flex !important;
    align-items: center !important;
    background: #f8f9fa !important;
    padding: 10px 15px !important;
}

.nplsc-recent-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-right: 15px !important;
}

.nplsc-recent-balls-strip {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
}

.nplsc-recent-balls-strip::-webkit-scrollbar { height: 0 !important; }

.nplsc-ball-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.nplsc-ball-normal { background: #e0e0e0 !important; color: #333 !important; }
.nplsc-ball-four { background: #1976d2 !important; color: #fff !important; }
.nplsc-ball-six { background: #2e7d32 !important; color: #fff !important; }
.nplsc-ball-wicket { background: #d32f2f !important; color: #fff !important; }

/* 3. At The Crease Tables */
.nplsc-crease-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
}

.nplsc-card-title {
    font-size: 14px !important;
    color: #444 !important;
    text-transform: uppercase !important;
    margin: 0 0 10px 0 !important;
    font-weight: 700 !important;
}

.nplsc-table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
}

.nplsc-live-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: right !important;
}

.nplsc-live-table th, .nplsc-live-table td {
    padding: 8px 5px !important;
    font-size: 13px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.nplsc-live-table th {
    color: #777 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

.nplsc-text-left { text-align: left !important; }

.nplsc-striker-row td {
    background: #fdfdfd !important;
}

.nplsc-striker-icon {
    color: #d32f2f !important;
    font-weight: 900 !important;
}

.nplsc-bold-blue { color: #0056b3 !important; font-weight: 700 !important; }
.nplsc-bold-red { color: #d32f2f !important; font-weight: 700 !important; }

/* 4. Partnership & Last Wicket */
.nplsc-info-footer-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: #fdfdfd !important;
}

.nplsc-info-row {
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
}

.nplsc-info-title {
    font-weight: 600 !important;
    color: #666 !important;
    width: 100px !important;
}

.nplsc-info-value { color: #444 !important; }
.nplsc-text-dark { color: #111 !important; font-weight: 500 !important; }

/*===================================================================================
 * 7-Device Responsive Breakpoints
===================================================================================*/

/* 1. Mobile S (320px) */
@media screen and (max-width: 320px) {
    .nplsc-crease-grid { grid-template-columns: 1fr !important; }
    .nplsc-equation-text { font-size: 14px !important; }
    .nplsc-live-header { flex-wrap: wrap !important; }
    .nplsc-refresh-btn { position: absolute !important; right: 0 !important; top: 0 !important; }
}

/* 2. Mobile M (375px) */
@media screen and (min-width: 321px) and (max-width: 375px) {
    .nplsc-crease-grid { grid-template-columns: 1fr !important; }
    .nplsc-equation-text { font-size: 15px !important; }
}

/* 3. Mobile L (425px) */
@media screen and (min-width: 376px) and (max-width: 425px) {
    .nplsc-crease-grid { grid-template-columns: 1fr !important; }
}

/* 4. Tablet (768px) */
@media screen and (min-width: 426px) and (max-width: 768px) {
    .nplsc-crease-grid { grid-template-columns: 1fr !important; }
}

/* 5. Laptop (1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nplsc-crease-grid { grid-template-columns: 1fr 1fr !important; }
}

/* 6. Desktop (1440px) */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .nplsc-crease-grid { grid-template-columns: 1fr 1fr !important; }
}

/* 7. 4K Displays (2560px) */
@media screen and (min-width: 1441px) {
    .nplsc-live-tab-wrapper { max-width: 1200px !important; margin: 0 auto !important; }
    .nplsc-live-table th, .nplsc-live-table td { font-size: 14px !important; padding: 12px 10px !important; }
}