:root {
    /* Color Palette */
    --bg: #0b0e14; /* একটু গাঢ় ব্যাকগ্রাউন্ড */
    --card: #151b2b;
    --card-surface: #1e2536;
    
    /* Branding */
    --accent: #00e676; /* Green */
    --accent-glow: rgba(0, 230, 118, 0.25);
    --accent-fail: #ff4757; /* Red for cards/misses */
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* Effects */
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Layout */
    --app-width: 600px;
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 8px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    line-height: 1.5;
    overscroll-behavior-y: none; /* Pull-to-refresh এফেক্ট বন্ধ রাখে অ্যাপ-লাইক ফিলিংয়ের জন্য */
}

/* --- Container --- */
.sh-container {
    max-width: var(--app-width);
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px; /* Bottom nav এর জন্য জায়গা রাখা */
}

/* --- Hero Section (Glassmorphism) --- */
.sh-hero {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-l);
    padding: 24px 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* গ্লাস ইফেক্ট এবং ব্যাকগ্রাউন্ড ব্লার */
.sh-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 230, 118, 0.1), transparent 40%);
    pointer-events: none;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 100px 1fr; /* Fixed center width */
    align-items: start;
    gap: 12px;
}

/* Team Styles */
.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.t-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.t-name {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.3;
    color: #e2e8f0;
}

/* Score Board */
.score-box { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}

.score-now {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.status-pill {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 6px; 
    height: 6px; 
    background: var(--accent); 
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: blink 1.5s infinite;
}

@keyframes blink { 50% { opacity: 0.5; } }

/* --- Sticky Tabs (Snap Scrolling) --- */
.sh-tabs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin: 0 -16px 20px -16px; /* Full width bleeding */
    padding: 10px 16px;
    position: sticky;
    top: 0;
    background: rgba(11, 14, 20, 0.95); /* Backdrop for sticky */
    backdrop-filter: blur(10px);
    z-index: 100;
    scroll-snap-type: x mandatory; /* UX Improvement */
}

.sh-tabs::-webkit-scrollbar { display: none; }

.tab {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 50px; /* Pill shape is more modern */
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab.active {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* --- Dual Stats Bar (New UX) --- */
/* এটি হোম এবং অ্যাওয়ে টিমের তুলনা সহজ করে */
.stats-container {
    background: var(--card);
    border-radius: var(--radius-m);
    padding: 20px;
    border: 1px solid var(--border);
}

.stat-row { margin-bottom: 20px; }
.stat-row:last-child { margin-bottom: 0; }

.stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.dual-bar {
    display: flex;
    gap: 4px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--glass);
}

.bar-home {
    background: var(--accent);
    border-radius: 4px 0 0 4px;
}
.bar-away {
    background: #64748b; /* Away color */
    border-radius: 0 4px 4px 0;
}

/* --- Improved Timeline --- */
.timeline {
    position: relative;
    padding: 10px 0;
}

/* Center Line Connector */
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
    border-radius: 2px;
}

.tl-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    position: relative;
    width: 50%;
}

/* Home Events (Left) */
.tl-item.home { 
    margin-right: auto; 
    padding-right: 20px; 
    flex-direction: row-reverse;
}

/* Away Events (Right) */
.tl-item.away { 
    margin-left: auto; 
    padding-left: 20px; 
}

/* The Center Dot */
.tl-item::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    background: var(--bg);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.tl-item.home::after { right: -6px; border-color: var(--accent); }
.tl-item.away::after { left: -6px; border-color: #64748b; }

.tl-card {
    background: var(--card-surface);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    min-width: 120px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tl-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    display: block;
}

.tl-desc { font-size: 0.85rem; font-weight: 600; }
.tl-sub { font-size: 0.75rem; color: var(--text-muted); }

/* --- Animation --- */
.pane {
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Tweaks */
@media (max-width: 380px) {
    .hero-main { grid-template-columns: 1fr 70px 1fr; }
    .score-now { font-size: 2rem; }
    .t-logo { width: 45px; height: 45px; }
}
/* --- Footer Styling --- */
.sh-footer {
    background-color: var(--card); /* কার্ডের কালার ব্যাকগ্রাউন্ড হিসেবে */
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding-top: 40px;
    font-size: 0.9rem;
}

/* Grid Layout for Desktop */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* দুই কলাম */
    gap: 30px;
    margin-bottom: 30px;
}

/* Brand Section */
.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

/* Navigation Links */
.nav-title {
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    opacity: 0.8;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px; /* সারি এবং কলাম গ্যাপ */
}

.nav-list li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-list li a:hover {
    color: var(--accent); /* হোভার করলে সবুজ হবে */
}

/* --- App Promo Box (Highlight) --- */
.app-promo-box {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.promo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-download {
    background: var(--accent);
    color: #000; /* কালো টেক্সট সবুজের উপর */
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:active {
    transform: scale(0.95);
}

/* --- Footer Bottom (Copyright) --- */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-bottom p { margin: 0; }

/* --- Mobile Optimization (Mobile First Tweaks) --- */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* এক কলামে নিয়ে আসা */
        gap: 25px;
        text-align: center;
    }

    .brand-desc {
        margin: 0 auto; /* টেক্সট সেন্টারে আনা */
    }

    .nav-list {
        justify-content: center; /* লিংকগুলো সেন্টারে */
        gap: 15px;
    }
    
    .nav-title {
        display: none; /* মোবাইলে 'Quick Links' টাইটেল দরকার নেই, ক্লিন দেখাবে */
    }

    /* অ্যাপ প্রোমো বক্সে পরিবর্তন */
    .app-promo-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        background: var(--card-surface); /* সলিড ব্যাকগ্রাউন্ড মোবাইলে ভালো দেখায় */
    }
    
    .btn-download {
        width: 100%; /* বাটন ফুল উইডথ */
        text-align: center;
        padding: 12px;
    }
}