
.oc-player-detail-page {
    width: 100%;
}

.oc-player-detail {
    --oc-player-primary: #176b3a;
    width: min(1100px, calc(100% - 32px));
    margin: 36px auto;
    color: #20252b;
}


/* Oyuncu profil hero düzeni */
.oc-player-detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 36px;
    padding: 36px;
    color: #fff;
    background: linear-gradient(125deg, #123b27 0%, #176b3a 60%, #23834a 100%);
    border-radius: 16px;
    overflow: hidden;
}

.oc-player-detail-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.oc-player-detail-photo {
    flex: 0 0 145px;
    width: 145px;
    height: 175px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

.oc-player-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-player-detail-photo > span {
    font-size: 42px;
    font-weight: 800;
}

.oc-player-detail-heading {
    min-width: 0;
}

.oc-player-detail-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #c9f0d5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.oc-player-detail-heading h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.oc-player-detail-role {
    margin: 0 0 12px;
    color: #d9f0df;
    font-size: 15px;
}

.oc-player-detail-number {
    display: inline-block;
    padding: 7px 11px;
    color: #173c27;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.oc-player-detail-birth {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 17px;
    color: #d9f0df;
    font-size: 12px;
}

.oc-player-detail-birth strong {
    color: #fff;
    font-size: 14px;
}

.oc-player-detail-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.oc-player-detail-stat {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
}

.oc-player-detail-stat > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: #c9e8d2;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oc-player-detail-stat > strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.oc-player-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.oc-player-status.is-active {
    color: #143d25;
    background: #b9f2c9;
}

.oc-player-status.is-inactive {
    color: #6e2222;
    background: #ffd5d5;
}

/* Tablet */
@media (max-width: 900px) {
    .oc-player-detail-hero {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 26px;
    }

    .oc-player-detail-identity {
        align-items: center;
    }

    .oc-player-detail-photo {
        flex-basis: 125px;
        width: 125px;
        height: 150px;
    }
}

/* Telefon */
@media (max-width: 520px) {
    .oc-player-detail-hero {
        padding: 18px;
        border-radius: 12px;
    }

    .oc-player-detail-identity {
        align-items: flex-start;
        gap: 15px;
    }

    .oc-player-detail-photo {
        flex-basis: 95px;
        width: 95px;
        height: 120px;
    }

    .oc-player-detail-heading h1 {
        font-size: 23px;
    }

    .oc-player-detail-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .oc-player-detail-stat {
        padding: 12px 10px;
    }

    .oc-player-detail-stat > strong {
        font-size: 12px;
    }
}

.oc-player-detail-section {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid #e6e9ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(20,30,40,.04);
}

.oc-player-detail-section h2 {
    margin: 0 0 22px;
    padding-bottom: 13px;
    border-bottom: 2px solid #edf0f2;
    font-size: 21px;
}

.oc-player-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.oc-player-detail-item {
    min-width: 0;
    padding: 15px;
    border-radius: 10px;
    background: #f6f8f7;
}

.oc-player-detail-item > span {
    display: block;
    margin-bottom: 7px;
    color: #68716b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.oc-player-detail-item > strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 15px;
}

.oc-player-detail-notice {
    width: min(900px, calc(100% - 32px));
    margin: 40px auto;
    padding: 28px;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    background: #fff;
}

@media (max-width: 640px) {
    .oc-player-detail {
        width: calc(100% - 20px);
        margin: 20px auto;
    }

    .oc-player-detail-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 22px;
    }

    .oc-player-detail-photo {
        flex-basis: auto;
        width: 135px;
        height: 150px;
    }

    .oc-player-detail-section {
        padding: 18px;
    }

    .oc-player-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Oyuncu hareketleri */
.oc-player-history {
    margin-top: 36px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 35, 25, 0.05);
}

.oc-player-history__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.oc-player-history__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #27804b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.oc-player-history__header h2 {
    margin: 0;
    color: #17251c;
    font-size: 25px;
    font-weight: 800;
}

.oc-player-history__count {
    flex-shrink: 0;
    padding: 7px 12px;
    color: #216d3d;
    background: #eaf5ed;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.oc-player-history__item {
    position: relative;
    display: flex;
    gap: 18px;
    padding-bottom: 26px;
}

.oc-player-history__item:last-child {
    padding-bottom: 0;
}

.oc-player-history__marker {
    position: relative;
    display: flex;
    flex: 0 0 18px;
    justify-content: center;
}

.oc-player-history__marker::after {
    position: absolute;
    top: 16px;
    bottom: -2px;
    width: 2px;
    background: #dcebe0;
    content: "";
}

.oc-player-history__item:last-child
.oc-player-history__marker::after {
    display: none;
}

.oc-player-history__marker span {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    background: #27804b;
    border: 3px solid #e2f2e6;
    border-radius: 50%;
    box-sizing: content-box;
}

.oc-player-history__content {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
    background: #f8faf8;
    border: 1px solid #edf1ed;
    border-radius: 10px;
}

