.side_bar_vertical {
		display: flex; 
		flex-direction: row;
		flex-wrap: wrap; 
		width: 250px; 
		padding-top: 20px;
		float: right; 
		background-color: #333333; 
}

.head-shot {
	width: 50px;
    height: 50px;
    margin-left: 10px;
    float: left;
	border-radius: 150px;
}
	
.head-shot:hover {
	filter: inherit !important;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.legend {
	color: white;
}



/* Player selector */
.crfc6790-player-selector {
    width: fit-content;
    max-width: 420px;
    box-sizing: border-box;
    margin: 0 auto 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
}

.crfc6790-player-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}

.crfc6790-player-selector form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crfc6790-player-selector input[type="text"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #b8b8b8;
    border-radius: 5px;
    font: inherit;
}

.crfc6790-player-button {
    padding: 11px 16px;
    border: 0;
    border-radius: 5px;
    background: var(--crfc6790-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.crfc6790-player-button:hover {
        background: var(--crfc6790-secondary);
}

.crfc6790-player-count {
    margin: 10px 0 0;
    color: #666;
    font-size: 0.85rem;
}


/* Player record table */
.crfc6790-record-table {
	width: fit-content;
    display: grid;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 0.9rem;
    padding: 3px;
    margin: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.crfc6790-record-header {
    background: var(--crfc6790-primary, #333);
    color: #fff;
    font-weight: 700;
    padding: 4px 4px;
}

.crfc6790-record-header > div {
    border-bottom: 0;
    justify-content: center;
    display: flex;
    align-items: center;
}

.crfc6790-record-header svg {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto;
}

.crfc6790-record-header svg text {
    fill: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.crfc6790-record-total {
    font-weight: 700;
    background: #f0f0f0;
}

.crfc6790-record-row:last-child > div {
    border-bottom: 0;
}



/* Player identity and victory summary */
.crfc6790-player-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
	width: fit-content;
	max-width: 100%;
    color: inherit;
    text-decoration: none;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 auto;
    margin-bottom: 15px;
}

.crfc6790-player-identity {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--crfc6790-primary, #333);
    color: #fff;
    min-width: 0;
}

.crfc6790-player-headshot {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.crfc6790-no-headshot {
    border-radius: 0;
    object-fit: contain;
}

.crfc6790-player-name {
    margin: 0;
    padding: 4px;
    color: #fff;
    font-size: 1.4rem;
    overflow-wrap: anywhere;
}

.crfc6790-player-victories {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: center;
    min-width: 105px;
    padding: 10px 14px;
    background: #333;
    color: #fff;
    text-align: center;
}

.crfc6790-victory-label,
.crfc6790-victory-caption {
    font-size: 0.65rem;
    line-height: 1.3;
}

.crfc6790-victory-percentage {
    margin: 3px 0;
    padding: 0;
    color: #fff;
    font-size: 1.9rem;
    line-height: 1.2;
}

.crfc6790-no-games {
    max-width: 180px;
    font-size: 0.8rem;
    line-height: 1.4;
}


.crfc6790-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 20px;
}

.crfc6790-toggle-label {
    font-size: 0.95rem;
    font-weight: 700;
}

.crfc6790-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.crfc6790-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.crfc6790-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #999;
    border-radius: 26px;
    transition: background 0.2s;
}

.crfc6790-slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 4px;
    top: 4px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.crfc6790-switch input:checked + .crfc6790-slider {
    background: var(--crfc6790-primary, #333);
}

.crfc6790-switch input:checked + .crfc6790-slider:before {
    transform: translateX(22px);
}

.crfc6790-switch input:focus-visible + .crfc6790-slider {
    outline: 2px solid var(--crfc6790-secondary, #777);
    outline-offset: 3px;
}

/* Record tables */
.crfc6790-record-row {
    display: grid;
    grid-template-columns: 1.1fr repeat(7, minmax(0, 1fr));
    align-items: stretch;
}

.crfc6790-record-row:not(.crfc6790-record-header) > div {
    box-sizing: border-box;
    min-width: 0;
    padding: 9px 4px;
    text-align: center;
    border-bottom: 1px solid #e2e2e2;
}

/* Opposition table */
.crfc6790-opposition-table .crfc6790-record-row {
    grid-template-columns: minmax(0, 2fr) repeat(7, minmax(0, 1fr));
}

.crfc6790-opposition-table .crfc6790-record-row > div:first-child {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px;
    text-align: left;
}

.crfc6790-opposition-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.crfc6790-opposition-crest {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}



@media (max-width: 600px) {
    .crfc6790-record-table {
        font-size: 0.75rem;
    }

    .crfc6790-record-row {
        grid-template-columns: 1.15fr repeat(7, minmax(0, 1fr));
    }

    .crfc6790-record-row > div {
        padding: 8px 2px;
        overflow-wrap: anywhere;
    }

    .crfc6790-record-header svg {
        width: 25px;
        height: 25px;
    }

    .crfc6790-player-selector {
        max-width: none;
        padding: 14px;
    }

    .crfc6790-player-card {
        grid-template-columns: minmax(0, 1fr) 90px;
    }

    .crfc6790-player-identity {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .crfc6790-player-headshot {
        width: 56px;
        height: 56px;
    }

    .crfc6790-player-name {
        font-size: 1.05rem;
    }

    .crfc6790-player-victories {
        min-width: 0;
        padding: 8px 4px;
    }

    .crfc6790-victory-percentage {
        font-size: 1.5rem;
    }
    
        .crfc6790-opposition {
        gap: 4px;
    }

    .crfc6790-opposition-crest {
        width: 22px;
        height: 22px;
    }
}


