* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow Semi Condensed', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #2c3e50;
    position: relative;
    overflow-x: hidden;
}

/* Header Section */
.main-header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #3c40c6;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-icon img{
    width: 100%;
    max-width: 100%;
    height: auto;
}

.logo-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kk-lang{
    font-family: sans-serif;
    font-weight: 600;
    font-size: 20px;
    width: 60%;
    text-align: center;
    margin-bottom: 50px;
}

.st0{
    fill:#fff
}

.logo-text {
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
}

.header-live {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ff3f34;
    padding: 12px 25px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 63, 52, 0.3);
    animation: headerLivePulse 2s infinite;
}

@keyframes headerLivePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 63, 52, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(255, 63, 52, 0.5);
    }
}

.header-live .dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Game Section */
.game-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecef;
    position: relative;
    overflow: hidden;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #3c40c6;
}

.game-header {
    flex-direction: column;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.game-title {
    font-family: 'Teko', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.game-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff3f34;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 63, 52, 0.3);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 63, 52, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(255, 63, 52, 0.5);
    }
}

.game-live-badge i {
    animation: blink 1.5s infinite;
}

/* Flash Message */

        .flash-message-container {
            border-radius: 14px;
            position: relative;
            width: 100%;
            margin-bottom: 40px;
            overflow: hidden;
        }

        .flash-message {
            background: #3c40c6;
            color: #fff;
            padding: 25px 35px;
            border-radius: 15px;
            font-size: 20px;
            font-weight: bold;
            text-align: center;
            box-shadow: 0 5px 20px rgba(60, 64, 198, 0.4);
            position: relative;
            overflow: visible;
            animation: flashPulse 2s ease-in-out infinite;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        /* Container glow sparkle */
        .flash-message-container::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: radial-gradient(circle, rgba(60, 64, 198, 0.4) 0%, transparent 70%);
            border-radius: 20px;
            z-index: -1;
            animation: containerGlow 2s ease-in-out infinite;
        }

        /* Sparkle elements around container */
        .sparkle {
            position: absolute;
            width: 8px;
            height: 8px;
            background: #ffd700;
            border-radius: 50%;
            box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700;
            animation: sparkleFloat 3s ease-in-out infinite;
            z-index: 10;
        }

        .sparkle:nth-child(1) {
            top: -5px;
            left: 10%;
            animation-delay: 0s;
        }

        .sparkle:nth-child(2) {
            top: -5px;
            right: 10%;
            animation-delay: 0.5s;
        }

        .sparkle:nth-child(3) {
            bottom: -5px;
            left: 20%;
            animation-delay: 1s;
        }

        .sparkle:nth-child(4) {
            bottom: -5px;
            right: 20%;
            animation-delay: 1.5s;
        }

        /* Text glow and animation */
        #mainDelhiFlashMessage {
            position: relative;
            z-index: 1;
            text-shadow: 
                0 0 10px rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 255, 255, 0.5);
            animation: textFlash 1.5s ease-in-out infinite;
        }

        /* Animations */
        @keyframes containerGlow {
            0%, 100% {
                opacity: 0.5;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
        }

        @keyframes flashPulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 5px 20px rgba(60, 64, 198, 0.4);
            }
            50% {
                transform: scale(1.02);
                box-shadow: 0 8px 30px rgba(60, 64, 198, 0.6);
            }
        }

        @keyframes textFlash {
            0%, 100% {
                opacity: 1;
                text-shadow: 
                    0 0 10px rgba(255, 255, 255, 0.8),
                    0 0 20px rgba(255, 255, 255, 0.5);
            }
            50% {
                opacity: 0.9;
                text-shadow: 
                    0 0 20px rgba(255, 255, 255, 1),
                    0 0 30px rgba(255, 255, 255, 0.8),
                    0 0 40px rgba(255, 63, 52, 0.6);
            }
        }

        @keyframes sparkleFloat {
            0%, 100% {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
            25% {
                transform: translateY(-10px) scale(1.3);
                opacity: 0.7;
            }
            50% {
                transform: translateY(-5px) scale(0.8);
                opacity: 0.5;
            }
            75% {
                transform: translateY(-15px) scale(1.2);
                opacity: 0.8;
            }
        }

        /* Responsive */
        @media (max-width: 600px) {
            .flash-message {
                font-size: 16px;
                padding: 20px 25px;
            }
        }

.flash-message-container i {
    color: #ffffff;
    font-size: 30px;
}

.flash-message {
    font-size: 30px;
    color: #fff;
    font-weight: 600;
    flex: 1;
}

/* Date Display */
.date-display {
    font-family: 'Teko', sans-serif;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Results Table - Professional Design */
.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecef;
    margin-bottom: 30px;
}

.results-table thead {
    background: #34495e;
}

    .record-panel {
         max-width: max-content;
         margin: auto;
    }
    .record-panel a{
        text-decoration: none;
    }
    
    .scroll-refresh, .scroll-home {
        bottom: 158px;
    }

.results-table th {
    padding: 18px 20px;
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-align: center;
    border-bottom: 3px solid #3c40c6;
}

.results-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
    background: #ffffff;
}

