html, body, #yourMainContainer, .cardFrame-wrapper {
  height: 100%;
}

a {
	text-decoration: none;
}



.cardFrame-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  max-width: 450px;
  padding: 1rem;
}

.cardFrame {
	padding-bottom: .75em;
	width: 90%;      /* keeps your width */
    max-width: 400px; /* optional: prevent too wide cards */
    margin-top: 10px; /* optional spacing from top */
}

.o-rounded-box {
    border-radius: .4rem;
}

.card-picture {
  grid-column: 1 / 2; /* first column */
  grid-row: 1 / 3;    /* spans two rows */
}

.card-picture img {
	height: 100px;
	width: 100px;
	border-radius: 50%;
	margin-top: 10px;
	margin-right: 20px;
	border: 3px solid white;
    background: radial-gradient(circle,
              rgba(255, 255, 255, 1) 0%,    /* bright white center */
              rgba(200, 200, 200, 1) 60%,   /* light grey */
              rgba(100, 100, 100, 1) 100%   /* darker edge */
            );
	display: block;
}


.card-profile-picture {
	margin-left: 100px;
}

.card-profile-picture img {
	height: 150px;
	width: 150px;
}

.card-themed-hero {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 11rem;
}

.card-themed-hero-mask {
    height: 100%;
    overflow: hidden;
    position: absolute;
    width: 100%;
}


.card-themed-hero-mask-angle,.card-themed-hero-mask__angle{
    height:100%;
    position:absolute;
    right:-3.94rem;
    top:0;
    -webkit-transform:skew(-30deg);
    transform:skew(-30deg);
    -webkit-transition:width .25s ease;
    transition:width .25s ease;
    width:7.96rem
}
.card-themed-hero:focus .card-themed-hero-mask-angle,.card-themed-hero:focus .card-themed-hero-mask__angle,.card-themed-hero:hover .card-themed-hero-mask-angle,.card-themed-hero:hover .card-themed-hero-mask__angle{
    width:200%
}
.card-themed-hero--coach-captain .card-themed-hero-mask-angle,.card-themed-hero--coach-captain .card-themed-hero-mask__angle,.card-themed-hero--coach-captain:focus .card-themed-hero-mask-angle,.card-themed-hero--coach-captain:focus .card-themed-hero-mask__angle,.card-themed-hero--coach-captain:hover .card-themed-hero-mask-angle,.card-themed-hero--coach-captain:hover .card-themed-hero-mask__angle{
    width:7.96rem
}

.card-player .card-themed-hero-mask-angle,.card-player .card-themed-hero-mask__angle{
    right:-50%;
    width:100%
}
a:focus .card-player .card-themed-hero-mask-angle,a:focus .card-player .card-themed-hero-mask__angle,a:hover .card-player .card-themed-hero-mask-angle,a:hover .card-player .card-themed-hero-mask__angle{
    width:200%
}


a:focus .card-player .card-themed-hero-mask-angle,a:focus .card-player .card-themed-hero-mask__angle,a:hover .card-player .card-themed-hero-mask-angle,a:hover .card-player .card-themed-hero-mask__angle{
    width:200%
}



.card-themed-hero-image-wrapper {
	height: 9rem;
	width: 48.75%;
}

.card-themed-hero-profile{
    -webkit-box-flex:1;
    -ms-flex-positive:1;
    flex-grow:1;
    position:relative
}
.card-themed-hero-profile,.card-themed-hero__header{
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex
}

.card-themed-hero__content-wrap {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: absolute;
}

.card-clubs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-club {
    font-size: 0.7rem;
    line-height: 1.2;
}

.card-club-date {
    font-size: 0.6rem;
    line-height: 1;
    font-style: italic;
}


/* Player Profile Card */

.player-profile-box {
    max-width: 450px;
    margin-left: 15px;
    margin-top: 30px;
}

.player-profile-card {
    background-color: var(--primaryColor);
    border-radius: 0.4rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 140px;
    grid-template-rows: auto auto;
    gap: 0.75rem 1rem;
}

.player-profile-left {
    color: #fff;
}

.player-profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.player-profile-club {
    font-size: 0.8rem;
}

.player-profile-club-date {
    font-size: 0.6rem;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.player-profile-right {
    display: flex;
    justify-content: end;
    align-items: flex-end;
}

.player-profile-picture img {
    width: 100%;
    max-width: 140px;
    border-radius: 0.4rem;
}

.player-profile-nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.player-profile-card {
    border-radius: 0.4rem;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.player-profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0; 
}

.player-profile-detail {
    background: rgba(255,255,255,0.08);
    border-radius: 0.3rem;
    padding: 0.5rem 0.6rem;
}

.player-profile-detail .detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    display: block;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
    hyphens: auto;
}

