/* Scope absolutely everything cleanly to avoid style conflicts on host platforms */
.du-world-cup-2026-live-match-embed {
    width: 100%;
    box-sizing: border-box;
}

.du-world-cup-2026-live-match-embed * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.du-world-cup-2026-live-match-embed .du-widget-wrapper {
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
}

.du-world-cup-2026-live-match-embed .embed-header { text-align: center; padding: 20px 15px 4px 15px; }
.du-world-cup-2026-live-match-embed .comp-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.du-world-cup-2026-live-match-embed .comp-sub { font-size: 11px; color: #64748b; margin-top: 2px; text-transform: capitalize; }
.du-world-cup-2026-live-match-embed .match-meta { display: flex; justify-content: center; gap: 15px; font-size: 11px; color: #64748b; margin-top: 8px; }

.du-world-cup-2026-live-match-embed .scoreboard { display: flex; align-items: flex-start; justify-content: space-between; padding: 15px 25px; }
.du-world-cup-2026-live-match-embed .team { display: flex; flex-direction: column; align-items: center; width: 35%; text-align: center; }
.du-world-cup-2026-live-match-embed .flag { width: 44px; height: 28px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 8px; }
.du-world-cup-2026-live-match-embed .team-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #0f172a; }
.du-world-cup-2026-live-match-embed .scorers-list { font-size: 11px; color: #64748b; line-height: 1.4; white-space: pre-line; }

.du-world-cup-2026-live-match-embed .score-center { display: flex; flex-direction: column; align-items: center; width: 30%; margin-top: 5px; }
.du-world-cup-2026-live-match-embed .halftime-score { font-size: 12px; color: #64748b; margin-bottom: 2px; font-weight: 500; display: none;}
.du-world-cup-2026-live-match-embed .score-display { font-size: 40px; font-weight: 800; display: flex; align-items: center; gap: 12px; color: #090d16; }
.du-world-cup-2026-live-match-embed .score-divider { color: #cbd5e1; font-weight: 300; }

.du-world-cup-2026-live-match-embed .live-status { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #ff4d6d; margin-top: 4px; }
.du-world-cup-2026-live-match-embed .live-dot { width: 6px; height: 6px; background-color: #ff4d6d; border-radius: 50%; }
.du-world-cup-2026-live-match-embed .pulse-animation { animation: duPulse 1.5s infinite; }

.du-world-cup-2026-live-match-embed .tabs { display: flex; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; background: #ffffff; }
.du-world-cup-2026-live-match-embed .tab { padding: 12px 20px; font-size: 12px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; flex-grow: 1; text-align: center; }
.du-world-cup-2026-live-match-embed .tab.active { color: #1e40af; border-bottom-color: #1e40af; }

.du-world-cup-2026-live-match-embed .panel-content { padding: 24px; font-size: 13px; min-height: 120px; color: #0f172a; }
.du-world-cup-2026-live-match-embed .status-notice { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 15px 10px; color: #64748b; }
.du-world-cup-2026-live-match-embed .status-notice .icon { font-size: 20px; margin-bottom: 6px; opacity: 0.7; }
.du-world-cup-2026-live-match-embed .status-notice .title { font-weight: 600; color: #0f172a; margin-bottom: 2px; }
.du-world-cup-2026-live-match-embed .status-notice .desc { font-size: 12px; max-width: 280px; line-height: 1.5; }

.du-world-cup-2026-live-match-embed .stats-table { width: 100%; border-collapse: collapse; }
.du-world-cup-2026-live-match-embed .stats-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.du-world-cup-2026-live-match-embed .stats-val { font-weight: 700; width: 40px; text-align: center; font-size: 14px; }
.du-world-cup-2026-live-match-embed .stats-label { flex-grow: 1; text-align: center; color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.du-world-cup-2026-live-match-embed .lineup-grid { display: flex; justify-content: space-between; gap: 20px; }
.du-world-cup-2026-live-match-embed .lineup-col { width: 50%; }
.du-world-cup-2026-live-match-embed .lineup-team-title { font-weight: 700; font-size: 12px; text-transform: uppercase; color: #64748b; margin-bottom: 10px; padding-bottom: 4px; border-bottom: 2px solid #e2e8f0; }
.du-world-cup-2026-live-match-embed .player-row { padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #f1f5f9; display: flex; justify-content: space-between; }
.du-world-cup-2026-live-match-embed .player-num { color: #64748b; font-weight: 600; margin-right: 6px; width: 20px; display: inline-block; }

.du-world-cup-2026-live-match-embed .timeline { display: flex; flex-direction: column; gap: 12px; }
.du-world-cup-2026-live-match-embed .timeline-item { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.du-world-cup-2026-live-match-embed .time-badge { background: #e2e8f0; color: #0f172a; font-weight: 700; padding: 2px 6px; border-radius: 4px; font-size: 11px; flex-shrink: 0; }
.du-world-cup-2026-live-match-embed .event-detail { font-size: 13px; line-height: 1.4; }

@keyframes duPulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* =========================================================================
   DYNAMIC RESPONSIVE MOBILE VIEWPORT OVERRIDES
   ========================================================================= */
@media (max-width: 520px) {
    /* 1. Scoreboard Header: Safely drop the score section below the place names */
    .du-world-cup-2026-live-match-embed .scoreboard {
        flex-wrap: wrap;
        padding: 15px;
        gap: 5px;
    }
    .du-world-cup-2026-live-match-embed .team {
        width: 48%;
    }
    .du-world-cup-2026-live-match-embed .score-center {
        width: 100%;
        order: 3; /* Forces score row onto baseline row 2 */
        margin-top: 12px;
        border-top: 1px dashed #f1f5f9;
        padding-top: 10px;
    }
    
    /* 2. Navigation Tabs: Enable native mobile swiping and lock word-wrapping */
    .du-world-cup-2026-live-match-embed .tabs {
/*        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        scrollbar-width: none; /* Disables scrollbars on Firefox */*/

        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        scrollbar-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        
    }
    .du-world-cup-2026-live-match-embed .tabs::-webkit-scrollbar {
        display: none; /* Disables scrollbars on Chrome, Safari, and mobile WebKit */
    }
    .du-world-cup-2026-live-match-embed .tab {
        flex: 0 0 auto;
        padding: 12px 22px;
    }
    
    /* 3. Lineup System: Stack columns vertically to provide safe margin space */
    .du-world-cup-2026-live-match-embed .lineup-grid {
        flex-direction: column;
        gap: 30px;
    }
    .du-world-cup-2026-live-match-embed .lineup-col {
        width: 100%;
    }
}