/**
 * OddsEkspert V2 - Match Detail Page Styles
 */

/* =====================================================
   ROOT CONTAINER
   ===================================================== */

.oe-match-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.oe-match-page__container {
    max-width: 1140px;
    margin: 40px auto;
}

/* =====================================================
   DEBUG PANEL (Admin Only)
   ===================================================== */

.oe-match-page__debug {
    background: #fff3cd;
    border: 1px solid var(--oe-color-warning);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 12px;
}

.oe-match-page__debug-title {
    color: #856404;
    font-weight: bold;
    margin-bottom: 10px;
}

.oe-match-page__debug-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.oe-match-page__debug-table td {
    padding: 4px 10px 4px 0;
}

.oe-match-page__debug-table td:first-child {
    color: var(--oe-color-text);
    white-space: nowrap;
}

.oe-match-page__debug-table td:last-child {
    font-weight: bold;
}

/* =====================================================
   MATCH HEADER
   ===================================================== */

.oe-match-page__header {
    background: linear-gradient(135deg, #f8fffe 0%, #eef7f2 40%, #f5f7fa 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--oe-color-primary-a8);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.oe-match-page__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--oe-color-primary) 0%, var(--oe-color-primary-lighter) 50%, var(--oe-color-secondary) 100%);
}

/* League Bar */
.oe-match-page__league {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.oe-match-page__league:hover {
    background-color: var(--oe-color-primary-a8);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.oe-match-page__league:focus-visible {
    outline: 2px solid var(--oe-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--oe-color-focus-ring);
}

.oe-match-page__league:hover .oe-match-page__league-name {
    color: var(--oe-color-primary);
}

.oe-match-page__league-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.oe-match-page__league-name {
    color: var(--oe-color-text);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Header Teams Layout */
.oe-match-page__header-teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

/* Logos Row */
.oe-match-page__header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.oe-match-page__header-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-match-page__header-team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.oe-match-page__header-logo-wrapper:hover .oe-match-page__header-team-logo {
    transform: scale(1.05);
}

/* Score / VS in Center */
.oe-match-page__score-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--oe-color-text-dark);
    letter-spacing: 2px;
}

.oe-match-page__score-value--live {
    color: var(--oe-color-error);
}

.oe-match-page__live-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--oe-color-error);
    margin-top: 4px;
}

.oe-match-page__live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--oe-color-error);
    border-radius: 50%;
    animation: oe-match-live-pulse 1.5s ease-in-out infinite;
}

@keyframes oe-match-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.oe-match-page__score-aggregate {
    font-size: 13px;
    font-weight: 600;
    color: var(--oe-color-text-muted);
    letter-spacing: 1px;
    margin-top: -2px;
}

.oe-match-page__vs {
    font-size: 24px;
    font-weight: 600;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
}

/* Team Names Row */
.oe-match-page__header-names {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

.oe-match-page__header-team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.oe-match-page__header-team-info--home {
    align-items: flex-start;
    text-align: left;
}

.oe-match-page__header-team-info--away {
    align-items: flex-end;
    text-align: right;
}

.oe-match-page__header-team-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
}

a.oe-match-page__header-team-link {
    text-decoration: none;
    color: inherit;
}

a.oe-match-page__header-team-link:hover {
    text-decoration: underline;
}

a.oe-match-page__header-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-match-page__header-team-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Indicators Row */
.oe-match-page__header-forms {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

.oe-match-page__header-form {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.oe-match-page__header-form--home {
    justify-content: flex-end;
}

.oe-match-page__header-form--away {
    justify-content: flex-start;
}

/* Header Info (Time, Venue) */
.oe-match-page__header-info {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding-bottom: 15px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--oe-color-border);
}

.oe-match-page__header-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--oe-color-text);
}

.oe-match-page__header-info-icon {
    font-size: 16px;
}

/* =====================================================
   TIE CONTEXT BANNER (Knockout return legs)
   ===================================================== */

.oe-match-page__tie-context {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--oe-color-bg);
    border: 1px solid var(--oe-color-border);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--oe-color-text);
}

.oe-match-page__tie-context-leg {
    font-weight: 700;
    color: var(--oe-color-primary);
    white-space: nowrap;
    padding-right: 12px;
    border-right: 2px solid var(--oe-color-border);
}

.oe-match-page__tie-context-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    flex: 1;
}

.oe-match-page__tie-context-other,
.oe-match-page__tie-context-aggregate {
    display: flex;
    align-items: center;
    gap: 6px;
}

.oe-match-page__tie-context-other-label,
.oe-match-page__tie-context-aggregate-label {
    font-weight: 600;
    color: var(--oe-color-text-light);
    white-space: nowrap;
}

.oe-match-page__tie-context-link {
    color: var(--oe-color-primary);
    text-decoration: none;
    font-weight: 500;
}

.oe-match-page__tie-context-link:hover {
    text-decoration: underline;
}

.oe-match-page__tie-context-aggregate {
    font-weight: 600;
    color: var(--oe-color-text-dark);
}

/* =====================================================
   KICKOFF TIME (Between Logos - Upcoming Matches)
   ===================================================== */

.oe-match-page__kickoff-time {
    font-size: 32px;
    font-weight: 700;
    color: var(--oe-color-text-dark);
    line-height: 1.1;
    letter-spacing: 1px;
}

.oe-match-page__kickoff-date {
    font-size: 12px;
    font-weight: 500;
    color: var(--oe-color-text-light);
    line-height: 1.3;
    margin-top: 2px;
}

