/**
 * Standalone live scorecard widget (iframe only).
 * Document shell (html/body/root, error fallback) + legacy .masthead markup styles.
 * Not the full cricket match page stylesheet.
 *
 * @package ISPV2
 */

/* --- iframe document shell (template-live-scorecard-embed.php) --- */
html {
	box-sizing: border-box;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	padding: 0;
	background: transparent;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

body.isp-live-scorecard-widget-shell {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

#isp-live-scorecard-root {
	margin: 0;
	padding: 0;
	max-width: 100%;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
}

.isp-live-scorecard-fallback {
	max-width: 980px;
	margin: 11px auto;
	padding: 16px;
	color: #fff;
	border-radius: 8px;
	background: linear-gradient(180deg, #2f63ff, #2a55f3);
	font-size: 14px;
}

/* --- legacy masthead markup (optional) --- */
.masthead {
    max-width: 980px;
    margin: 0 auto;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.10), transparent 45%),
        linear-gradient(180deg, #2f63ff, #2a55f3);
}

.masthead-title {
    padding: 9px 11px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.masthead-status {
    text-align: center;
    margin: 7px 0;
}

.masthead-status span {
    background: #37384d;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
}

.scorecard {
    padding: 7px 18px 10px;
}

.teams-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 6px;
}

.team {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 160px;
    font-size: 12px;
    font-weight: 600;
}

.team.left {
    justify-content: flex-end;
    text-align: right;
}

.team.right {
    justify-content: flex-start;
    text-align: left;
}

.team-logo {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: .5px solid rgba(247, 247, 247, .5);
    width: 30px;
    height: 20px;
}

.scheduled-vs,
.vs {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 800;
    color: #fff;
}

.scores-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.score {
    font-size: 22px;
    font-weight: 800;
}

.score.left {
    text-align: right;
}

.score.right {
    text-align: left;
}

.score.left,
.score.right {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.score.winner {
    color: #ffd200;
}

.overs {
    font-size: 11px;
    opacity: 0.85;
    margin-left: 4px;
}

.result-bar {
    margin: 0 18px 0;
    padding: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.match-date {
    text-align: center;
    padding: 8px 0 14px;
    font-size: 12px;
    opacity: 0.9;
}

.match-updated {
    padding-top: 0 !important;
}
