.oc-match-detail {
    --oc-md-primary: var(--oc-primary, #176b3a);
    --oc-md-border: #e5e7eb;
    --oc-md-muted: #6b7280;
    color: #18212b;
    max-width: 1100px;
    margin: 1px auto;
    font-size: 18px;
}

.oc-match-detail * {
    box-sizing: border-box;
}

.oc-md-back {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--oc-md-primary);
    font-weight: 700;
    text-decoration: none;
}

.oc-md-scoreboard {
    padding: 28px 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--oc-md-border);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .05);
}

.oc-md-competition {
    text-align: center;
    color: var(--oc-md-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}



.oc-md-team-placeholder {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--oc-md-primary);
    font-size: 32px;
    font-weight: 800;
}

.oc-md-team > strong {
    overflow-wrap: anywhere;
    font-size: 17px;
}

.oc-md-team-caption {
    color: var(--oc-md-muted);
    font-size: 12px;
}

.oc-md-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.oc-md-score > strong {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1;
    white-space: nowrap;
    font-weight: 900;
}

.oc-md-score > strong span {
    color: var(--oc-md-muted);
    padding: 0 4px;
}

.oc-md-score .oc-md-vs {
    font-size: 25px;
    color: var(--oc-md-muted);
}

.oc-md-status {
    border-radius: 30px;
    padding: 6px 12px;
    background: #edf7f0;
    color: var(--oc-md-primary);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.oc-md-match-date {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 24px;
    color: #4b5563;
    font-size: 13px;
}

.oc-md-panel {
    margin-top: 20px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--oc-md-border);
    border-radius: 16px;
}

.oc-md-panel > h2 {
    margin: 0 0 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--oc-md-border);
    font-size: 20px;
    font-weight: 800;
}

.oc-md-panel h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 800;
}