.player-profile-detail .detail-label {
    font-size: 0.6rem;
    opacity: 0.85;
    margin-top: 0.1rem;
    letter-spacing: 0.03em;
    padding: 0.5rem;
    border-radius: 0.3rem;
}








.keyboard-focus .u-t-bg-color-primary-on-hover:focus, .t-root .u-t-bg-color-primary, .t-root .u-t-bg-color-primary-on-hover:hover, .u-t-bg-color-primary-when-active.is-active {
    background-color: #0d0d0d;
    background-color: var(--primary);
}

.keyboard-focus .u-t-bg-color-tint-on-hover:focus, .u-t-bg-color-tint, .u-t-bg-color-tint-on-hover:hover, .u-t-bg-color-tint-when-active.is-active {
    background-color: #262626;
    background-color: var(--secondary);
}

.keyboard-focus .u-t-bg-color-primary-on-hover:focus, .u-t-bg-color-primary, .t-root .u-t-bg-color-primary-on-hover:hover, .u-t-bg-color-primary-when-active.is-active {
    background-color: #0d0d0d;
    background-color: var(--primary);
}

.card-themed-hero-mask__logo {
    height: 14.06rem;
    left: -2.34rem;
    opacity: 0.1;
    position: absolute;
    top: -3.52rem;
    width: 14.06rem;
}

.u-display-block {
    display: block !important;
    font-size: 0.825em;
}

dd {
	margin-inline-start: 15px;
}

.u-visually-hidden {
	clip: rect(0 0 0 0) !important;
    border: none !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.card-themed-hero--profile-search .card-themed-hero__name {
    margin-bottom: .1875rem;
}

.card-themed-hero__content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-top: .75rem;
}

.card-picture {
    width: 100%;
}

.card-themed-hero__image {
    bottom: 0;
    height: 100%;
    left: 0;
    max-width: none;
    position: absolute;
}




.fade-container {
  transition: opacity 0.4s ease;
  opacity: 1;
}

.fade-container.fade-out {
  opacity: 0;
}



.no-hover-effect .card-themed-hero:hover .card-themed-hero-mask__angle,
.no-hover-effect .card-themed-hero:focus .card-themed-hero-mask__angle {
    width: 7.96rem !important;
}

.no-hover-effect .card-player:hover .card-themed-hero-mask__angle,
.no-hover-effect .card-player:focus .card-themed-hero-mask__angle {
    width: 7.96rem !important;
}





.o-text, .o-text-cam {
    font-size: .656rem !important;
}

.o-text {
    line-height: 1.0714 !important;
}

.p-text {
	line-height: 1.031;
	color: var(--secondary) !important;
}

.l-profiles-grid {
    display: grid;
    gap: 0.75rem;
    z-index: 2;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}







.show {display:block;}




.pflex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pflex-box {
  flex: 1 1 calc(50% - 1rem);
  box-sizing: border-box;
  padding: 1rem;
  border-radius: 5px;
}


.player-box {
  flex: 1 1 calc(50% - 1rem); /* 2 per row on desktop */
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  padding: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  min-width: 425px; 
  max-width: 450px;
}

.player-box.show {
  opacity: 1;
  transform: translateY(0);
}


.player-column-right { 
	background: rgba(0,0,0,0.05); 
	border-radius: 0.3rem; 
	padding: 0.75rem; 
}

.player-column-left .row { 
	display: grid; 
	grid-template-columns: 1.5fr 1fr; 
	padding: 0.25rem 0.5rem; 
	font-size: 0.875rem; 
}

.playerCard {
	display: flex;
	position: relative;
	border-radius: 0.4rem;
	flex-direction: column;
	height: 11rem;
	max-height: 100vh;
	max-width: 450px;
}

.player-column-left .row.even { background: #f7f7f7; } 

.player-column-left .row.odd { background: #ffffff; }

.player-details-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.15rem;
	color: #fff;
	text-align: center;
	margin-top: 125px;
	z-index: 3;
}

.player-detail .detail-value {
	font-weight: bold;
	font-size: 0.75rem;
}

.player-detail .detail-label {
	font-size: 0.5625rem;
	color: white;
}

.player-details {
	background: #f7f7f7;
}


.playerDetails {
	border-radius: 1rem;
}


.player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


.player-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}