/* =====================================================
   CENTER (Between Logos - Score / VS / Time)
   ===================================================== */

.oe-match-page__header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0 10px;
}

/* =====================================================
   BOTTOM BAR (Odds + Predictions)
   ===================================================== */

.oe-match-page__header-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--oe-color-primary-a10);
}

.oe-match-page__bottom-odds {
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-match-page__bottom-odds-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.oe-match-page__bottom-odds-logo {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.oe-match-page__bottom-odds-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--oe-color-text);
    text-decoration: none;
}

.oe-match-page__bottom-1x2 {
    display: flex;
    gap: 4px;
}

.oe-match-page__bottom-odds-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    background: var(--oe-color-primary);
    border-radius: 6px;
    min-width: 44px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.oe-match-page__bottom-odds-item:hover {
    background: var(--oe-color-primary-dark);
    transform: translateY(-1px);
}

.oe-match-page__bottom-odds-item:focus-visible {
    outline: 2px solid var(--oe-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--oe-color-focus-ring);
}

.oe-match-page__bottom-odds-key {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.oe-match-page__bottom-odds-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--oe-color-white);
    line-height: 1.2;
}

.oe-match-page__bottom-predictions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oe-match-page__bottom-pred-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    background: var(--oe-color-bg);
    border-radius: 6px;
    min-width: 44px;
}

.oe-match-page__bottom-pred-item .oe-match-page__bottom-odds-key {
    color: var(--oe-color-text-light);
}

.oe-match-page__bottom-pred-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--oe-color-text-dark);
    line-height: 1.2;
}

/* =====================================================
   FORM INDICATORS & TOOLTIPS
   ===================================================== */

.oe-match-page__form-indicator {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.oe-match-page__form-indicator:hover {
    transform: scale(1.15);
    z-index: 10;
}

.oe-match-page__form-indicator--win {
    background: linear-gradient(135deg, var(--oe-color-success) 0%, var(--oe-color-primary-dark) 100%);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.oe-match-page__form-indicator--draw {
    background: linear-gradient(135deg, var(--oe-color-text-light) 0%, #5a6268 100%);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.oe-match-page__form-indicator--loss {
    background: linear-gradient(135deg, var(--oe-color-error) 0%, #c82333 100%);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.oe-match-page__form-letter {
    color: var(--oe-color-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Form Tooltip */
.oe-match-page__form-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--oe-color-white);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 14px 20px;
    min-width: 280px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.oe-match-page__form-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--oe-color-white);
}

.oe-match-page__form-indicator:hover .oe-match-page__form-tooltip,
.oe-match-page__form-indicator:focus-within .oe-match-page__form-tooltip {
    opacity: 1;
    visibility: visible;
}

.oe-match-page__form-indicator:focus-visible {
    outline: 2px solid var(--oe-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--oe-color-focus-ring);
}

.oe-match-page__form-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--oe-color-border);
}

.oe-match-page__form-tooltip-result {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--oe-color-white);
}

.oe-match-page__form-tooltip-result--win {
    background: var(--oe-color-success);
}

.oe-match-page__form-tooltip-result--draw {
    background: var(--oe-color-text-light);
}

.oe-match-page__form-tooltip-result--loss {
    background: var(--oe-color-error);
}

.oe-match-page__form-tooltip-date {
    font-size: 11px;
    color: var(--oe-color-text-light);
}

.oe-match-page__form-tooltip-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.oe-match-page__form-tooltip-team {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--oe-color-text-dark);
}

.oe-match-page__form-tooltip-team--home {
    justify-content: flex-end;
}

.oe-match-page__form-tooltip-team--away {
    justify-content: flex-start;
}

.oe-match-page__form-tooltip-teamname {
    white-space: nowrap;
}

.oe-match-page__form-tooltip-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.oe-match-page__form-tooltip-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 50px;
}

.oe-match-page__form-tooltip-vs {
    font-size: 9px;
    color: var(--oe-color-text-light);
    font-weight: 400;
    text-transform: uppercase;
}

.oe-match-page__form-tooltip-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--oe-color-primary);
    white-space: nowrap;
}

/* Tooltip edge positioning */
.oe-match-page__header-form--home .oe-match-page__form-indicator:first-child .oe-match-page__form-tooltip {
    left: 0;
    transform: translateX(0);
}

.oe-match-page__header-form--home .oe-match-page__form-indicator:first-child .oe-match-page__form-tooltip::after {
    left: 12px;
    transform: none;
}

.oe-match-page__header-form--away .oe-match-page__form-indicator:last-child .oe-match-page__form-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.oe-match-page__header-form--away .oe-match-page__form-indicator:last-child .oe-match-page__form-tooltip::after {
    left: auto;
    right: 12px;
    transform: none;
}

/* Touch devices: JS-toggled visibility */
.oe-form-tooltip--visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* =====================================================
   TAB NAVIGATION
   ===================================================== */

