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;
}

.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-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;
}

.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(210px, 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;

  /* hidden by default for animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.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;
}









/* 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*/

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

.bMH, .bMm, .bM {
	display: table-cell;
	color: #333333;
	text-transform: uppercase;
	font-size: 0.7em;
}

.bMH {
	font-size: 0.5em;
	color: #A3A3A3;
	font-weight: 600;
}

.bMm {
	padding: 0.1em 0.5em;
	text-align: right;
	font-weight: bold;
}

.matchDetails .row {
  display: grid;
  grid-template-columns: 2em 4em repeat(22, minmax(2em, 1fr));
  align-items: center;
}

.matchDetails .row2 {
  display: grid;
  grid-template-columns: 5em repeat(22, minmax(2em, 1fr));
  align-items: center;
}

.matchDetails {
  display: grid;
  grid-auto-flow: row;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.matchHeader {
  display: flex;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.matchHeader .bMH {
  flex: 0 0 auto;
  min-width: 3.5em;
  text-align: center;
  padding: 4px;
  background: inherit; /* so background stays consistent when sticky */
}

.matchScroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.matchRow {
  display: flex;
}

.matchRow .bM {
  flex: 0 0 auto;
  min-width: 3.5em;
  text-align: center;
  padding: 4px;
}

.bMH, .bM {
  padding: 4px;
  text-align: center;
  white-space: nowrap;
}

.bM img {
  height: 20px;
  vertical-align: middle; 
  width: 20px; 
} 

.yearLine {
    height: 1px;
    width: 100%;
    grid-column: 1 / -1;
}

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

.yearLineBottom {
    background-color: #333; /* Darker gray or black */
}




/* 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 */
  }
}

@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
    }
}