.player-info {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.player-name {
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	flex: 1;
	min-width: 0;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;
}

.playProf {
	align-items: center;
	flex-direction: column;
	display: flex;
}



/* Nav */

.player-tabs-nav {
  display: flex;
  gap: 1rem;
  margin: 0 auto; 
  margin-top: 8rem;
}


.player-tab-btn:hover {
	border-color: currentColor;
}

.player-tab-btn {
  position: relative;
  text-align: center;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5em 0.8em;
  user-select: none;
}

.player-tab-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;      /* thick white underline */
  width: 0;
  background: currentColor;
  border-radius: 4px;
  transition: width 0.3s ease;
  margin-left: 5px;
  margin-right: 5px;
}

.player-tab-btn:hover::after,
.player-tab-btn.active::after {
  width: 100%;
  background: currentColor;
}



/* Hide all tab content by default */
.ptab-content {
  display: none;
}

/* Show only the active tab's content */
.ptab-content.active {
  display: block;
  padding-bottom: 60px;
}




.no-data-note {
	font-size: 0.8em;
	margin: 1em;
}




/* Dropdown Button */
.teamSelect {
  background-color: white;
  color: #333;
  padding: 6px;
  font-size: 12px;
  border: 1px solid #d3d3d3;
  cursor: pointer;
  border-radius: 7px;
}

/* Dropdown button on hover & focus */
.teamSelect:hover, .dropbtn:focus {
  background-color: #2980B9;
}

/* The container <div> - needed to position the dropdown content */
.teamz {
  position: relative;
  display: inline-block;
  text-align: left;
}


.teamz-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 120px;
  box-shadow: 0px 6px 12px 0px rgba(0,0,0,0.2);
  z-index: 1;
}


.teamz-content a {
  color: black;
  padding: 9px 12px;
  text-decoration: none;
  display: block;
}