.oc-player-history__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.oc-player-history__type {
    display: inline-flex;
    padding: 5px 10px;
    color: #216d3d;
    background: #e4f3e8;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
}

.oc-player-history__date {
    color: #69756d;
    font-size: 12px;
}

.oc-player-history__content h3 {
    margin: 0 0 12px;
    color: #202c24;
    font-size: 18px;
    font-weight: 750;
}

.oc-player-history__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #667169;
    font-size: 13px;
}

.oc-player-history__details strong {
    color: #34443a;
}

.oc-player-history__empty {
    padding: 22px;
    color: #667169;
    background: #f8faf8;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 600px) {
    .oc-player-history {
        margin-top: 24px;
        padding: 18px 14px;
    }

    .oc-player-history__header h2 {
        font-size: 21px;
    }

    .oc-player-history__item {
        gap: 10px;
    }

    .oc-player-history__content {
        padding: 14px;
    }

    .oc-player-history__content h3 {
        font-size: 16px;
    }

    .oc-player-history__details {
        flex-direction: column;
        gap: 7px;
    }
}
/* Oyuncu kimlik alanı: fotoğraf ve bilgiler yan yana */
.oc-player-detail-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.oc-player-detail-heading {
    flex: 1;
    min-width: 0;
}

.oc-player-detail-birth {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 12px;
    text-align: left;
}

/* Oyuncu fotoğrafı alanı */
.oc-player-detail-photo {
    position: relative;
    isolation: isolate;
    flex: 0 0 170px;
    width: 170px;
    height: 205px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Arkadaki kulüp logosu */
.oc-player-detail-club-watermark {
    position: absolute;
    z-index: -1;
    inset: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.oc-player-detail-club-watermark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.65;
}

/* Öndeki oyuncu fotoğrafı */
.oc-player-detail-player-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.oc-player-detail-player-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
}

.oc-player-detail-player-image > span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
}

/* Mobil boyut */
@media (max-width: 520px) {
    .oc-player-detail-photo {
        flex-basis: 115px;
        width: 115px;
        min-width: 115px;
        height: 145px;
    }
}

/* Oyuncu görsel alanı */
.oc-player-detail-photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: transparent;
}

/* Kulüp logosu - oyuncunun arkasında */
.oc-player-detail-club-watermark {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.oc-player-detail-club-watermark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.25;
}

/* Oyuncu fotoğrafı veya taslak - önde */
.oc-player-detail-player-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
	top: 30px;
    left: 30px;
}

.oc-player-detail-player-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
}

/* Kulüp logosunu sol üst köşeye taşı */
.oc-player-detail-club-watermark {
    position: absolute;
    top: 0px;
    left: -10px;
    right: auto;
    bottom: auto;
    width: 90%;
    height: 90%;
    z-index: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
}

.oc-player-detail-club-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    opacity: 0.35;
}
.oc-player-stats {
    margin: 30px 0;
}

.oc-player-stats-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.oc-player-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.oc-player-stats-table th,
.oc-player-stats-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #223fcd;
    text-align: center;
    white-space: nowrap;
}

.oc-player-stats-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.oc-player-stats-table td:nth-child(1),
.oc-player-stats-table td:nth-child(2) {
    text-align: left;
}

.oc-player-stats-table tr.odd {
    background: #fff;
}

.oc-player-stats-table tr.even {
    background: #fafafa;
}

.oc-player-season-toggle {
    border: 0;
    padding: 0;
    background: transparent;
    color: #2271b1;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.oc-player-season-toggle:hover {
    text-decoration: underline;
}

.oc-player-season-details-row > td {
    padding: 0;
    white-space: normal;
}

.oc-player-season-details {
    padding: 16px;
    background: #f8f9fa;
    text-align: left;
}

.oc-player-match-stats-table .oc-player-performance-heading {
    text-align: center;
    white-space: nowrap;
}

.oc-player-match-stats-table .oc-player-performance-heading .oc-icon {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    cursor: help;
}

.oc-player-match-stats-table .oc-player-performance-value {
    text-align: center;
}
.oc-player-club-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.oc-player-club-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
}


/* =========================================
   OYUNCU GEÇMİŞİ - TEK SATIRLIK BİLGİLER
   ========================================= */

.oc-player-history__content {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    background: #f8faf8;
    border: 1px solid #edf1ed;
    border-radius: 10px;
    box-sizing: border-box;
}

.oc-player-history__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    width: 100%;
    min-width: 0;
    color: #667169;
    font-size: 13px;
    line-height: 1.6;
}

/* Kulüp adı */
.oc-player-history__details h3 {
    flex: 0 1 auto;
    margin: 0;
    color: #202c24;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
}