.oc-md-panel h4 {
    margin: 18px 0 8px;
    font-size: 13px;
    color: var(--oc-md-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.oc-md-venue {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.oc-md-venue p {
    margin: 3px 0 0;
    color: var(--oc-md-muted);
    font-size: 12px;
    line-height: 1.4;
}

.oc-md-venue > a {
    flex-shrink: 0;
    color: var(--oc-md-primary);
    font-weight: 700;
    text-decoration: none;
}

.oc-md-events-grid,
.oc-md-lineups-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.oc-md-event-side,
.oc-md-lineup-side {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--oc-md-border);
    border-radius: 12px;
}

.oc-md-event-side > h3,
.oc-md-lineup-side > h3 {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--oc-md-border);
}

.oc-md-event {
    display: grid;
    grid-template-columns: 44px 28px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f3;
}

.oc-md-event:last-child {
    border-bottom: 0;
}

.oc-md-event time,
.oc-md-timeline-item > time {
    padding-top: 2px;
    color: var(--oc-md-primary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.oc-md-event-icon {
    text-align: center;
    font-size: 19px;
}

.oc-md-event > div,
.oc-md-timeline-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oc-md-event > div strong,
.oc-md-timeline-content strong {
    font-size: 13px;
}

.oc-md-event > div span,
.oc-md-event > div small,
.oc-md-timeline-content span,
.oc-md-timeline-content small {
    color: var(--oc-md-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.oc-md-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f3;
}

.oc-md-shirt, 
.oc-md-event-shirt {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
}

.oc-md-shirt-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
    color: var(--oc-shirt-primary, #111111);
}

.oc-md-shirt-number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: var(--oc-shirt-secondary, #ffffff);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.oc-md-player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.oc-md-player-info strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.oc-md-player-info small {
    color: var(--oc-md-muted);
    font-size: 12px;
}

.oc-md-timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.oc-md-timeline::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 2px;
    background: var(--oc-md-border);
    transform: translateX(-50%);
}

.oc-md-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    align-items: start;
    margin: 18px 0;
}

.oc-md-timeline-item > time {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    justify-self: center;
    padding: 6px 4px;
    background: #fff;
    text-align: center;
}

.oc-md-timeline-content {
    grid-row: 1;
    padding: 12px;
    border: 1px solid var(--oc-md-border);
    border-radius: 10px;
}

.oc-md-timeline-item.is-home .oc-md-timeline-content {
    grid-column: 1;
    text-align: right;
}

.oc-md-timeline-item.is-away .oc-md-timeline-content {
    grid-column: 3;
    text-align: left;
}

.oc-md-muted {
    color: var(--oc-md-muted);
    font-size: 13px;
}

.oc-md-message {
    padding: 18px;
    border: 1px solid var(--oc-md-border);
    border-radius: 12px;
}

@media (max-width: 650px) {
    .oc-match-detail {
        margin: 14px auto;
        font-size: 14px;
    }

    .oc-md-scoreboard {
        padding: 22px 12px;
    }

    .oc-md-team-caption {
        font-size: 10px;
    }

    .oc-md-score > strong {
        font-size: 30px;
    }

    .oc-md-panel {
        padding: 15px 12px;
    }

    .oc-md-events-grid,
    .oc-md-lineups-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .oc-md-venue {
        align-items: flex-start;
        flex-direction: column;
    }

    .oc-md-timeline-item {
        grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    }

    .oc-md-timeline-content {
        padding: 8px;
    }
}


.oc-md-venue-info {
    min-width: 0;
}

.oc-md-map-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border: 1px solid var(--oc-md-border);
    border-radius: 12px;
    background: #eef2f0;
    text-decoration: none;
}

.oc-md-map-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.oc-md-map-overlay {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 8px;
    background: #fff;
    color: #176b3a;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.oc-md-map-overlay > span {
    font-size: 17px;
}

.oc-md-map-preview:hover .oc-md-map-overlay {
    background: #176b3a;
    color: #fff;
}

.oc-md-map-open {
    display: inline-block;
    margin-top: 12px;
    color: var(--oc-md-primary);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 650px) {
    .oc-md-map-preview {
        height: 180px;
    }
}

.oc-md-map-overlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #fff;
    color: #176b3a;
    font-size: 12px;
    font-weight: 800;
    line-height: 0.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.oc-md-map-overlay > span {
    font-size: 14px;
    line-height: 1;
}

.oc-md-map-preview:hover .oc-md-map-overlay {
    background: #176b3a;
    color: #fff;
}

/* Üst skor kartındaki gereksiz boşlukları azalt */
.oc-md-scoreboard {
    padding: 16px 14px !important;
    border-radius: 12px;
}

.oc-md-competition {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 12px !important;
    padding: 0 4px;
    font-size: 12px;
}


.oc-md-match-date {
    gap: 6px 14px;
    margin-top: 12px;
}

/* Maç bilgileri ve saha alanı */
.oc-md-match-info {
    margin-top: 10px !important;
    padding: 10px 12px !important;
}

.oc-md-match-info > h2 {
    margin: 0 0 6px !important;
    padding-bottom: 6px !important;
    font-size: 16px;
}

.oc-md-match-info .oc-md-venue-info {
    margin: 0 !important;
    padding: 0 !important;
}

.oc-md-match-info .oc-md-venue-name {
    margin: 0 !important;
    line-height: 1.3;
}

.oc-md-match-info .oc-md-venue-address {
    margin: 2px 0 0 !important;
    line-height: 1.3;
}

.oc-md-match-info .oc-md-map-preview {
    height: 110px;
    margin-top: 6px !important;
}

@media (max-width: 650px) {
    .oc-md-scoreboard {
        padding: 12px 8px !important;
    }

    .oc-md-competition {
        gap: 3px 6px;
        margin-bottom: 8px !important;
        font-size: 11px;
    }

    .oc-md-score-row {
        gap: 5px;
    }

    .oc-md-match-date {
        margin-top: 8px;
    }

    .oc-md-match-info {
        padding: 9px !important;
    }

    .oc-md-match-info .oc-md-map-preview {
        height: 100px;
    }
}

/* 1. satır: Sezon solda, hafta sağda */
.oc-md-competition-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

/* 2. satır: Lig ve grup ortada */
.oc-md-competition-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--oc-md-border);
}

