/* ===== WatchCricket — shared styles (EN + HI) ===== */
:root {
    --indigo: #1e1b4b;
    --indigo-dark: #12102e;
    --saffron: #f59e0b;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --green: #16a34a;
    --bg: #f3f2fa;
    --card-border: #e3e0f0;
    --muted: #5f5a7a;
    --navy-text: #1e1b3a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--navy-text);
    min-height: 100vh;
}

a { color: inherit; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% -10%, rgba(255,255,255,0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(245,158,11,0.12) 0%, transparent 40%),
        linear-gradient(160deg, var(--indigo) 0%, #241f5c 55%, #3a1f4a 100%);
    color: #fff;
    padding: 26px 0 60px;
}
.hero-compact { padding: 22px 0 40px; }
.hero::before {
    content: '';
    position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 78px, #fff 78px 79px),
        repeating-linear-gradient(90deg, transparent 0 78px, #fff 78px 79px);
}
.hero::after {
    content: '';
    position: absolute; top: -220px; left: 50%; width: 900px; height: 500px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(245,158,11,0.22) 0%, rgba(245,158,11,0) 70%);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; }
.brand .live-tag {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 30px;
}
.lang-switch { display: flex; gap: 6px; }
.lang-link {
    text-decoration: none; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
    padding: 5px 14px; border-radius: 20px; font-weight: 600; font-size: 0.82rem; transition: 0.2s;
}
.lang-link:hover { background: rgba(255,255,255,0.2); }
.lang-link.active { background: var(--red); border-color: var(--red); }

.back-link {
    display: inline-flex; align-items: center; gap: 6px; color: #d8d4f0;
    text-decoration: none; font-size: 0.88rem; font-weight: 600; margin-bottom: 18px;
}
.back-link:hover { color: #fff; }

.hero-content { text-align: center; max-width: 780px; margin: 30px auto 0; }
.hero-eyebrow {
    display: inline-block; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.5);
    color: var(--saffron); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.5px;
    padding: 5px 16px; border-radius: 30px; margin-bottom: 18px;
}
.hero h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 14px; }
.hero h1 span { color: var(--saffron); }
.hero p.lede { color: #d8d4f0; font-size: 1.02rem; margin-bottom: 26px; }

.hero-cta-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn-primary {
    display: inline-block; background: var(--red); color: #fff; padding: 15px 42px; border-radius: 40px;
    text-decoration: none; font-weight: 800; font-size: 1.08rem; box-shadow: 0 10px 30px rgba(220,38,38,0.35);
    transition: 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.promo-line { font-size: 0.85rem; color: #d8d4f0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.promo-code {
    background: var(--indigo-dark); color: var(--saffron); border: 1px solid var(--saffron);
    font-weight: 800; padding: 3px 12px; border-radius: 20px; letter-spacing: 0.5px;
}
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: 0.85rem; color: #d8d4f0; }
.trust-row span { display: flex; align-items: center; gap: 6px; }

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1100px; margin: -34px auto 0; background: #fff; border-radius: 24px;
    padding: 28px 28px 36px; box-shadow: 0 10px 40px rgba(0,0,0,0.10); border: 1px solid var(--card-border);
    position: relative; z-index: 2;
}

.section-heading { font-size: 1.15rem; color: var(--navy-text); margin-bottom: 14px; font-weight: 700; }

/* ===== live-now ticker ===== */
.live-ticker { display: grid; gap: 12px; }

/* ===== match card ===== */
.match-card {
    background: #f8f7fc; border-radius: 12px; padding: 14px 20px; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 10px; border-left: 4px solid var(--indigo); transition: 0.2s;
    text-decoration: none; color: inherit;
}
.match-card:hover { background: #f1effa; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
.match-card .comp-tag { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 4px; }
.match-card .teams { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; flex-wrap: wrap; }
.match-card .team-block { display: flex; align-items: center; gap: 8px; }
.match-card .team-logo-sm { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; background: #eee; }
.match-card .vs { color: #8a84a8; font-weight: 400; font-size: 0.8rem; }
.match-card .status-line { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.status-badge { font-size: 0.75rem; padding: 3px 12px; border-radius: 20px; background: #e8e6f4; color: var(--muted); white-space: nowrap; }
.status-badge.live { background: var(--red); color: #fff; animation: pulse 1.5s infinite; }
.status-badge.finished { background: #e0dcf2; color: var(--indigo); }
.status-badge.upcoming { background: #fff3e0; color: #b06a00; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ===== innings score ===== */
.innings-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.innings-row { display: flex; justify-content: space-between; font-size: 0.85rem; gap: 14px; }
.innings-row .innings-name { color: var(--muted); }
.innings-row .innings-score { font-weight: 700; }

/* ===== tabs (reused across pages) ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
    background: var(--bg); border: 2px solid transparent; padding: 10px 26px; border-radius: 30px;
    font-weight: 600; font-size: 0.92rem; color: var(--indigo); cursor: pointer; transition: 0.2s;
}
.tab-btn:hover { background: #e8e6f4; }
.tab-btn.active { background: var(--indigo); color: #fff; border-color: var(--indigo-dark); }

/* ===== competition/team cards ===== */
.comp-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.comp-card, .team-card {
    background: #f8f7fc; border: 1px solid var(--card-border); border-radius: 14px; padding: 18px;
    text-decoration: none; color: inherit; transition: 0.2s;
}
.comp-card:hover, .team-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.07); transform: translateY(-2px); }
.comp-card .comp-name, .team-card .team-name-lg { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.comp-card .comp-meta { font-size: 0.8rem; color: var(--muted); }
.team-card img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 10px; background: #eee; border-radius: 6px; }

/* ===== points table ===== */
.points-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.points-table th {
    background: var(--indigo); color: #fff; padding: 10px 10px; text-align: left; font-weight: 600;
}
.points-table th:first-child { border-radius: 10px 0 0 0; }
.points-table th:last-child { border-radius: 0 10px 0 0; }
.points-table td { padding: 10px 10px; border-bottom: 1px solid #eeecf7; }
.points-table tr:hover td { background: #f8f7fc; }
.points-table .team-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.points-table .team-cell img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; background: #eee; }
.points-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ===== stat grid (player / team-hero style) ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-grid div { background: var(--bg); border-radius: 10px; padding: 8px 4px; text-align: center; }
.stat-grid .stat-value { display: block; font-weight: 800; font-size: 1.0rem; color: var(--navy-text); }
.stat-grid .stat-label { display: block; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }
@media (max-width: 700px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== player stats table ===== */
.player-stats-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 18px; }
.player-stats-table caption { text-align: left; font-weight: 700; padding: 10px 0 6px; color: var(--indigo); }
.player-stats-table th { background: var(--bg); padding: 7px 8px; text-align: right; font-weight: 600; color: var(--muted); font-size: 0.75rem; }
.player-stats-table th:first-child { text-align: left; }
.player-stats-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid #eeecf7; }
.player-stats-table td:first-child { text-align: left; font-weight: 700; }

/* ===== team hero / player hero header ===== */
.entity-hero-header { text-align: center; }
.entity-hero-header img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 14px; background: rgba(255,255,255,0.1); border-radius: 12px; }
.entity-hero-header h1 { font-size: 1.9rem; }
.entity-hero-header .entity-sub { color: #d8d4f0; font-size: 0.9rem; margin-top: 8px; }

.panel { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 1.1rem; color: var(--navy-text); margin-bottom: 14px; }

.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.squad-card {
    display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 8px 10px;
    text-decoration: none; color: inherit; font-size: 0.85rem; font-weight: 600;
}
.squad-card:hover { background: #e8e6f4; }
.squad-card img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #ddd; }
.squad-card .squad-role { display: block; font-size: 0.7rem; font-weight: 400; color: var(--muted); }

/* ===== CTA banner / footer (same pattern as La Liga) ===== */
.cta-banner {
    max-width: 1100px; margin: 30px auto 0; background: linear-gradient(120deg, var(--indigo-dark), var(--indigo));
    border-radius: 20px; padding: 26px 30px; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; color: #fff;
}
.cta-banner .btn-secondary {
    background: var(--red); color: #fff; padding: 12px 28px; border-radius: 30px; text-decoration: none;
    font-weight: 700; white-space: nowrap; transition: 0.2s;
}
.cta-banner .btn-secondary:hover { background: var(--red-dark); }

.footer-cta {
    max-width: 1100px; margin: 50px auto 0; background: var(--indigo-dark); color: #fff; padding: 34px 30px;
    border-radius: 20px 20px 0 0; text-align: center;
}
.footer-cta p { color: #d8d4f0; margin-bottom: 16px; }

.site-footer { background: var(--indigo-dark); color: #a79fc9; padding: 22px 30px 30px; }
.site-footer .wrap { max-width: 1100px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; margin-top: 18px; font-size: 0.76rem; line-height: 1.6; color: #8f88ad; }
.disclaimer .age-badge { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: 0.75rem; padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: #d8d4f0; }
.footer-links a:hover { text-decoration: underline; }

.empty-state, .loading-note { color: var(--muted); padding: 20px 4px; }
.hidden { display: none; }

@media (max-width: 700px) {
    .hero h1 { font-size: 1.6rem; }
    .container { padding: 18px; margin-top: -22px; }
    .cta-banner { flex-direction: column; text-align: center; }
}