.teamz-content a:hover {background-color: #ddd;}





/*TABLES*/

/* Outer box */
.byMonth {
    border-radius: 1rem;
    background-color: white;
    padding: 0.125em 0.5em 1em;
    margin-bottom: 1em;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
}

/* Scrollable area */
.byMonth .scroll-area {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.byMonth .scroll-area::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row {
    display: grid;
    grid-template-columns: 45px 40px repeat(24, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row2 {
    display: grid;
    grid-template-columns: 70px 30px repeat(24, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row3 {
    display: grid;
    grid-template-columns: 90px 70px repeat(9, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row4 {
    display: grid;
    grid-template-columns: 90px 70px;
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}


/* Grid rows */
.matchDetails .byMonth.uB1 .row10 {
    display: grid;
    grid-template-columns: 80px 60px repeat(10, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row11 {
    display: grid;
    grid-template-columns: 80px 60px repeat(11, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row12 {
    display: grid;
    grid-template-columns: 40px 40px repeat(12, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row13 {
    display: grid;
    grid-template-columns: 80px 60px repeat(13, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row14 {
    display: grid;
    grid-template-columns: 40px 40px repeat(14, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row15 {
    display: grid;
    grid-template-columns: 60px repeat(15, minmax(2.5em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}


/* Grid rows */
.matchDetails .byMonth.uB1 .row15 {
    display: grid;
    grid-template-columns: 60px repeat(15, minmax(2.5em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row16 {
    display: grid;
    grid-template-columns: 140px repeat(16, minmax(2.5em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}


/* Grid rows */
.matchDetails .byMonth.uB1 .row16b {
    display: grid;
    grid-template-columns: 60px 60px repeat(16, minmax(2.5em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row16c {
    display: grid;
    grid-template-columns: 50px repeat(16, minmax(2.5em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

/* Grid rows */
.matchDetails .byMonth.uB1 .row17 {
    display: grid;
    grid-template-columns: 40px 40px repeat(17, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}


/* Grid rows */
.matchDetails .byMonth.uB1 .row106 {
    display: grid;
    grid-template-columns: 40px 40px repeat(106, minmax(2em,1fr));
    align-items: center;
    gap: 2px; /* optional spacing between cells */
}

[class^="row"] {
    display: grid;
    align-items: center;
    gap: 2px;
}

.matchDetails .byMonth.uB1 [class^="row"]:nth-child(n+2):nth-child(odd) {
    background-color: #f7f7f7;
}

.matchDetails .byMonth.uB1 [class^="row"]:nth-child(n+2):nth-child(even) {
    background-color: #ffffff;
}



/* Header and data cells */
.matchDetails .byMonth .bMH,
.matchDetails .byMonth .bM {
    display: block;
    padding: 4px;
    font-size: 0.7em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Header and data cells */
.matchDetails .byMonth.uB1 .bMH,
.matchDetails .byMonth.uB1 .bM {
    display: block;
    padding: 4px;
    font-size: 0.7em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional: smaller font for headers */
.matchDetails .byMonth.uB1 .bMH {
    font-size: 0.5em;
    font-weight: 600;
    color: #A3A3A3;
    text-align: center;
}

/* Title row */
.matchDetails .byMonth.uB1 .bMm {
    padding: 0.1em 0.5em;
    text-align: right;
    font-weight: bold;
}

/* Align first two columns left, rest center */
.matchDetails .byMonth.uB1 .bMH:first-child,
.matchDetails .byMonth.uB1 .bM:first-child {
    text-align: left;
}

/* Optional: images in cells */
.bM img {
    height: 20px;
    width: 20px;
    vertical-align: middle;
}

/* Year lines (optional visual separators) */
.yearLine {
    height: 1px;
    width: 100%;
    grid-column: 1 / -1;
}

.yearLineTop { background-color: #ccc; margin-bottom: 0.5em; }
.yearLineBottom { background-color: #333; }



.player-box .season-table {
  display: grid;
  gap: 8px;
  text-align: center;
  font-size: 0.8em;
  padding: 5px;
}


.player-box .season-table {
  grid-template-columns: 100px 60px 60px 60px;
}

/* Header style */
.player-box .season-table.header {
  background-color: #333;
  color: #fff;
  font-weight: 600;
}

/* Alternating row colors */
.player-box .season-table.row:nth-child(even) {
  background-color: #f5f5f5;
}

.player-box .season-table.row:nth-child(odd) {
  background-color: #ffffff;
}


/* Two-column layout */
.player-box .recent_performance {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
    padding: 1rem 0;
}

/* LEFT COLUMN rows */
.player-column-left .row {
    display: grid;
    grid-template-columns: 1.4fr 1fr; /* label | value */
    padding: 6px 8px;
    align-items: center;
}

/* Alternating backgrounds */
.player-column-left .row:nth-child(even) {
    background: #f5f5f5;
}

.player-column-left .row:nth-child(odd) {
    background: #ffffff;
}

/* Label cell */
.player-column-left .row > div:first-child {
    text-align: right;
    padding-right: 8px;
    font-weight: 500;
}

/* Value cell */
.player-column-left .row > div:last-child {
    text-align: left;
    padding-left: 8px;
}


.radar-tabs {
	text-align: center;
}

.radar-tab-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.radar-tab-btn:hover {
    background: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.radar-tab-btn.active {
    background: #e74c3c;
    color: #fff;
    font-weight: bold;
}

#radar-tooltip {
  position: absolute;
  display: none;
  background: black;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  pointer-events: none;
  font-size: 12px;
  z-index: 999999; /* ← the important part */
}

#radarChart svg {
  overflow: visible !important;
}

#radarChart {
  display: flex;
  justify-content: center;
  align-items: center;
}





/* On mobile, stack them */
@media (max-width: 768px) {
	
  .bMm {
    font-size: 0.85em;
    text-align: left;
  }
  
  .flex-box {
    flex: 1 1 100%;
  }
  
  .player-box {
    flex: 1 1 100%; /* 1 per row on mobile */
  }
  
  .no-data-note {
	font-size: 0.6em;
	margin: 0.6em;
  }
  
}

@media (min-width:28.12em){
    .card-themed-hero--coach-captain .card-themed-hero-mask__logo{
        height:23.2rem;
        width:23.2rem
    }
}


@media (min-width:37.5em){
    .card-themed-hero--coach-captain .card-themed-hero-mask-angle,.card-themed-hero--coach-captain .card-themed-hero-mask__angle,.card-themed-hero--coach-captain:focus .card-themed-hero-mask-angle,.card-themed-hero--coach-captain:focus .card-themed-hero-mask__angle,.card-themed-hero--coach-captain:hover .card-themed-hero-mask-angle,.card-themed-hero--coach-captain:hover .card-themed-hero-mask__angle{
        height:100%;
        width:13.125rem
    }
}

@media (max-width:28.12em){
    .card-player--compact-below-600 .card-themed-hero-mask-angle,.card-player--compact-below-600 .card-themed-hero-mask__angle{
        right:-3.04rem;
        width:7.97rem
    }
}