.oc-md-season {
    text-align: left;
}

.oc-md-week {
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;
}

.oc-md-league {
    color: var(--oc-md-primary);
}

.oc-md-group {
    padding-left: 8px;
    border-left: 1px solid var(--oc-md-border);
}

/* Maç üst bölümü: bilgileri ve kulüp logolarını sıkılaştır */
.oc-md-scoreboard {
    padding: 14px 16px !important;
}

.oc-md-competition {
    gap: 3px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.oc-md-competition-bottom {
    padding-bottom: 5px !important;
}

/
/* Maç skoru çevresindeki boşluk */
.oc-md-score {
    margin: 0 !important;
}

/* Tarih ve saat alanını yukarı yaklaştır */
.oc-md-match-date {
    margin-top: 10px !important;
    gap: 6px 14px !important;
}

@media (max-width: 650px) {
    .oc-md-scoreboard {
        padding: 12px 9px !important;
    }

    .oc-md-competition {
        margin-bottom: 6px !important;
    }

    .oc-md-score-row {
        gap: 5px !important;
    }

    .oc-md-match-date {
        margin-top: 8px !important;
    }
}

/* =========================================
   MAÇ DETAYI - GEREKSİZ BOŞLUKLARI KALDIR
   ========================================= */

/* Ana skor kartı */
.oc-md-scoreboard {
    padding: 10px 14px !important;
    gap: 0 !important;
}

/* Sezon, hafta, lig ve grup alanı */
.oc-md-competition {
    margin: 0 !important;
    padding: 0 !important;
    gap: 2px !important;
}

/* Lig ve grup satırının alt boşluğu */
.oc-md-competition-bottom {
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
}


/* Tarih ve saat */
.oc-md-match-date {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    gap: 4px 10px !important;
}

/* Diğer bilgi kartları */
.oc-md-panel {
    margin-top: 10px !important;
    padding: 14px !important;
}

.oc-md-panel > h2 {
    margin-bottom: 6px !important;
    padding-bottom: 6px !important;
}

/* Mobil */
@media (max-width: 650px) {
    .oc-md-scoreboard {
        padding: 8px 8px !important;
    }

    .oc-md-match-date {
        margin-top: 5px !important;
    }

    .oc-md-panel {
        margin-top: 8px !important;
        padding: 10px 9px !important;
    }
}

.oc-md-clock {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    color: #01359d;
    text-align: center;
}

.oc-md-status {
    display: block;
    text-align: center;
}

.oc-md-clock {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.oc-clock-main {
    font-size: 20px;
    font-weight: 700;
    color: #01359d;
    line-height: 1;
}

.oc-clock-added {
    font-size: 14px;
    font-weight: 700;
    color: #ff0000;
    line-height: 1;
}
.oc-test-shoe {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: #2271b1;
    -webkit-mask: url("../image/icons/shoe.svg") center / contain no-repeat;
    mask: url("../image/icons/shoe.svg") center / contain no-repeat;
}

.oc-md-timeline-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.oc-md-timeline-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.oc-md-timeline-team.is-away {
    justify-content: flex-end;
    text-align: right;
}

.oc-md-timeline-team strong {
    font-size: 14px;
    line-height: 1.4;
}

.oc-md-timeline-team .oc-md-team-logo,
.oc-md-timeline-team .oc-md-team-placeholder {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
}

.oc-md-timeline-team .oc-md-team-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f1;
    font-weight: 700;
}

@media (max-width: 480px) {
    .oc-md-timeline-teams {
        gap: 10px;
        padding: 10px 0;
    }

    .oc-md-timeline-team {
        gap: 6px;
    }

    .oc-md-timeline-team strong {
        font-size: 12px;
    }
}
.oc-md-timeline-event {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 0;
}

.oc-md-timeline-event > .oc-icon {
    flex-shrink: 0;
}

.oc-md-timeline-shirt-number {
    flex-shrink: 0;
    font-size: 0.85em;
    font-weight: 700;
    white-space: nowrap;
}

.oc-md-timeline-player {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.oc-md-timeline-event {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.oc-md-timeline-event > .oc-icon {
    flex-shrink: 0;
}

.oc-md-timeline-shirt-number {
    flex-shrink: 0;
    font-size: 0.85em;
    font-weight: 700;
    white-space: nowrap;
}

.oc-md-timeline-player {
    display: inline;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.oc-md-timeline-content {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.oc-md-timeline-item.is-home .oc-md-timeline-content {
    grid-column: 1;
    text-align: right;
}

.oc-md-timeline-item.is-away .oc-md-timeline-content {
    grid-column: 3;
    text-align: left;
}

.oc-md-timeline-item.is-home .oc-md-timeline-content {
    justify-self: flex-end;
    padding-right: 8px;
    text-align: right;
}

.oc-md-timeline-item.is-away .oc-md-timeline-content {
    justify-self: stretch;
    padding-left: 8px;
    text-align: left;
}

.oc-md-timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

/* Timeline orta çizgisi */
.oc-md-timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: #e5e7eb;
}

/* Maç başlangıcı ve bitişi */
.oc-md-timeline-marker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    margin: 12px 0;
    text-align: center;
    z-index: 1;
}

.oc-md-timeline-marker span {
    grid-column: 2;
    justify-self: center;
    padding: 5px 4px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}


/* Logo ve kulüp adı */
.oc-md-team-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.oc-md-team-heading strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Ev sahibi: logo solda, isim sağda */
.oc-md-team-home .oc-md-team-heading {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
}

/* Deplasman: isim solda, logo sağda */
.oc-md-team-away .oc-md-team-heading {
    flex-direction: row;
    justify-content: flex-end;
    text-align: right;
}

/* Takım olayları */
.oc-md-team-events {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.oc-md-team-event {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
}

.oc-md-team-event > .oc-icon {
    flex: 0 0 auto;
}

.oc-md-team-event-number {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.oc-md-team-event-player {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Deplasman olayları sağa hizalı */
.oc-md-team-away .oc-md-team-event {
    justify-content: flex-end;
    text-align: right;
}

/* Kulüp logosu ve adı */
.oc-md-team-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.oc-md-team-heading strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Ev sahibi: logo solda, kulüp adı logonun sağında */
.oc-md-team-home .oc-md-team-heading {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
}

/* Deplasman: kulüp adı logonun solunda, logo sağda */
.oc-md-team-away .oc-md-team-heading {
    flex-direction: row;
    justify-content: flex-end;
    text-align: right;
}

/* Maç hareketleri kulüp adının altında */
.oc-md-team-events {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

/* Her hareket: ikon + forma numarası + oyuncu */
.oc-md-team-event {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
}

/* Ev sahibi hareketleri sol tarafa yaslı */
.oc-md-team-home .oc-md-team-events {
    align-items: flex-start;
    text-align: left;
}

.oc-md-team-home .oc-md-team-event {
    justify-content: flex-start;
}

/* Deplasman hareketleri sağ tarafa yaslı */
.oc-md-team-away .oc-md-team-events {
    align-items: flex-end;
    text-align: right;
}

.oc-md-team-away .oc-md-team-event {
    justify-content: flex-end;
}

.oc-md-team-event > .oc-icon {
    flex: 0 0 auto;
}

.oc-md-team-event-number {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.oc-md-team-event-player {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Takım logosu: tek noktadan 88 × 88 px */
.oc-match-detail .oc-md-team-heading .oc-md-team-logo,
.oc-match-detail .oc-md-team-heading .oc-md-team-placeholder {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0;
}

/* Takım başlığı: logo ve isim yan yana */
.oc-match-detail .oc-md-team-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

/* Ev sahibi: logo solda, isim sağda */
.oc-match-detail .oc-md-team-home .oc-md-team-heading {
    flex-direction: row;
    text-align: left;
}

/* Deplasman: isim solda, logo sağda */
.oc-match-detail .oc-md-team-away .oc-md-team-heading {
    flex-direction: row;
    text-align: right;
}

.oc-match-detail .oc-md-team-away .oc-md-team-heading strong {
    flex: 1;
    min-width: 0;
}

/* Takım isimleri */
.oc-match-detail .oc-md-team-heading strong {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

/* Maç hareketleri */
.oc-match-detail .oc-md-team-events {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Hareketler takım adının altından başlasın */
.oc-match-detail .oc-md-team-home .oc-md-team-events {
    padding-left: 98px;
    align-items: flex-start;
    text-align: left;
}

.oc-match-detail .oc-md-team-away .oc-md-team-events {
    padding-right: 98px;
    align-items: flex-end;
    text-align: right;
}

/* Maç skoru: ev sahibi | skor | deplasman */
.oc-match-detail .oc-md-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    width: 100%;
}

/* Ev sahibi ve deplasman sütunları */
.oc-match-detail .oc-md-score-row > .oc-md-team {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    width: 100%;
}

/* Skor ortada kalsın */
.oc-match-detail .oc-md-score-row > .oc-md-score {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: center;
    white-space: nowrap;
}

/* Ev sahibi solda */
.oc-match-detail .oc-md-score-row > .oc-md-team-home {
    grid-column: 1;
    grid-row: 1;
}

/* Deplasman sağda */
.oc-match-detail .oc-md-score-row > .oc-md-team-away {
    grid-column: 3;
    grid-row: 1;
}

@media (max-width: 650px) {
    .oc-match-detail .oc-md-score-row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        column-gap: 5px;
    }
}
/* Takım alanlarının dış kenar boşlukları */
.oc-match-detail .oc-md-score-row > .oc-md-team-home {
    padding-left: 16px;
    box-sizing: border-box;
}

.oc-match-detail .oc-md-score-row > .oc-md-team-away {
    padding-right: 16px;
    box-sizing: border-box;
}

/* Mobilde kenar boşlukları */
@media (max-width: 650px) {
    .oc-match-detail .oc-md-score-row > .oc-md-team-home {
        padding-left: 6px;
    }

    .oc-match-detail .oc-md-score-row > .oc-md-team-away {
        padding-right: 6px;
    }
}


/* Maç olayları: oyuncu bilgisi solda, dakikalar sağda */
.oc-match-detail .oc-md-event-grouped {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
}

.oc-match-detail .oc-md-event-grouped .oc-md-event-player-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.oc-match-detail .oc-md-event-grouped .oc-md-event-minutes {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    white-space: nowrap;
}

.oc-match-detail .oc-md-event-grouped .oc-md-event-minutes span {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.oc-match-detail .oc-md-event-grouped .oc-md-event-shirt,
.oc-match-detail .oc-md-event-grouped .oc-md-event-count {
    white-space: nowrap;
}

.oc-md-event-shirt {font-weight: 800;}

.oc-match-detail .oc-md-event-grouped .oc-md-event-note {
    flex-basis: 100%;
}


/* Maç olayları: oyuncu bilgisi solda, dakikalar sağda */
.oc-md-event.oc-md-event-grouped {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: 100%;
    box-sizing: border-box;
}

.oc-md-event.oc-md-event-grouped > .oc-md-event-player-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0;
}

.oc-md-event.oc-md-event-grouped > .oc-md-event-minutes {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-left: auto !important;
    white-space: nowrap;
}

.oc-md-event.oc-md-event-grouped > .oc-md-event-player-info > *,
.oc-md-event.oc-md-event-grouped > .oc-md-event-minutes > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.oc-md-event.oc-md-event-grouped .oc-md-event-performance-icon {
    display: inline-block !important;
    flex: 0 0 auto;
}

.oc-md-event.oc-md-event-grouped .oc-md-event-note {
    flex-basis: 100%;
}

.oc-md-event.oc-md-event-grouped > .oc-md-event-minutes span {
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.oc-md-timeline-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.oc-md-timeline-match-status {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px 5px;
    min-width: 90px;
    text-align: center;
}

.oc-md-timeline-clock {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.oc-md-timeline-clock-added {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.oc-md-timeline-status-label {
    flex-basis: 100%;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 480px) {
    .oc-md-timeline-teams {
        gap: 6px;
    }

    .oc-md-timeline-clock {
        font-size: 18px;
    }

    .oc-md-timeline-match-status {
        min-width: 76px;
    }
}

/* Mobil maç tabelası: logo, kulüp adı ve olaylar */
@media (max-width: 650px) {

    .oc-match-detail .oc-md-score-row > .oc-md-team {
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .oc-match-detail .oc-md-score-row .oc-md-team-heading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        text-align: center;
    }

    .oc-match-detail .oc-md-score-row .oc-md-team-heading strong {
        display: block;
        flex: none;
        width: 100%;
        min-width: 0;
        text-align: center;
        overflow-wrap: normal;
        word-break: normal;
        line-height: 1.3;
    }

    .oc-match-detail .oc-md-score-row .oc-md-team-heading .oc-md-team-logo,
    .oc-match-detail .oc-md-score-row .oc-md-team-heading .oc-md-team-placeholder {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
        object-fit: contain;
    }

    .oc-match-detail .oc-md-score-row .oc-md-team-events {
        width: 100%;
        margin-top: 8px;
        padding: 0;
        gap: 5px;
    }

    .oc-match-detail .oc-md-score-row .oc-md-team-home .oc-md-team-events {
        align-items: center;
        text-align: center;
    }

    .oc-match-detail .oc-md-score-row .oc-md-team-away .oc-md-team-events {
        align-items: center;
        text-align: center;
    }

    .oc-match-detail .oc-md-score-row .oc-md-team-event {
        justify-content: center;
        max-width: 100%;
        flex-wrap: wrap;
        text-align: center;
    }
	
	.oc-match-detail .oc-md-score-row .oc-md-team-away .oc-md-team-heading {
        flex-direction: column-reverse;
    }
}

/* Maç olayları: forma ve oyuncu numarası */
.oc-md-event-shirt {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 22px;
    height: 22px;
    margin-right: 4px;
    vertical-align: middle;
    overflow: visible;
}

/* Forma ikonunu büyüt */
.oc-md-event-shirt .oc-md-shirt-icon {
    position: absolute;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: "OurClub" !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    color: var(--oc-shirt-primary, #238901) !important;
}

/* Forma üzerindeki numara */
.oc-md-event-shirt .oc-md-shirt-number {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1px 0 0;
    padding: 0;
    color: var(--oc-shirt-secondary, #fff200) !important;
    font-family: Arial, sans-serif;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* Oyuncu adıyla dikey hizalama */
.oc-md-event-player-info {
    align-items: center;
}

.oc-md-event-player-info .oc-md-event-shirt {
    align-self: center;
}

.oc-md-timeline-shirt {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.oc-md-timeline-shirt .oc-md-shirt-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: "OurClub" !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: var(--oc-shirt-primary, #111111) !important;
}

.oc-md-timeline-shirt .oc-md-shirt-number {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: var(--oc-shirt-secondary, #ffffff) !important;
    font-family: Arial, sans-serif;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}
.oc-md-timeline-shirt {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.oc-md-timeline-shirt .oc-md-shirt-icon {
    font-size: 28px;
    color: var(--oc-shirt-primary, #111111);
}

.oc-md-timeline-shirt .oc-md-shirt-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oc-shirt-secondary, #ffffff);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.oc-md-lineup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    min-width: 0;
}

.oc-md-lineup-club {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.oc-md-lineup-club h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.oc-md-lineup-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.oc-md-lineup-counts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}
.oc-md-player-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.oc-md-player-link:hover {
    color: var(--oc-primary-color, #e30613);
    text-decoration: underline;
}

/* Maç akışında teknik ekip ikonu */
.oc-md-timeline-event > .oc-icon-staff,
.oc-md-event-player-info > .oc-icon-staff {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}


/* Maç olaylarında forma ve teknik ekip ikonlarını hizala */
.oc-match-detail .oc-md-event-player-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Forma ve personel ikonları için ortak alan */
.oc-match-detail .oc-md-event-player-info > .oc-md-event-shirt,
.oc-match-detail .oc-md-event-player-info > .oc-icon-staff {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 28px;
    margin: 0 !important;
    padding: 0;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Forma glifi kendi alanında ortalansın */
.oc-match-detail .oc-md-event-player-info .oc-md-event-shirt .oc-md-shirt-icon {
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Teknik ekip glifi aynı alanın ortasında olsun */
.oc-match-detail .oc-md-event-player-info > .oc-icon-staff {
    font-size: 28px;
    line-height: 1;
}

/* Sarı/kırmızı kart ikonlarının mevcut boyutunu koru */
.oc-match-detail .oc-md-event-player-info > .oc-md-event-performance-icon {
    flex: 0 0 auto;
}
.oc-md-club-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.oc-md-club-link:hover {
    color: inherit;
    text-decoration: none;
}

.oc-md-club-link:hover strong {
    text-decoration: underline;
}
/* =====================================
   MAÇ SKORBORD - MOBİL GÖRÜNÜM
===================================== */

@media (max-width: 767px) {

    .oc-match-detail {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .oc-md-scoreboard {
        width: 100%;
        padding: 15px 10px;
    }

    .oc-md-competition {
        width: 100%;
        text-align: center;
    }

    .oc-md-competition-top,
    .oc-md-competition-bottom {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .oc-md-score-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: start;
        gap: 5px;
        width: 100%;
        margin-top: 20px;
    }

    .oc-md-team {
        min-width: 0;
        width: 100%;
        text-align: center;
    }

    .oc-md-team-heading {
        width: 100%;
        min-width: 0;
    }

    .oc-md-club-link {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .oc-md-club-link .oc-md-team-logo,
    .oc-md-club-link .oc-md-team-placeholder {
        order: 1;
        width: 65px;
        height: 65px;
        flex: 0 0 65px;
        object-fit: contain;
    }

    .oc-md-club-link strong {
        order: 2;
        display: block;
        width: 100%;
        font-size: 12px;
        line-height: 1.35;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .oc-md-score {
        min-width: 75px;
        padding-top: 15px;
        text-align: center;
    }

    .oc-md-score > strong {
        font-size: 27px;
        white-space: nowrap;
    }

    .oc-md-status {
        display: block;
        margin-top: 5px;
    }

    .oc-md-clock {
        margin-top: 6px;
    }

    .oc-md-team-events {
        width: 100%;
        margin-top: 12px;
        text-align: center;
    }

    .oc-md-team-event {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .oc-md-match-date {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 15px;
        margin-top: 20px;
        text-align: center;
    }
}

@media (max-width: 380px) {

    .oc-md-club-link .oc-md-team-logo,
    .oc-md-club-link .oc-md-team-placeholder {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .oc-md-score {
        min-width: 65px;
    }

    .oc-md-score > strong {
        font-size: 23px;
    }

    .oc-md-club-link strong {
        font-size: 11px;
    }
}