/**
 * Live results — live-result-section-static.html (scoped island).
 */

#live-results-section.live-section {
    margin: 0 0 0.45rem;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.live-section .lv-client-island {
    all: initial;
    display: block;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
    font-size: medium;
    font-weight: 400;
    line-height: normal;
    color: #000;
    box-sizing: border-box;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

.live-section .lv-client-island *,
.live-section .lv-client-island *::before,
.live-section .lv-client-island *::after {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

.live-section .lv-live-container {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.live-section .lv-header {
    width: 100%;
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #ffffff;
    padding: 22px 0;
    text-align: center;
}

.live-section .lv-header-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.2;
}

.live-section .lv-header-pulse {
    width: 11px;
    height: 11px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: lv-blink 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes lv-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.live-section .lv-info-header {
    width: 92%;
    margin: 10px auto;
    background: #ffffff;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 8px;
}

.live-section .lv-info-title {
    display: block;
    font-size: 16px;
    color: #312e81;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
    line-height: 1.25;
}

.live-section .lv-info-desc {
    display: block;
    font-size: 14px;
    color: #475569;
    margin: 4px 0 0;
    font-weight: 600;
    font-style: italic;
    line-height: 1.35;
}

.live-section .lv-results-wrap {
    padding: 0 0 5px;
}

.live-section .lv-result-box {
    padding: 10px 5px 12px;
    text-align: center;
    position: relative;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px dashed #94a3b8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    margin: 0 !important;
}

.live-section .lv-result-box:last-child {
    border-bottom: none !important;
}

.live-section .lv-result-box:hover {
    transform: none !important;
    box-shadow: none !important;
}

.live-section .lv-market-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    position: relative;
    padding: 0 52px;
    min-height: 28px;
}

.live-section .lv-market-name {
    font-size: 22px;
    font-weight: 900;
    color: #1d4ed8;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    line-height: 1.15;
}

.live-section .lv-live-badge {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #fee2e2;
    color: #b91c1c;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    animation: lv-blink 1s infinite;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.live-section .lv-result-values {
    font-size: 25px;
    font-weight: 900;
    color: #0f172a;
    margin: 6px 0;
    font-family: 'Arial Black', 'Segoe UI', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    line-height: 1.2;
}

.live-section .lv-result-values .lv-sep {
    font-weight: 900;
    color: #0f172a;
}

.live-section .lv-client-island .live-open-patti,
.live-section .lv-client-island .live-close-patti,
.live-section .lv-client-island .live-jodi {
    font-family: 'Arial Black', 'Segoe UI', sans-serif !important;
    font-size: inherit !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    letter-spacing: normal !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.live-section .lv-card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 3px;
    margin-top: 2px;
}

.live-section .lv-news-text {
    display: block;
    width: fit-content;
    max-width: calc(100% - 8px);
    font-size: 15px;
    font-weight: 900;
    color: #854d0e;
    background: linear-gradient(90deg, #fef08a, #fde047);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin: 3px 0 0;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    line-height: 1.25;
}

.live-section .lv-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 11px;
    margin: 2px 0 0;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-weight: 700;
    width: fit-content;
    line-height: 1.2;
}

.live-section .lv-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}

.live-section .lv-free-pass {
    margin: 6px 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b91c1c;
    line-height: 1.35;
}

.live-section .lv-empty-msg {
    margin: 0;
    padding: 1rem 0.75rem 1.25rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
}

@media (max-width: 360px) {
    .live-section .lv-market-name {
        font-size: 18px;
    }
    .live-section .lv-result-values {
        font-size: 21px;
    }
    .live-section .lv-header-title {
        font-size: 16px;
    }
    .live-section .lv-market-header {
        padding: 0 46px;
    }
}

/* === Added styles to restyle legacy .live markup to match new design === */

/* Container styling */
.live {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    border: 2px solid #e2e8f0 !important;
    padding: 10px !important;
    margin-bottom: 1rem !important;
}

/* Header title */
.live h2 {
    background: linear-gradient(135deg, #334155, #1e293b) !important;
    color: #ffffff !important;
    padding: 12px 0 !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin: 0 0 10px 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Pulse indicator – reuse animation */
.live .pulse {
    width: 11px;
    height: 11px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: lv-blink 1s ease-in-out infinite;
    display: inline-block;
    margin-right: 6px;
}

/* Market name */
.live .market-name {
    font-size: 22px;
    font-weight: 900;
    color: #1d4ed8;
    text-transform: uppercase;
    text-align: center;
    margin: 5px 0;
}

/* Result values */
.live .live-open-patti,
.live .live-close-patti,
.live .live-jodi {
    font-family: 'Arial Black', 'Segoe UI', sans-serif !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
    display: block;
    text-align: center;
    margin: 5px 0;
}

/* Optional meta / badge */
.live .lv-live-badge {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
}

@media (max-width: 360px) {
    .live h2 { font-size: 16px !important; }
    .live .live-open-patti,
    .live .live-close-patti,
    .live .live-jodi { font-size: 21px !important; }
    .live .market-name { font-size: 18px !important; }
}