.results-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.results-table tbody tr:hover {
    background: #ecf0f1;
    transform: translateX(3px);
    box-shadow: -3px 0 0 #3c40c6;
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

.results-table td {
    padding: 20px 0px;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}

.baji-cell {
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
}

.time-cell {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 16px;
}

.result-cell,
.number-cell {
    font-family: 'Teko', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #3c40c6;
    position: relative;
}

/* Section Header */
.section-header {
    background: #34495e;
    padding: 18px 30px;
    text-align: center;
    font-family: 'Teko', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 0px 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.2);
    border-left: 5px solid #3c40c6;
}

/* Previous Results Record Table */
.record-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-bottom: 40px;
}

.record-row {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecef;
    transition: all 0.3s ease;
}

.record-row:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(60, 64, 198, 0.15);
    border-color: #3c40c6;
}

.record-date {
    background: #34495e;
    color: #ffffff;
    padding: 18px 25px;
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
}

.record-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: #ffffff;
}

.record-item {
    padding: 18px 10px;
    text-align: center;
    border-right: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.record-item:last-child {
    border-right: none;
}

.record-item:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.record-time {
    font-size: 20px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
}

.record-number {
    font-family: 'Teko', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #3c40c6;
}

.record-baji {
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Refresh Button */
.refresh-btn {
    display: block;
    margin: 30px auto;
    padding: 16px 50px;
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    font-weight: 600;
    background: #3c40c6;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 64, 198, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(60, 64, 198, 0.4);
    background: #ff3f34;
}

.refresh-btn:active {
    transform: translateY(-1px);
}

.refresh-btn i {
    margin-right: 8px;
    animation: rotate 2s linear infinite paused;
}

.refresh-btn:hover i {
    animation-play-state: running;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Buttons */
.scroll-btn {
    position: fixed;
    right: 25px;
    padding: 14px 22px;
    background: #1d1d1e;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(60, 64, 198, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(60, 64, 198, 0.4);
    background: #ff3f34;
}

.scroll-top {
    bottom: 25px;
}

.scroll-bottom {
    bottom: 90px;
}

#ffkolkataCurrentResults{
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

.ffkolkata-card {
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #34495e;
    border: 1px solid #0000000f;
}

/* Disclaimer Section */
.disclaimer-section {
    background: #fff5f5;
    border-left: 5px solid #ff3f34;
    padding: 30px 40px;
    margin: 50px auto 30px;
    border-radius: 12px;
    max-width: 1360px;
    box-shadow: 0 4px 20px rgba(255, 63, 52, 0.1);
}

.disclaimer-section h2 {
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    color: #ff3f34;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-section h2 i {
    font-size: 28px;
}

.disclaimer-section p {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.disclaimer-section strong {
    color: #ff3f34;
    font-weight: 700;
}

/* Footer */
.footer {
    background: #3c40c6;
    color: #fff;
    padding: 80px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-logo-section {
    text-align: left;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: #3c40c6;
    border-bottom-left-radius: 20px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(60, 64, 198, 0.3);
}

.footer-logo-text {
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.footer-tagline {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(60, 64, 198, 0.1);
    border: 2px solid #3c40c6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3c40c6;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(60, 64, 198, 0.4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3c40c6;
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 8px;
    color: #3c40c6;
}

.contact-info {
    color: #fff;
    font-size: 15px;
    line-height: 1.8;
}

.contact-info i {
    color: #3c40c6;
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(236, 240, 241, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3c40c6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Responsive Design */
@media (max-width: 768px) {
    .flash-message {
        font-size: 28px;
    }
    .scroll-refresh, .scroll-home {
        bottom: 143px;
    }
    .footer-logo-section {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .header-container {
        /* flex-direction: column; */
        gap: 15px;
        text-align: center;
    }
    .kk-lang {
         width: 100%;
    }

    .logo-text {
        font-size: 24px;
    }

    .game-section {
        padding: 25px 20px;
    }
    .game-header img {
        width: 45%;
        height: auto;
    }
    .game-title {
        font-size: 36px;
    }

    .results-table th,
    .results-table td {
        padding: 14px 10px;
        font-size: 25px;
    }

    .result-cell,
    .number-cell {
        font-size: 22px;
    }

    .baji-cell {
        font-size: 18px;
    }

    .record-results {
        grid-template-columns: repeat(2, 1fr);
    }

    #ffkolkataCurrentResults{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .record-item {
        padding: 12px 8px;
        border-bottom: 1px solid #ecf0f1;
    }

    .record-item:nth-child(4n) {
        border-right: none;
    }

    .section-header {
        font-size: 22px;
        padding: 14px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .disclaimer-section {
        padding: 25px;
    }

    .disclaimer-section h2 {
        font-size: 26px;
    }

    .scroll-btn {
        padding: 12px 18px;
        font-size: 14px;
        right: 15px;
    }
    .game-section {
        background-color: transparent;
        padding: 25px 0;
        box-shadow: none;
        border: 0;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 28px;
    }

    .results-table th,
    .results-table td {
        padding: 12px 8px;
        font-size: 20px;
    }

    .record-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .record-item:nth-child(2n) {
        border-right: none;
    }

    .record-number {
        font-size: 22px;
    }
}