.oe-match-page__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--oe-color-white);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.oe-match-page__tab {
    padding: 10px 16px;
    background: var(--oe-color-bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--oe-color-text);
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.oe-match-page__tab:hover {
    background: var(--oe-color-bg-alt);
    color: var(--oe-color-text-dark);
}

.oe-match-page__tab.active {
    background: var(--oe-color-primary);
    color: var(--oe-color-white);
}

.oe-match-page__tab:focus-visible {
    outline: 2px solid var(--oe-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--oe-color-focus-ring);
}

.oe-match-page__tab-icon {
    margin-right: 4px;
}

/* =====================================================
   TAB CONTENT
   ===================================================== */

.oe-match-page__tab-content {
    background: var(--oe-color-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 200px;
}

.oe-match-page__tab-panel {
    display: none;
}

.oe-match-page__tab-panel.active {
    display: block;
    animation: oe-fadeIn 0.2s ease;
}

@keyframes oe-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.oe-match-page__no-data {
    color: var(--oe-color-text);
    font-style: italic;
}

/* =====================================================
   AI PREVIEW
   ===================================================== */

.oe-match-page__ai-preview-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--oe-color-text-dark);
    padding-top: 5px;
}

.oe-match-page__ai-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--oe-color-white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.oe-match-page__ai-preview-content .oe-match-page__ai-preview-badge {
    display: flex;
    width: fit-content;
}

.oe-match-page__ai-preview-placeholder {
    background: var(--oe-color-bg);
    border: 2px dashed var(--oe-color-border);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    color: var(--oe-color-text-light);
}

.oe-match-page__ai-preview-placeholder-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.oe-match-page__ai-preview-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--oe-color-text-light);
}

/* =====================================================
   EXPERT TIPS SECTION
   ===================================================== */

.oe-match-page__expert-tips-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--oe-color-border);
}

.oe-match-page__expert-tips-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--oe-color-text-dark);
}

.oe-match-page__expert-tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oe-match-page__expert-tip-card {
    border: 1px solid var(--oe-color-border);
    border-radius: 8px;
    overflow: hidden;
}

.oe-match-page__expert-tip-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--oe-color-white);
}

.oe-match-page__expert-tip-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-match-page__expert-tip-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.oe-match-page__expert-tip-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oe-match-page__expert-tip-author {
    font-size: 11px;
    font-weight: 600;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

a.oe-match-page__expert-tip-author:hover {
    color: var(--oe-color-primary);
}

.oe-match-page__expert-tip-bet-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
}

.oe-match-page__expert-tip-bet-value strong {
    color: var(--oe-color-primary-lighter);
}

.oe-match-page__expert-tip-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--oe-color-text-light);
}

.oe-match-page__expert-tip-meta > span + span::before {
    content: "·";
    margin-right: 6px;
    color: var(--oe-color-text-muted);
    font-weight: 700;
}

.oe-match-page__expert-tip-meta strong {
    color: var(--oe-color-primary-lighter);
}

.oe-match-page__expert-tip-cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.oe-match-page__expert-tip-button {
    display: inline-block;
    padding: 8px 18px;
    background: var(--oe-color-primary);
    color: var(--oe-color-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s;
}

.oe-match-page__expert-tip-button:hover,
.oe-match-page__expert-tip-button:focus,
.oe-match-page__expert-tip-button:visited {
    background: var(--oe-color-primary-dark);
    color: var(--oe-color-white);
}

.oe-match-page__expert-tip-analysis-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--oe-color-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.oe-match-page__expert-tip-analysis-link:hover {
    color: var(--oe-color-primary-dark);
    text-decoration: underline;
}

/* =====================================================
   USER TIPS SECTION
   ===================================================== */

.oe-match-page__user-tips-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--oe-color-border);
}

.oe-match-page__user-tips-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--oe-color-text);
}

.oe-match-page__user-tips-heading span {
    font-size: 18px;
}

.oe-match-page__user-tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oe-match-page__user-tip-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--oe-color-bg);
    border-radius: 8px;
    border-left: 3px solid var(--oe-color-text-light);
}

.oe-match-page__user-tip-avatar {
    flex-shrink: 0;
}

.oe-match-page__user-tip-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.oe-match-page__user-tip-content {
    flex: 1;
    min-width: 0;
}

.oe-match-page__user-tip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.oe-match-page__user-tip-author {
    font-weight: 500;
    color: var(--oe-color-text-light);
}

.oe-match-page__user-tip-date {
    font-size: 12px;
    color: var(--oe-color-text-muted);
}

.oe-match-page__user-tip-bet {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: var(--oe-color-bg);
    border-radius: 5px;
    border-left: 2px solid var(--oe-color-text-light);
}

.oe-match-page__user-tip-bet-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.oe-match-page__user-tip-bet-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text);
}

.oe-match-page__user-tip-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.oe-match-page__user-tip-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.oe-match-page__user-tip-stat-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--oe-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oe-match-page__user-tip-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--oe-color-text);
}

.oe-match-page__user-tip-stat-value--odds {
    color: var(--oe-color-primary-lighter);
}

.oe-match-page__user-tip-types {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.oe-match-page__user-tip-type {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--oe-color-text);
    background: var(--oe-color-border);
    border-radius: 3px;
}

