* { box-sizing: border-box; margin: 0; padding: 0; }
html { margin: 0; padding: 0; }
body { margin: 0; padding: 0; font-family: 'Segoe UI', 'Arial', system-ui, sans-serif; background: #ffffff; color: #1a1a1a; }

/* Header */
.header {
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 0;
    font-size: 0;
    display: block;
    width: 100%;
}
.logo-wrap {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}
.header-banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    vertical-align: top;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* Marquee – right to left */
.marquee-wrap {
    background: linear-gradient(90deg, #FF4444 0%, #CC0000 100%);
    color: #FFFF00;
    padding: 0.75rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}
.marquee {
    display: inline-block;
    width: max-content;
    animation: marquee 45s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
#marquee-content {
    padding-right: 4rem;
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Main */
.main { max-width: 760px; margin: 0 auto; padding: 0 1rem 3rem; }
.section-title {
    font-size: 1.35rem;
    margin: 0 0 1rem;
    color: #1a1a1a;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(102, 255, 0, 0.2);
}
.old-title { margin-top: 2.5rem; padding-bottom: 0.75rem; border-bottom: 3px solid #66FF00; }
.today-section { margin-bottom: 2rem; }
.today-date-header {
    padding: 1rem;
    background: linear-gradient(135deg, #66FF00 0%, #4FCC00 100%);
    text-align: center;
    font-size: 1.05rem;
    font-weight: 900;
    color: #1a1a1a;
    border-radius: 10px 10px 0 0;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(102, 255, 0, 0.2);
    margin-bottom: 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.section-header .refresh-btn {
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}
.action-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 900;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.action-btn-primary {
    background: linear-gradient(135deg, #66FF00 0%, #4FCC00 100%);
    color: #1a1a1a;
    border: 3px solid #66FF00;
    box-shadow: 0 4px 10px rgba(102, 255, 0, 0.25);
}
.action-btn-primary:hover {
    background: linear-gradient(135deg, #4FCC00 0%, #66FF00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 255, 0, 0.35);
}
.action-btn-secondary {
    background: linear-gradient(135deg, #66FF00 0%, #4FCC00 100%);
    color: #1a1a1a;
    border: 3px solid #66FF00;
    box-shadow: 0 4px 10px rgba(102, 255, 0, 0.25);
}
.action-btn-secondary:hover {
    background: linear-gradient(135deg, #4FCC00 0%, #66FF00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 255, 0, 0.35);
}
.action-btn-tertiary {
    background: #FF4444;
    color: #fff;
    border: 3px solid #FF2222;
    box-shadow: 0 4px 10px rgba(255, 68, 68, 0.3);
}
.action-btn-tertiary:hover {
    background: #FF2222;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 68, 68, 0.4);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    margin: 1.5rem 0 0.5rem;
}

.social-icon {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: default;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.youtube-icon {
    background: #ff0000;
}

.facebook-icon {
    background: #1877f2;
}

.live-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    color: black;
    
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.9rem;
    margin: 1.5rem auto 1rem;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
    animation: redGlow 1.5s ease-in-out infinite;
    width: fit-content;
}
.live-dot {
    width: 10px;
    height: 10px;
    background: #FF0000;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes redGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 68, 68, 0.6); }
    50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.9), 0 0 30px rgba(255, 68, 68, 0.5); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.refresh-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #66FF00 0%, #4FCC00 100%);
    border: 2px solid #66FF00;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.95rem;
    color: #1a1a1a;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(102, 255, 0, 0.3);
    transition: all 0.3s ease;
    margin: 1rem auto;
    display: block;
}
.refresh-btn:hover {
    background: linear-gradient(135deg, #4FCC00 0%, #66FF00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 255, 0, 0.4);
}
.result-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 1.5rem;
    border: 2px solid #66FF00;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(102, 255, 0, 0.15);
}
.result-card {
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}
.result-card .num {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}
.result-cards .num-grid {
    width: 100%;
}
.muted { color: #666; margin: 0; }

/* Old results */
.game-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.game-tab {
    padding: 0.8rem 2rem;
    border: 3px solid #66FF00;
    background: #fff;
    color: #1a1a1a;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 900;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.game-tab:hover {
    background: #e8ffcc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 255, 0, 0.25);
}
.game-tab.active {
    background: linear-gradient(135deg, #66FF00 0%, #4FCC00 100%);
    color: #1a1a1a;
    box-shadow: 0 6px 15px rgba(102, 255, 0, 0.35);
}
.old-results {
    background: linear-gradient(135deg, #ffffff 0%, #f5fff0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 255, 0, 0.15);
    border: 2px solid #66FF00;
}
.date-group {
    margin-bottom: 1.5rem;
}
.date-header {
    padding: 1rem;
    background: linear-gradient(135deg, #66FF00 0%, #4FCC00 100%);
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 900;
    color: #1a1a1a;
    border-radius: 10px 10px 0 0;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(102, 255, 0, 0.2);
}
.num-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.num-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.1rem;
    border-right: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    flex: 1;
    min-width: 35px;
    text-align: center;
    background: #fff;
    transition: all 0.2s ease;
}
.num-pair:hover {
    background: #e8ffcc;
}
.num-pair:nth-child(8n) {
    border-right: none;
}
.num-top, .num-bottom {
    font-weight: 900;
    font-size: 1.1rem;
    color: #1a1a1a;
    text-align: center;
}
.num-top {
    margin-bottom: 0.25rem;
}
.num-bottom {
    margin-top: 0.25rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #ccc;
    padding: 2.5rem 1rem;
    margin-top: 3rem;
    text-align: center;
    border-top: 4px solid #66FF00;
}
.footer-inner { max-width: 640px; margin: 0 auto; }
.footer-brand {
    font-size: 1.35rem;
    font-weight: 900;
    color: #66FF00;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.footer-tagline { margin: 0 0 1.25rem; font-size: 0.95rem; opacity: 0.9; }
.footer-keywords {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    line-height: 1.75;
    color: #f2f2f2;
    opacity: 0.9;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.footer-links a { color: #66FF00; text-decoration: none; font-weight: 700; transition: all 0.3s ease; }
.footer-links a:hover { text-decoration: underline; color: #7FFF00; }
.footer-copy { margin: 0; font-size: 0.8rem; opacity: 0.7; }

/* Legal pages */
.legal-page {
    background: #f5f8ef;
}

.legal-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

.legal-card {
    background: #ffffff;
    border: 2px solid #66FF00;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(102, 255, 0, 0.15);
    padding: 1.25rem;
}

.legal-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
}

.legal-card p {
    margin: 0 0 0.95rem;
    line-height: 1.7;
    color: #1f1f1f;
}

.legal-card h3 {
    margin: 1.2rem 0 0.6rem;
    color: #0f0f0f;
    font-size: 1.02rem;
    font-weight: 800;
}

.legal-card ul {
    margin: 0 0 0.95rem 1.2rem;
}

.legal-card li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.legal-back {
    margin-top: 1.1rem;
}

.legal-back a {
    color: #1a1a1a;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid #66FF00;
}

.legal-back a:hover {
    color: #0a7500;
}

/* Image Section */
.image-section {
    margin: 0 0 2rem;
    padding: 0;
}
.images-container {
    display: flex;
    justify-content: center;
    margin-top: 0;
}
.image-display-item {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease;
    width: min(100%, 760px);
    margin: 1.5rem 0;
}
.image-display-item:hover {
    transform: translateY(-4px);
    box-shadow: none;
}
.display-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
    background: #fff;
}
.featured-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(102, 255, 0, 0.25);
    display: block;
    border: 3px solid #66FF00;
}

/* Responsive */
@media (max-width: 640px) {
    .header {
        padding: 0;
        margin: 0;
    }
    .logo-wrap {
        margin: 0;
        padding: 0;
    }
    .header-banner-image {
        width: 100%;
        display: block;
        margin: 0;
        padding: 0;
        vertical-align: top;
    }
    .marquee-wrap {
        padding: 0.64rem 0;
    }
    #marquee-content {
        font-size: 1.38rem;
    }
    .section-title { font-size: 1.2rem; }
    .main { padding: 0 0.75rem 2rem; }
    .result-cards { padding: 1rem; }
    .game-tabs { gap: 0.5rem; }
    .game-tab { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .featured-image { max-width: 100%; }
    .display-image { height: 220px; }
    .footer-links {
        gap: 0.75rem 1rem;
    }
    .footer-keywords {
        font-size: 0.82rem;
        line-height: 1.65;
    }
    .legal-main {
        padding: 1rem 0.75rem 2rem;
    }
    .legal-card {
        padding: 1rem;
    }
}

/* Kolkata FF Tips page */
.tips-page {
    background: #f6f6f6;
    padding: 0.6rem 0.75rem 1rem;
}

.tips-card {
    width: min(100%, 700px);
    margin: 0 auto;
    background: #e5e5e5;
    border: 1px solid #c7c7c7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tips-main-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    padding: 0.5rem 0.6rem;
    color: #1f1f1f;
    background: #efefef;
    border-bottom: 1px solid #c7c7c7;
}

.tips-banner-top,
.tips-banner-bottom {
    background: #66ff33;
    color: #1f1f1f;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    padding: 0.4rem 0.55rem;
    border-top: 2px solid #4aae2a;
    border-bottom: 2px solid #4aae2a;
}

.tips-banner-bottom {
    color: #d73a2f;
}

.tips-table-wrap {
    overflow-x: auto;
}

.tips-public-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #e5e5e5;
}

.tips-public-table td {
    border: 2px solid #6d6d6d;
    padding: 0.38rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 800;
    color: #191919;
}

.tips-col-label {
    width: 48%;
    text-align: center;
    letter-spacing: 0.01em;
}

.tips-col-status {
    width: 52%;
    text-align: center;
    white-space: nowrap;
}

.tips-numbers {
    color: #1f1f1f;
}

.tips-status {
    margin-left: 0.35rem;
    font-weight: 900;
}

.tips-status.pass {
    color: #1f1f1f;
}

.tips-status.fail {
    color: #1f1f1f;
}

.tips-status.waiting {
    color: #ca8a04;
    font-size: 0.72rem;
}

.tips-loading {
    text-align: center;
    font-size: 1rem;
    padding: 1rem;
    color: #444;
}

.tips-back-wrap {
    width: min(100%, 700px);
    margin: 0 auto 0.45rem;
    text-align: left;
}

.tips-back-top {
    padding-left: 0.1rem;
}

.tips-back-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
    color: #1f1f1f;
    background: #66ff33;
    border: 2px solid #4aae2a;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.86rem;
}

@media (max-width: 640px) {
    .tips-main-title,
    .tips-banner-top,
    .tips-banner-bottom {
        font-size: 0.95rem;
    }

    .tips-public-table td {
        font-size: 0.7rem;
        padding: 0.34rem 0.35rem;
    }

    .tips-status.waiting {
        font-size: 0.68rem;
    }
}