/* Tescil türü etiketi */
.oc-player-history__details .oc-player-history__type {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 9px;
    color: #216d3d;
    background: #e4f3e8;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

/* Sezon, lig, grup, pozisyon, forma ve tarih */
.oc-player-history__details > span:not(.oc-player-history__type) {
    display: inline-flex;
    align-items: baseline;
    flex: 0 1 auto;
    gap: 4px;
    margin: 0;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.7;
}

.oc-player-history__details > span strong {
    color: #34443a;
    font-weight: 700;
}

/* Tablet ve telefon */
@media (max-width: 600px) {
    .oc-player-history__content {
        padding: 14px;
    }

    .oc-player-history__details {
        flex-direction: row;
        align-items: center;
        gap: 8px 12px;
    }

    .oc-player-history__details h3 {
        flex-basis: 100%;
        font-size: 15px;
    }

    .oc-player-history__details > span:not(.oc-player-history__type) {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* ==========================================
   OYUNCU İSTATİSTİKLERİ - CARD TASARIMI
   ========================================== */

.oc-player-stats {
    margin: 30px 0;
    padding: 26px;
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(20, 35, 25, 0.05);
    box-sizing: border-box;
}

.oc-player-stats h2 {
    margin: 0 0 22px;
    padding-bottom: 14px;
    color: #17251c;
    border-bottom: 2px solid #edf2ee;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

/* Tablo dış kapsayıcısı */
.oc-player-stats-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e7ece8;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

/* Ana tablo */
.oc-player-stats-table {
    width: 100%;
    min-width: 650px;
    border-collapse: separate;
    border-spacing: 0;
    color: #34443a;
    background: #fff;
    font-size: 13px;
}

/* Başlıklar */
.oc-player-stats-table thead th {
    padding: 14px 12px;
    color: #fff;
    background: #176b3a;
    border: 0;
    border-bottom: 1px solid #12562e;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.oc-player-stats-table thead th:first-child {
    text-align: left;
    padding-left: 16px;
}

.oc-player-stats-table thead th:nth-child(2) {
    text-align: left;
}

/* Hücreler */
.oc-player-stats-table tbody td {
    padding: 13px 12px;
    border: 0;
    border-bottom: 1px solid #edf1ee;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.oc-player-stats-table tbody tr:last-child > td {
    border-bottom: 0;
}

/* Sezon sütunu */
.oc-player-stats-table tbody td:first-child {
    text-align: left;
    padding-left: 16px;
}

/* Satır renkleri */
.oc-player-stats-table tbody tr.odd {
    background: #fff;
}

.oc-player-stats-table tbody tr.even {
    background: #f7faf8;
}

.oc-player-stats-table tbody tr:not(.oc-player-season-details-row):hover {
    background: #edf7f0;
}

/* Sezon açma düğmesi */
.oc-player-season-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: #176b3a;
    background: #eaf5ed;
    border: 1px solid #d5e9da;
    border-radius: 7px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.oc-player-season-toggle:hover {
    color: #fff;
    background: #176b3a;
    text-decoration: none;
}

.oc-player-season-toggle:focus-visible {
    outline: 2px solid #176b3a;
    outline-offset: 3px;
}

.oc-player-season-toggle span {
    font-size: 15px;
    line-height: 1;
}

/* Kulüp logosu ve adı */
.oc-player-club-cell {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 150px;
    text-align: left;
    white-space: nowrap;
}

.oc-player-club-logo {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e7ece8;
    border-radius: 7px;
    box-sizing: border-box;
}

/* Açılır maç detay satırı */
.oc-player-season-details-row[hidden] {
    display: none !important;
}

.oc-player-stats-table tbody tr.oc-player-season-details-row {
    background: #f1f7f2;
}

.oc-player-season-details-row > td {
    padding: 0;
    white-space: normal;
    border-bottom: 1px solid #e1ebe3;
}

.oc-player-season-details {
    padding: 20px;
    color: #34443a;
    background: #f5f9f6;
    text-align: left;
}

/* Boş istatistik mesajı */
.oc-player-stats > p {
    margin: 0;
    padding: 18px;
    color: #667169;
    background: #f7faf8;
    border: 1px dashed #d8e3da;
    border-radius: 9px;
    text-align: center;
}

/* Tablet */
@media (max-width: 768px) {
    .oc-player-stats {
        margin: 24px 0;
        padding: 20px 16px;
        border-radius: 13px;
    }

    .oc-player-stats h2 {
        font-size: 20px;
    }

    .oc-player-stats-table thead th,
    .oc-player-stats-table tbody td {
        padding: 11px 10px;
    }

    .oc-player-season-details {
        padding: 14px;
    }
}

/* Telefon */
@media (max-width: 480px) {
    .oc-player-stats {
        padding: 17px 12px;
    }

    .oc-player-stats h2 {
        margin-bottom: 16px;
        font-size: 18px;
    }

    .oc-player-stats-table {
        font-size: 12px;
    }

    .oc-player-stats-table thead th {
        padding: 12px 9px;
        font-size: 11px;
    }

    .oc-player-stats-table tbody td {
        padding: 11px 9px;
    }

    .oc-player-season-toggle {
        gap: 5px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .oc-player-club-cell {
        gap: 7px;
        min-width: 140px;
    }

    .oc-player-club-logo {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }
}

.oc-player-match-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.oc-player-match-link:hover {
    color: var(--oc-primary-color, #e30613);
    text-decoration: underline;
}