.oe-match-page__user-tip-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: var(--oe-color-primary-lighter);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.oe-match-page__user-tip-cta:hover {
    background: var(--oe-color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* =====================================================
   MATCH PROMOTIONS
   ===================================================== */

.oe-match-page__promotions-section {
    margin-top: 24px;
}

.oe-match-page__promotions-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
    margin: 0 0 12px;
}

.oe-match-page__promotions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oe-match-page__promotion-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--oe-color-white);
    border: 1px solid var(--oe-color-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.oe-match-page__promotion-card:hover {
    border-color: var(--oe-color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.oe-match-page__promotion-card:focus-visible {
    outline: 2px solid var(--oe-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--oe-color-focus-ring);
}

.oe-match-page__promotion-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-match-page__promotion-logo img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.oe-match-page__promotion-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oe-match-page__promotion-provider {
    font-size: 11px;
    font-weight: 600;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oe-match-page__promotion-headline {
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
}

.oe-match-page__promotion-description {
    font-size: 13px;
    color: var(--oe-color-text-light);
}

.oe-match-page__promotion-cta {
    flex-shrink: 0;
}

.oe-match-page__promotion-button {
    display: inline-block;
    padding: 8px 18px;
    background: var(--oe-color-primary);
    color: var(--oe-color-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s;
}

.oe-match-page__promotion-card:hover .oe-match-page__promotion-button {
    background: var(--oe-color-primary-dark);
}

.oe-match-page__promotion-terms {
    font-size: 11px;
    color: var(--oe-color-text-muted);
    line-height: 1.4;
    padding: 0 16px;
}

.oe-match-page__promotion-terms a {
    color: var(--oe-color-primary);
}

/* =====================================================
   LINKED ARTICLES
   ===================================================== */

.oe-match-page__linked-articles-section {
    margin-top: 24px;
}

.oe-match-page__linked-articles-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
    margin: 0 0 12px;
}

.oe-match-page__linked-articles-heading span {
    font-size: 20px;
}

/* Linked Posts (shared component for articles & campaigns) */
.oe-linked-posts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oe-linked-post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--oe-color-white);
    border: 1px solid var(--oe-color-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.oe-linked-post:hover {
    border-color: var(--oe-color-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.oe-linked-post:focus-visible {
    outline: 2px solid var(--oe-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--oe-color-focus-ring);
}

.oe-linked-post__content {
    flex: 1;
    min-width: 0;
}

.oe-linked-post__title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oe-linked-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--oe-color-text-light);
}

.oe-linked-post__author {
    font-weight: 500;
}

.oe-linked-post__separator {
    color: var(--oe-color-border);
}

.oe-linked-post__match {
    font-style: italic;
}

.oe-linked-post__arrow {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--oe-color-text-light);
    transition: transform 0.2s ease, color 0.2s ease;
}

.oe-linked-post:hover .oe-linked-post__arrow {
    color: var(--oe-color-primary);
    transform: translateX(3px);
}

/* =====================================================
   SHARED PROMOTION CARDS
   ===================================================== */

.oe-promo-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oe-promo-card__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--oe-color-white);
    border: 1px solid var(--oe-color-border);
    border-radius: 8px;
}

.oe-promo-card__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-promo-card__logo img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.oe-promo-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oe-promo-card__provider {
    font-size: 11px;
    font-weight: 600;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oe-promo-card__headline {
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
}

.oe-promo-card__description {
    font-size: 13px;
    color: var(--oe-color-text-light);
}

.oe-promo-card__cta {
    flex-shrink: 0;
}

.oe-promo-card__button {
    display: inline-block;
    padding: 8px 18px;
    background: var(--oe-color-primary);
    color: var(--oe-color-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s;
}

.oe-promo-card__button:hover,
.oe-promo-card__button:focus,
.oe-promo-card__button:visited {
    background: var(--oe-color-primary-dark);
    color: var(--oe-color-white);
}

.oe-promo-card__terms {
    font-size: 11px;
    color: var(--oe-color-text-muted);
    line-height: 1.4;
    padding: 4px 16px 0;
}

.oe-promo-card__terms a {
    color: var(--oe-color-primary);
}

/* =====================================================
   ODDS TAB
   ===================================================== */

/* Odds Market Sub-tabs */
.oe-match-page__odds-markets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--oe-color-border);
}

.oe-match-page__odds-market-tab {
    padding: 8px 16px;
    background: var(--oe-color-bg-alt);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--oe-color-text);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.oe-match-page__odds-market-tab:hover {
    background: var(--oe-color-border);
    color: var(--oe-color-text-dark);
}

.oe-match-page__odds-market-tab.active {
    background: var(--oe-color-primary);
    border-color: var(--oe-color-primary);
    color: var(--oe-color-white);
}

.oe-match-page__odds-market-tab:focus-visible {
    outline: 2px solid var(--oe-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--oe-color-focus-ring);
}

/* Odds Panels */
.oe-match-page__odds-panels {
    min-height: 100px;
}

.oe-match-page__odds-panel {
    display: none;
}

.oe-match-page__odds-panel.active {
    display: block;
    animation: oe-fadeIn 0.2s ease;
}

/* Odds Table */
.oe-match-page__odds-table {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.oe-match-page__odds-table th:not(:first-child),
.oe-match-page__odds-table td:not(:first-child) {
    text-align: center !important;
    width: 80px !important;
}

.oe-match-page__odds-table td:first-child {
    font-weight: 600 !important;
    color: var(--oe-color-text-dark) !important;
}

.oe-match-page__odds-table td:not(:first-child) {
    font-weight: 700 !important;
    color: var(--oe-color-primary) !important;
    font-size: 15px !important;
}

/* Attribution */
.oe-match-page__odds-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--oe-color-border);
    font-size: 12px;
    color: var(--oe-color-text);
}

.oe-match-page__odds-attribution-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* =====================================================
   STANDINGS TAB
   ===================================================== */

.oe-match-page__standings-table {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.oe-match-page__standings-table th:first-child,
.oe-match-page__standings-table td:first-child {
    text-align: center !important;
    width: 40px !important;
    font-weight: 700 !important;
}

.oe-match-page__standings-table td:last-child {
    text-align: center !important;
    font-weight: 700 !important;
    color: var(--oe-color-primary) !important;
    font-size: 15px !important;
}

/* Highlighted row for teams in the match */
.oe-match-page table tbody tr.oe-match-page__standings-row--highlight,
.oe-match-page table tbody tr.oe-match-page__standings-row--highlight:nth-child(odd),
.oe-match-page table tbody tr.oe-match-page__standings-row--highlight:nth-child(even),
.oe-match-page__tab-panel table tbody tr.oe-match-page__standings-row--highlight,
.oe-match-page__tab-panel table tbody tr.oe-match-page__standings-row--highlight:nth-child(odd),
.oe-match-page__tab-panel table tbody tr.oe-match-page__standings-row--highlight:nth-child(even),
.oe-match-page__standings-table tbody tr.oe-match-page__standings-row--highlight,
.oe-match-page__standings-table tbody tr.oe-match-page__standings-row--highlight:nth-child(odd),
.oe-match-page__standings-table tbody tr.oe-match-page__standings-row--highlight:nth-child(even) {
    background: linear-gradient(90deg, #fff8e1 0%, #fffdf5 100%) !important;
    border-left: 4px solid var(--oe-color-warning) !important;
}

.oe-match-page table tbody tr.oe-match-page__standings-row--highlight:hover,
.oe-match-page__tab-panel table tbody tr.oe-match-page__standings-row--highlight:hover,
.oe-match-page__standings-table tbody tr.oe-match-page__standings-row--highlight:hover {
    background: linear-gradient(90deg, #fff3cd 0%, #fffbeb 100%) !important;
}

.oe-match-page table tbody tr.oe-match-page__standings-row--highlight td,
.oe-match-page__tab-panel table tbody tr.oe-match-page__standings-row--highlight td,
.oe-match-page__standings-table tbody tr.oe-match-page__standings-row--highlight td {
    font-weight: 600 !important;
    color: var(--oe-color-text-dark) !important;
}

.oe-match-page__standings-team-logo {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    border-radius: 2px !important;
}

/* Standings Legend */
.oe-match-page__standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--oe-color-bg);
    border-radius: 6px;
    font-size: 13px;
    color: var(--oe-color-text);
}

.oe-match-page__standings-legend-item {
    white-space: nowrap;
}

.oe-match-page__standings-legend-item strong {
    color: var(--oe-color-text-dark);
    font-weight: 700;
}

/* =====================================================
   H2H & FORM TAB
   ===================================================== */

.oe-match-page__h2h-section {
    margin-bottom: 30px;
}

.oe-match-page__form-section {
    padding-top: 20px;
    border-top: 1px solid var(--oe-color-border);
}

.oe-match-page__section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oe-match-page__h2h-table {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Result column centered and bold */
.oe-match-page__h2h-table td:nth-child(3) {
    text-align: center !important;
    font-weight: 700 !important;
    color: var(--oe-color-primary) !important;
    font-size: 15px !important;
}

/* Form Display */
.oe-match-page__form-display {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.oe-match-page__form-team {
    flex: 1;
    min-width: 300px;
}

.oe-match-page__form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.oe-match-page__form-team-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
}

.oe-match-page__form-team h3 {
    margin: 0;
    font-size: 15px;
}

.oe-match-page__form-string {
    display: flex;
    gap: 4px;
}

.oe-match-page__form-char--win,
.oe-match-page__form-char--draw,
.oe-match-page__form-char--loss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: var(--oe-color-white);
}

.oe-match-page__form-char--win {
    background: var(--oe-color-success);
}

.oe-match-page__form-char--draw {
    background: var(--oe-color-warning);
}

.oe-match-page__form-char--loss {
    background: var(--oe-color-error);
}

.oe-match-page__form-table {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    font-size: 13px !important;
}

/* Score column */
.oe-match-page__form-table td:last-child {
    font-weight: 700 !important;
    text-align: center !important;
}

/* =====================================================
   LINEUP TAB — PITCH VISUALIZATION
   ===================================================== */

.oe-lineup-pitch {
    margin: 0 auto;
    max-width: 800px;
}

.oe-lineup-pitch__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    font-size: 14px;
    font-weight: 600;
}

.oe-lineup-pitch__team--home {
    color: var(--oe-color-primary);
}

.oe-lineup-pitch__team--away {
    color: #8b1a1a;
}

.oe-lineup-pitch__field {
    position: relative;
    width: 100%;
    aspect-ratio: 1050 / 680;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.oe-lineup-pitch__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Player marker */
.oe-lineup-pitch__player {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 48px;
}

.oe-lineup-pitch__player-circle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    background: var(--oe-color-primary);
}

.oe-lineup-pitch__player--away .oe-lineup-pitch__player-circle {
    background: #8b1a1a;
}

.oe-lineup-pitch__player-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Jersey number fallback (no photo) */
.oe-lineup-pitch__player-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

/* Small jersey badge overlay (shown when photo is present) */
.oe-lineup-pitch__player-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Surname label */
.oe-lineup-pitch__player-name {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* =====================================================
   TABLE STYLE OVERRIDES (WordPress / Elementor)
   ===================================================== */

.oe-match-page table:not(.oe-table),
.oe-match-page__tab-panel table:not(.oe-table),
.oe-match-page__tab-content table:not(.oe-table) {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    margin: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.oe-match-page table:not(.oe-table) thead,
.oe-match-page__tab-panel table:not(.oe-table) thead {
    background: linear-gradient(135deg, var(--oe-color-primary) 0%, var(--oe-color-primary-dark) 100%) !important;
}

.oe-match-page table:not(.oe-table) th,
.oe-match-page__tab-panel table:not(.oe-table) th {
    background: transparent !important;
    color: var(--oe-color-white) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 10px !important;
    text-align: left !important;
    border: none !important;
    white-space: nowrap !important;
}

.oe-match-page table:not(.oe-table) th:first-child,
.oe-match-page__tab-panel table:not(.oe-table) th:first-child {
    border-radius: 8px 0 0 0 !important;
}

.oe-match-page table:not(.oe-table) th:last-child,
.oe-match-page__tab-panel table:not(.oe-table) th:last-child {
    border-radius: 0 8px 0 0 !important;
}

.oe-match-page table:not(.oe-table) tbody,
.oe-match-page__tab-panel table:not(.oe-table) tbody {
    background: var(--oe-color-white) !important;
}

.oe-match-page table:not(.oe-table) td,
.oe-match-page__tab-panel table:not(.oe-table) td {
    padding: 12px 10px !important;
    border: none !important;
    border-bottom: 1px solid var(--oe-color-bg-alt) !important;
    color: var(--oe-color-text-dark) !important;
    background: transparent !important;
    vertical-align: middle !important;
}

.oe-match-page table:not(.oe-table) tbody tr,
.oe-match-page__tab-panel table:not(.oe-table) tbody tr {
    background: var(--oe-color-white) !important;
    transition: background-color 0.15s ease !important;
}

.oe-match-page table:not(.oe-table) tbody tr:hover,
.oe-match-page__tab-panel table:not(.oe-table) tbody tr:hover {
    background: var(--oe-color-bg) !important;
}

.oe-match-page table:not(.oe-table) tbody tr:last-child td,
.oe-match-page__tab-panel table:not(.oe-table) tbody tr:last-child td {
    border-bottom: none !important;
}

.oe-match-page table:not(.oe-table) tbody tr:last-child td:first-child,
.oe-match-page__tab-panel table:not(.oe-table) tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px !important;
}

.oe-match-page table:not(.oe-table) tbody tr:last-child td:last-child,
.oe-match-page__tab-panel table:not(.oe-table) tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0 !important;
}

/* Alternating row colors */
.oe-match-page table:not(.oe-table) tbody tr:nth-child(even),
.oe-match-page__tab-panel table:not(.oe-table) tbody tr:nth-child(even) {
    background: var(--oe-color-bg) !important;
}

.oe-match-page table:not(.oe-table) tbody tr:nth-child(even):hover,
.oe-match-page__tab-panel table:not(.oe-table) tbody tr:nth-child(even):hover {
    background: var(--oe-color-bg-alt) !important;
}

/* =====================================================
   LIVE / KAMP TAB
   ===================================================== */

/* Live tab modifier */
.oe-match-page__tab--live {
    background: rgba(220, 53, 69, 0.08);
    color: var(--oe-color-error);
}

.oe-match-page__tab--live:hover {
    background: rgba(220, 53, 69, 0.15);
}

.oe-match-page__tab--live.active {
    background: var(--oe-color-error);
    color: var(--oe-color-white);
}

/* Pulsing live dot */
.oe-match-page__tab-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    animation: oe-match-live-pulse 1.5s ease-in-out infinite;
}

.oe-match-page__tab--live.active .oe-match-page__tab-live-dot {
    background: var(--oe-color-white);
}

/* Section headers inside panel */
.oe-match-page__live-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--oe-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--oe-color-border);
    margin: 24px 0 12px 0;
}

.oe-match-page__live-section-title:first-child {
    margin-top: 0;
}

/* --- Score by Period --- */

.oe-match-page__period-scores {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.oe-match-page__period-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--oe-color-border-light, var(--oe-color-border));
}

.oe-match-page__period-row:last-child {
    border-bottom: none;
    font-weight: 700;
}

.oe-match-page__period-label {
    text-align: center;
    color: var(--oe-color-text-muted);
    font-size: 13px;
    padding: 0 16px;
}

.oe-match-page__period-score {
    font-weight: 600;
    font-size: 16px;
    color: var(--oe-color-text-dark);
}

.oe-match-page__period-score:first-child {
    text-align: right;
}

.oe-match-page__period-score:last-child {
    text-align: left;
}

/* --- Events Timeline --- */

.oe-match-page__events {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.oe-match-page__event {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--oe-color-border-light, var(--oe-color-border));
}

.oe-match-page__event:last-child {
    border-bottom: none;
}

.oe-match-page__event-minute {
    width: 44px;
    min-width: 44px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--oe-color-text-muted);
    padding-top: 2px;
}

.oe-match-page__event-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
}

.oe-match-page__event-icon--goal { background: rgba(40, 167, 69, 0.12); }
.oe-match-page__event-icon--own-goal { background: rgba(220, 53, 69, 0.12); }
.oe-match-page__event-icon--missed { background: rgba(108, 117, 125, 0.1); }
.oe-match-page__event-icon--sub { background: rgba(108, 117, 125, 0.1); }
.oe-match-page__event-icon--yellow { background: rgba(255, 193, 7, 0.15); }
.oe-match-page__event-icon--red { background: rgba(220, 53, 69, 0.12); }
.oe-match-page__event-icon--var { background: rgba(108, 117, 125, 0.08); }
.oe-match-page__event-icon--default { background: rgba(108, 117, 125, 0.08); }

.oe-match-page__event-info {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--oe-color-text-dark);
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.oe-match-page__event-info strong {
    font-weight: 600;
}

.oe-match-page__event-sub-in {
    font-weight: 600;
    color: var(--oe-color-success, #28a745);
    font-size: 13px;
}

.oe-match-page__event-sub-out {
    color: var(--oe-color-text-muted);
    font-size: 13px;
}

.oe-match-page__event-score-badge {
    display: inline-block;
    background: var(--oe-color-primary);
    color: var(--oe-color-white);
    font-size: 12px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    line-height: 1.4;
}

.oe-match-page__event-detail {
    color: var(--oe-color-text-muted);
    font-size: 13px;
}

/* Away events: push content to the right */
.oe-match-page__event--away {
    flex-direction: row-reverse;
    text-align: right;
}

.oe-match-page__event--away .oe-match-page__event-minute {
    text-align: left;
}

.oe-match-page__event--away .oe-match-page__event-info {
    align-items: flex-end;
}

/* Period separator */
.oe-match-page__event-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--oe-color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oe-match-page__event-separator::before,
.oe-match-page__event-separator::after {
    content: '';
    flex: 1;
    border-top: 1px dashed var(--oe-color-border);
}

/* --- Match Statistics Bars --- */

.oe-match-page__stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oe-match-page__stat-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oe-match-page__stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oe-match-page__stat-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--oe-color-text);
    min-width: 40px;
}

.oe-match-page__stat-value:first-child {
    text-align: left;
}

.oe-match-page__stat-value:last-child {
    text-align: right;
}

.oe-match-page__stat-value--winner {
    font-weight: 700;
    color: var(--oe-color-text-dark);
}

.oe-match-page__stat-label {
    font-size: 13px;
    color: var(--oe-color-text-muted);
    text-align: center;
    flex: 1;
}

.oe-match-page__stat-bar-track {
    display: flex;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    gap: 2px;
}

.oe-match-page__stat-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.oe-match-page__stat-bar--home {
    border-radius: 3px 0 0 3px;
}

.oe-match-page__stat-bar--away {
    border-radius: 0 3px 3px 0;
}

.oe-match-page__stat-bar--winner {
    background: var(--oe-color-primary);
}

.oe-match-page__stat-bar--loser {
    background: var(--oe-color-bg-alt, #e9ecef);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .oe-match-page {
        padding: 0 15px;
    }

    .oe-match-page__container {
        margin: 20px auto;
    }

    .oe-match-page__header {
        padding: 16px;
    }

    /* Tabs scroll horizontally */
    .oe-match-page__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 8px 4px;
    }

    .oe-match-page__tabs::-webkit-scrollbar {
        display: none;
    }

    .oe-match-page__tab {
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .oe-match-page__tab-content {
        padding: 15px;
    }

    /* Live/Kamp tab responsive */
    .oe-match-page__event {
        gap: 6px;
        padding: 6px 0;
    }

    .oe-match-page__event-minute {
        width: 38px;
        min-width: 38px;
        font-size: 12px;
    }

    .oe-match-page__event-icon {
        width: 24px;
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .oe-match-page__event-info {
        font-size: 13px;
    }

    .oe-match-page__stat-value {
        font-size: 13px;
    }

    .oe-match-page__stat-label {
        font-size: 12px;
    }

    .oe-match-page__period-score {
        font-size: 14px;
    }

    .oe-match-page__period-label {
        font-size: 12px;
    }

    /* Table mobile */
    .oe-match-page__tab-panel {
        overflow-x: auto;
    }

    .oe-match-page table:not(.oe-table) th,
    .oe-match-page__tab-panel table:not(.oe-table) th {
        padding: 10px 8px !important;
        font-size: 11px !important;
    }

    .oe-match-page table:not(.oe-table) td,
    .oe-match-page__tab-panel table:not(.oe-table) td {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    .oe-match-page__standings-team-logo {
        width: 18px !important;
        height: 18px !important;
        margin-right: 6px !important;
    }

    /* Form stacking */
    .oe-match-page__form-display {
        flex-direction: column;
    }

    .oe-match-page__form-team {
        min-width: 100%;
    }

    /* Pitch lineup mobile scaling */
    .oe-lineup-pitch__player {
        width: 36px;
    }

    .oe-lineup-pitch__player-circle {
        width: 26px;
        height: 26px;
        border-width: 1.5px;
    }

    .oe-lineup-pitch__player-number {
        font-size: 11px;
    }

    .oe-lineup-pitch__player-badge {
        width: 13px;
        height: 13px;
        font-size: 7px;
        line-height: 13px;
    }

    .oe-lineup-pitch__player-name {
        font-size: 7px;
    }

    .oe-lineup-pitch__header {
        font-size: 12px;
    }

    .oe-match-page__expert-tip-row {
        flex-wrap: wrap;
    }

    .oe-match-page__expert-tip-cta {
        width: 100%;
    }

    .oe-match-page__expert-tip-button {
        display: block;
        text-align: center;
    }

    .oe-match-page__expert-tip-analysis-link {
        display: block;
        text-align: center;
    }

    .oe-match-page__header-info {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    /* User tips mobile */
    .oe-match-page__user-tip-card {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .oe-match-page__user-tip-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .oe-match-page__user-tip-bet {
        padding: 6px 8px;
    }

    .oe-match-page__user-tip-stats {
        gap: 10px;
    }

    .oe-match-page__user-tip-types {
        gap: 4px;
    }

    /* Linked posts mobile */
    .oe-linked-post {
        padding: 10px 12px;
    }

    .oe-linked-post__title {
        font-size: 13px;
    }

    .oe-linked-post__meta {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    /* Tie context */
    .oe-match-page__tie-context {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .oe-match-page__tie-context-leg {
        border-right: none;
        padding-right: 0;
        padding-bottom: 4px;
        border-bottom: 1px solid var(--oe-color-border);
        width: 100%;
    }

    .oe-match-page__header-teams {
        gap: 12px;
    }

    .oe-match-page__header-logos {
        gap: 16px;
    }

    .oe-match-page__header-team-logo {
        width: 60px;
        height: 60px;
    }

    .oe-match-page__score-value {
        font-size: 28px;
    }

    .oe-match-page__vs {
        font-size: 18px;
    }

    .oe-match-page__header-names {
        max-width: 100%;
        padding: 0 10px;
    }

    .oe-match-page__header-team-name {
        font-size: 15px;
    }

    .oe-match-page__header-team-label {
        font-size: 10px;
    }

    .oe-match-page__header-forms {
        max-width: 100%;
        padding: 0 10px;
    }

    .oe-match-page__header-form {
        gap: 3px;
        justify-content: center !important;
    }

    .oe-match-page__header-center {
        min-width: 100px;
        padding: 0 5px;
    }

    .oe-match-page__kickoff-time {
        font-size: 24px;
    }

    .oe-match-page__kickoff-date {
        font-size: 10px;
    }

    .oe-match-page__header-bottom {
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .oe-match-page__bottom-odds-item,
    .oe-match-page__bottom-pred-item {
        padding: 8px 7px;
        min-width: 38px;
    }

    .oe-match-page__bottom-odds-value,
    .oe-match-page__bottom-pred-pct {
        font-size: 11px;
    }

    .oe-match-page__bottom-odds-key {
        font-size: 9px;
    }

    .oe-match-page__bottom-odds-logo {
        height: 20px;
    }

    /* Form indicators — increased for 44px touch target */
    .oe-match-page__form-indicator {
        width: 28px;
        height: 28px;
    }

    .oe-match-page__form-letter {
        font-size: 10px;
    }

    /* Disable scale transform on indicators (breaks absolute tooltip positioning) */
    .oe-match-page__form-indicator:hover,
    .oe-match-page__form-indicator:active {
        transform: none;
    }

    /* Tooltip: absolute, JS sets left to center on screen */
    .oe-match-page__form-tooltip {
        width: calc(100vw - 32px);
        min-width: 0;
        padding: 10px 14px;
        font-size: 11px;
        white-space: normal;
    }

    /* Arrow: use CSS variable set by JS to point at the icon */
    .oe-match-page__form-tooltip::after {
        left: var(--oe-arrow-left, 50%);
        transform: none;
    }

    .oe-match-page__form-tooltip-matchup {
        gap: 6px;
    }

    .oe-match-page__form-tooltip-team {
        font-size: 10px;
    }

    .oe-match-page__form-tooltip-logo {
        width: 14px;
        height: 14px;
    }

    .oe-match-page__form-tooltip-center {
        min-width: 40px;
    }

    .oe-match-page__form-tooltip-score {
        font-size: 12px;
    }

    /* Reset edge-specific overrides — JS handles all positioning on mobile */
    .oe-match-page__header-form--home .oe-match-page__form-indicator:first-child .oe-match-page__form-tooltip,
    .oe-match-page__header-form--away .oe-match-page__form-indicator:last-child .oe-match-page__form-tooltip {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .oe-match-page__header-form--home .oe-match-page__form-indicator:first-child .oe-match-page__form-tooltip::after,
    .oe-match-page__header-form--away .oe-match-page__form-indicator:last-child .oe-match-page__form-tooltip::after {
        left: var(--oe-arrow-left, 50%);
        right: auto;
        transform: none;
    }

    /* Standings legend */
    .oe-match-page__standings-legend {
        gap: 8px 16px;
        font-size: 12px;
        padding: 10px 12px;
    }

    /* Promo cards */
    .oe-promo-card__row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .oe-promo-card__logo {
        width: 36px;
        height: 36px;
    }

    .oe-promo-card__logo img {
        max-width: 36px;
        max-height: 36px;
    }

    .oe-promo-card__cta {
        width: 100%;
    }

    .oe-promo-card__button {
        display: block;
        text-align: center;
        width: 100%;
    }

    .oe-match-page__promotion-card {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .oe-match-page__promotion-logo {
        width: 36px;
        height: 36px;
    }

    .oe-match-page__promotion-logo img {
        max-width: 36px;
        max-height: 36px;
    }

    .oe-match-page__promotion-cta {
        width: 100%;
    }

    .oe-match-page__promotion-button {
        display: block;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .oe-match-page__odds-markets {
        gap: 6px;
    }

    .oe-match-page__odds-market-tab {
        padding: 10px 12px;
        font-size: 12px;
        flex: 1;
        text-align: center;
        min-width: 70px;
    }
}

/* =====================================================
   REDUCED MOTION (Accessibility)
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .oe-match-page__tab-panel.active {
        animation: none;
    }

    .oe-match-page__tab-live-dot {
        animation: none;
    }

    .oe-match-page *,
    .oe-match-page *::before,
    .oe-match-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
