@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* Ensure padding and borders do not expand element width */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --sidebar-width: clamp(300px, 20vw, 416px);
    --content-top-offset: 76px;
    --card-radius: 8px;
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Global App Container */
.app-container {
    font-family: 'Roboto', sans-serif;
    background-color: #0f0f0f;
    color: white;
    min-height: 100vh;
}

/* Fixed Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #111;
    color: white;
    display: flex;
    font-size: 24px;
    align-items: center;
    justify-content: center; /* center inner container */
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 1000;
}

.app-header-inner {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0px;
}


.dropdown-class-1 {
    width: 250px;
    height: 30px;
    color: #ffffff;
    background-color: #ffffff00;
    border-radius: 10px;
    padding: 5px 0px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* === Dash 3 Dropdown (React-Select v5) Overrides === */

/* Control (closed state) */
.dropdown-class-1 .Select-control,
.dropdown-class-1 .select__control {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
    min-height: 30px !important;
    height: 30px !important;
    box-shadow: none !important;
}

/* Selected value text */
.dropdown-class-1 .Select-value-label,
.dropdown-class-1 .select__single-value {
    color: #ffffff !important;
    font-size: 14px;
}

/* Typed search text */
.dropdown-class-1 .Select-input input,
.dropdown-class-1 .select__input,
.dropdown-class-1 .select__input input {
    color: #ffffff !important;
}

/* Placeholder */
.dropdown-class-1 .Select-placeholder,
.dropdown-class-1 .select__placeholder {
    color: rgba(255,255,255,0.6) !important;
}

/* Dropdown menu */
.dropdown-class-1 .Select-menu-outer,
.dropdown-class-1 .select__menu {
    background-color: #111 !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 8px !important;
}

/* Options */
.dropdown-class-1 .Select-option,
.dropdown-class-1 .select__option {
    background-color: #111 !important;
    color: #ffffff !important;
    font-size: 14px;
}

/* Option hover */
.dropdown-class-1 .Select-option.is-focused,
.dropdown-class-1 .select__option--is-focused {
    background-color: rgba(255,255,255,0.1) !important;
}

/* Remove blue focus ring */
.dropdown-class-1 .Select-control:focus,
.dropdown-class-1 .select__control--is-focused {
    box-shadow: none !important;
    border-color: rgba(255,255,255,0.4) !important;
}

.dash-dropdown-content {
    width: 250px;
    height: 180px;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 14px;
    align-items: center;
}

.dash-options-list-option {
    padding: 8px 12px;
    color: #fff;
}

/* Left Sidebar */
.sidebar-left {
    position: fixed;
    top: var(--content-top-offset);
    left: 0;
    width: var(--sidebar-width);
    bottom: 0;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-left::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
    display: none;
}

.left-sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 18px 20px;
    color: #fff;
}

.left-nav-heading {
    margin-bottom: 18px;
}

.left-nav-eyebrow {
    color: rgba(255,255,255,0.48);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.left-nav-title {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.08;
}

.left-nav-links {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.left-nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.left-nav-link:hover {
    border-color: rgba(255,255,255,0.28);
    color: #fff;
    text-decoration: none;
}

.left-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    background: transparent;
}

.left-sidebar-content > .left-panel:first-child {
    margin-top: 0;
}

.left-panel-title {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.90);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.left-panel-copy,
.left-panel-list,
.left-use-copy {
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    line-height: 1.45;
}

.left-panel-copy {
    margin: 0;
}

.left-panel-copy + .left-panel-copy {
    margin-top: 8px;
}

.left-panel-list {
    margin: 0;
    padding-left: 18px;
}

.left-panel-list li + li {
    margin-top: 8px;
}

.left-use-list {
    display: grid;
    gap: 10px;
}

.left-use-item {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.left-use-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.left-use-title {
    margin-bottom: 3px;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 800;
}

.left-glossary-list {
    display: grid;
    gap: 6px;
}

.left-glossary-item {
    display: grid;
    grid-template-columns: max-content max-content 1fr;
    column-gap: 8px;
    align-items: baseline;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    line-height: 1.45;
}

.left-glossary-term {
    color: rgba(255,255,255,0.88);
    font-weight: 800;
}

.left-glossary-separator {
    color: rgba(255,255,255,0.42);
}

.left-legal-card {
    margin-top: auto;
}

.left-credit-copy {
    color: rgba(255,255,255,0.50);
}

.left-credit-copy a {
    color: rgba(255,255,255,0.72);
    font-weight: 800;
    text-decoration: none;
}

.left-credit-copy a:hover,
.left-credit-copy a:focus-visible {
    color: rgba(255,255,255,0.90);
    text-decoration: underline;
}

.mobile-legal-card {
    display: none;
}

/* Right Sidebar */
.sidebar-right {
    position: fixed;
    top: var(--content-top-offset);
    right: 0;
    width: var(--sidebar-width);
    bottom: 0;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.top100-sidebar {
    height: 100%;
    display: grid;
    grid-auto-rows: auto;
    align-content: start;
    gap: 14px;
    padding: 0 12px 18px;
    overflow: hidden;
}

.top100-section {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    background: transparent;
    overflow: hidden;
}

.top100-header {
    flex: 0 0 auto;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: transparent;
}

.top100-title {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.90);
}

.top100-subtitle {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255,255,255,0.48);
}

.top100-list {
    flex: 0 0 auto;
    max-height: 298px;
    overflow-y: auto;
    padding: 10px 4px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.top100-list::-webkit-scrollbar {
    display: none;
}

.top100-item {
    min-height: 64px;
    display: grid;
    grid-template-columns: 16px 26px 42px minmax(0, 1fr) 52px 34px;
    align-items: center;
    column-gap: 3px;
    padding: 8px 10px 8px 12px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--card-radius);
    background: #1a1a1a80;
    color: white;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.top100-item:hover {
    border-color: rgba(255,255,255,0.22);
    background: rgba(26,26,26,0.62);
}

.top100-trend {
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.trend-up {
    color: #35d07f;
}

.trend-down {
    color: #ff5d6c;
}

.top100-headshot-wrap {
    width: 42px;
    height: 42px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top100-rank-position {
    font-size: 15px;
    font-weight: 900;
    color: rgba(255,255,255,0.92);
    line-height: 1;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.top100-rank-trend {
    width: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top100-rank-trend:empty {
    visibility: hidden;
}

.top100-rank-trend .top100-trend {
    font-size: 11px;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}

.top100-headshot-flag {
    position: absolute;
    right: -4px;
    bottom: -3px;
    z-index: 2;
    font-size: 10px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.85));
}

.top100-headshot {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    object-fit: cover;
    object-position: top center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.34);
    position: relative;
    z-index: 1;
    box-shadow: inset 0 -8px 14px rgba(0,0,0,0.24);
}

.top100-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 10px;
}

.top100-name {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255,255,255,0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.05;
}

.top100-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 12px;
    overflow: hidden;
}

.top100-flag {
    font-size: 13px;
    line-height: 1;
}

.top100-draft {
    font-size: 11px;
    color: rgba(255,255,255,0.62);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.top100-draft-year {
    font-size: 11px;
    color: rgba(255,255,255,0.62);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.top100-draft-second-round {
    color: #d4b46d;
    font-weight: 900;
}

.top100-results {
    display: grid;
    grid-template-columns: repeat(5, 5px);
    gap: 5px;
    width: 45px;
    flex: 0 0 45px;
    align-items: center;
    margin-right: 4px;
}

.top100-result {
    width: 5px;
    height: 5px;
    display: block;
    border-radius: 50%;
    background: rgba(255,255,255,0.26);
}

.top100-result:nth-child(1) {
    opacity: 1;
}

.top100-result:nth-child(2) {
    opacity: 0.86;
}

.top100-result:nth-child(3) {
    opacity: 0.70;
}

.top100-result:nth-child(4) {
    opacity: 0.52;
}

.top100-result:nth-child(5) {
    opacity: 0.34;
}

.result-win {
    background: rgba(53,208,127,0.76);
}

.result-loss {
    background: rgba(255,93,108,0.76);
}

.result-inactive {
    background: rgba(255,255,255,0.45);
}

.result-neutral {
    background: rgba(255,255,255,0.22);
}

.top100-overall {
    position: relative;
    width: 52px;
    min-height: 38px;
    display: grid;
    grid-template-columns: 12px 34px;
    grid-template-rows: 20px 10px;
    align-items: center;
    justify-content: center;
    column-gap: 3px;
    row-gap: 0;
    transform: translateY(4px);
}

.top100-overall-value {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 12px 34px;
    align-items: center;
    justify-content: start;
    column-gap: 3px;
    min-height: 20px;
}

.top100-overall-number {
    grid-column: 2;
    grid-row: 1;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    width: 34px;
    text-align: center;
}

.top100-overall-label {
    grid-column: 2;
    grid-row: 2;
    font-size: 7px;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.52);
    text-align: center;
}

.top100-overall-trend {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 12px;
    min-width: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.top100-overall-trend:empty {
    display: none;
}

.top100-overall-trend .top100-trend {
    display: inline-block;
    font-size: 11px;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
    transform: translateY(4px);
}

.top100-action {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.96);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.42);
    background: rgba(17,17,17,0.58);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.top100-action:hover {
    transform: translateX(1px);
    color: #fff;
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.92);
}

.top100-action-icon {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
}

.birthday-item {
    grid-template-columns: 16px 26px 42px minmax(0, 1fr) 52px 34px;
}

.birthday-meta,
.birthday-empty {
    font-size: 11px;
    color: rgba(255,255,255,0.52);
}

.birthday-action {
    grid-column: 6;
}

.birthday-empty {
    padding: 12px 10px;
}

/* Main Content Area */
.page-content {
    padding-top: var(--content-top-offset);
    padding-bottom: 96px;
    margin-left: var(--sidebar-width);
    margin-right: var(--sidebar-width);
    /* padding: 20px; */
}

/* Centered Main Container */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Card Component */
.card {
    /* height: 225px; */
    background-color: #1a1a1a80;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--card-radius);
    /* padding: 30px; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Header Card Background */
.header-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    margin-bottom: 0px;
    padding-bottom: 0px;
    isolation: isolate;
    border: 0;
    border-radius: var(--card-radius);
    background-clip: border-box;
    background-color: rgba(12, 12, 15, 0.72);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.36),
        0 2px 8px rgba(0, 0, 0, 0.24);
}

.header-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.015) 22%, rgba(0,0,0,0.16) 66%, rgba(0,0,0,0.40) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.22) 0%, transparent 38%, rgba(0,0,0,0.18) 100%),
        rgba(0, 0, 0, 0.14);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

.header-card::after {
    content: none;
}

.header-card > * {
    position: relative;
    z-index: 1;
}

.card-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    text-align: center;
    /* width: 100%; */
}



.card-panel img {
    max-height: 260px;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    align-self: center;
}


/* Debug split background halves */
.card-panel-bg-layer-1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.panelbg-third {
    flex: 1;
    height: 100%;
    padding-bottom: 60px;
}

/* Debug colors */
.card-panel-bg-layer-1 .panelbg-third:first-child {
    /* background-color: rgba(255, 0, 0, 0.4); */
}

.card-panel-bg-layer-1 .panelbg-third:nth-child(2) {
    /* background-color: rgba(255, 165, 0, 0.4); */
}

.card-panel-bg-layer-1 .panelbg-third:last-child {
    /* background-color: rgba(0, 255, 0, 0.4); */
}

/* Secondary Card Row (Below Header) */
.player-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 24px;
}

.card-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.content-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 32px;
    overflow: visible;
}

.summary-detail-row .content-card {
    min-height: 245px;
}

.content-card h2,
.card-subtitle,
.lower-feature-heading {
    width: 100%;
    margin: 0;
    padding: 0 4px 8px;
    color: rgba(255,255,255,0.72);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.overall-content-card {
    gap: 10px;
}

.overall-card-section {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.overall-chart-section {
    justify-content: center;
    padding-bottom: 4px;
}

.overall-history-section {
    justify-content: flex-start;
    padding-top: 4px;
}

.card-subtitle {
    opacity: 1;
}

.overall-rating-graph {
    height: 190px;
    min-height: 190px;
    margin-top: 8px;
    margin-bottom: 2px;
}

.history-subtitle {
    margin-top: 0;
    opacity: 1;
}

.player-history-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 10px;
    padding: 2px 2px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    flex: 1 1 auto;
}

.history-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    box-shadow: none;
}

.draft-history-card {
    width: min(100%, 296px);
    min-width: 263px;
    height: 148px;
    display: grid;
    grid-template-columns: 38.2% 61.8%;
    align-items: stretch;
    padding: 10px;
}

.draft-origin-panel,
.draft-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.draft-origin-panel {
    align-items: center;
    padding-right: 10px;
    border-right: 1px solid rgba(255,255,255,0.10);
}

.draft-origin-logo {
    width: 84px;
    height: 62px;
    object-fit: contain;
    margin-bottom: 9px;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.9)) drop-shadow(0 7px 12px rgba(0,0,0,0.5));
}

.draft-origin-kicker,
.draft-info-kicker {
    color: rgba(255,255,255,0.56);
    font-size: 11px;
}

.draft-origin-name {
    width: 100%;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-info-panel {
    padding: 4px 0 4px 8px;
}

.draft-info-kicker {
    text-align: center;
    margin-bottom: 8px;
}

.draft-info-table {
    display: flex;
    flex-direction: column;
}

.draft-info-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.20);
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
}

.draft-info-row:last-child {
    border-bottom: 0;
}

.draft-info-row span {
    color: rgba(255,255,255,0.82);
    /* font-weight: 800; */
}

/* .draft-info-row strong {
    font-weight: 900;
} */

.history-empty-card {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.66);
}

.team-history-card {
    width: 112px;
    height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px 10px;
}

.team-history-logo {
    width: 66px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.9)) drop-shadow(0 7px 12px rgba(0,0,0,0.5));
}

.team-history-year {
    min-height: 14px;
    color: #ffffff;
    font-size: 13px;
    /* font-weight: 700; */
    line-height: 1;
    text-align: center;
}

.team-history-dash {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin: 4px 0;
}

.titles-awards-content-card {
    gap: 14px;
}

.career-stats-content-card {
    gap: 14px;
}

.titles-awards-strip {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    flex: 1 1 auto;
}

.award-combo-card {
    flex: 0 0 auto;
    width: min(100%, 296px);
    min-width: 263px;
    height: 148px;
    display: grid;
    grid-template-columns: 38.2% 61.8%;
    align-items: stretch;
    padding: 10px;
    scroll-snap-align: start;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    box-shadow: none;
}

.career-stat-combo-card {
    width: min(100%, 296px);
    min-width: 263px;
    grid-template-columns: 38.2% 61.8%;
}

.awards-empty-card {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    box-shadow: none;
}

.award-card-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 4px 12px 4px 0;
    border-right: 1px solid rgba(255,255,255,0.10);
}

.award-card-icon {
    width: 42px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.9)) drop-shadow(0 8px 14px rgba(0,0,0,0.45));
}

.award-card-count {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 0.95;
}

.award-card-label {
    margin-top: 7px;
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.career-stat-summary {
    gap: 6px;
}

.career-stat-count {
    font-size: 34px;
    line-height: 0.95;
}

.career-stat-label {
    margin-top: 0;
    line-height: 1.1;
}

.career-stat-exact {
    min-height: 14px;
    color: rgba(255,255,255,0.52);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.award-card-ranks {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 4px 4px 18px;
}

.award-ranks-title {
    color: rgba(255,255,255,0.56);
    font-size: 11px;
    /* font-weight: 700; */
    line-height: 1;
    text-align: center;
    margin-bottom: 8px;
}

.award-ranks-table {
    display: flex;
    flex-direction: column;
}

.award-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.20);
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
}

.award-rank-row:last-child {
    border-bottom: 0;
}

.award-rank-row span {
    color: rgba(255,255,255,0.84);
    /* font-weight: 800; */
}

.award-rank-row strong {
    color: #ffffff;
    /* font-weight: 800; */
    text-align: right;
}

.awards-empty-card {
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.66);
    font-size: 13px;
    font-weight: 700;
}

/* Subtle divider below season stats */
.season-stats-row {
    padding-bottom: 6px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.15); */
}

.last5-graph {
    width: 100%;
    max-width: 100%;
}

.last5-bottom-spacer {
    flex: 0 0 14px;
    width: 100%;
}

.lower-feature-card {
    position: relative;
    min-height: 980px;
    width: 100%;
    padding: 32px 20px 72px;
    align-items: stretch;
    justify-content: stretch;
    column-gap: 24px;
    row-gap: 20px;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    grid-template-columns: minmax(270px, 0.86fr) minmax(0, 1.14fr);
    overflow: hidden;
    box-shadow:
        0 18px 42px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(255,255,255,0.12);
}

.lower-feature-card::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    height: 46px;
    pointer-events: none;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(26,26,26,0), rgba(26,26,26,0.34));
}

.lower-feature-heading {
    grid-column: 1 / -1;
}

.lower-card-panel {
    min-width: 0;
    min-height: 0;
    border-radius: 6px;
}

.lower-card-panel-rating {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    grid-column: 1;
    grid-row: 2;
}

.lower-card-panel-context {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    grid-column: 2;
    grid-row: 2;
}

.lower-card-panel-breakdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    grid-column: 1;
    grid-row: 3;
    padding-top: 18px;
}

.lower-card-panel-stats {
    display: flex;
    align-items: flex-start;
    grid-column: 2;
    grid-row: 3 / span 2;
}

.lower-card-panel-note {
    display: flex;
    justify-content: center;
    grid-column: 1;
    grid-row: 4;
    padding-top: 0;
    transform: translateY(20px);
}

.ratings-card {
    width: 100%;
    max-width: 330px;
    align-self: center;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 10px 26px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
}

.ratings-card-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.42));
    border-bottom: 1px solid color-mix(in srgb, var(--team-accent) 45%, transparent);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.35);
}

.ratings-card-player-img,
.ratings-card-team-img {
    height: 40px;
    max-width: 76px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.9)) drop-shadow(0 8px 14px rgba(0,0,0,0.45));
}

.ratings-card-player-img {
    justify-self: center;
}

.ratings-card-team-img {
    justify-self: center;
}

.similar-players-card {
    min-height: auto;
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012) 48%, rgba(0,0,0,0.18)),
        #1a1a1a80;
    border-color: rgba(255, 255, 255, 0.14);
}

.similar-player-groups {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.similar-player-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.similar-player-group-title {
    color: rgba(255,255,255,0.48);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.similar-player-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.similar-player-link {
    min-height: 42px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px 8px 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.similar-player-link:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.065);
    color: #ffffff;
    transform: translateY(-1px);
}

.similar-player-rank {
    width: 30px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: rgba(255,255,255,0.54);
    background: rgba(255,255,255,0.045);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.similar-player-name {
    min-width: 0;
    overflow: hidden;
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ratings-card-year {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.ratings-card-rows {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 9px 12px;
}

.rating-row-button {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.rating-row-button:hover,
.rating-row-button.is-active {
    background: rgba(255,255,255,0.08);
    border-color: color-mix(in srgb, var(--team-accent) 46%, rgba(255,255,255,0.18));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.rating-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.78);
}

.rating-row-svg {
    width: 13px;
    height: 13px;
    opacity: 0.82;
    filter: none;
}

.rating-row-main {
    min-width: 0;
}

.rating-row-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    color: rgba(255,255,255,0.92);
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating-progress-track {
    width: 100%;
    height: 5px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0,0,0,0.28);
}

.rating-progress-fill {
    height: 100%;
    border-radius: inherit;
    box-shadow: none;
}

.rating-row-value {
    justify-self: end;
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: right;
    text-shadow: none;
}

.best-percentiles-card {
    width: 100%;
    max-width: 330px;
    align-self: center;
    padding: 14px 14px 16px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.022));
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 10px 26px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05);
}

.best-percentiles-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.best-percentiles-title {
    color: rgba(255,255,255,0.94);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.best-percentiles-subtitle {
    color: rgba(255,255,255,0.52);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.best-percentiles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.best-percentile-row {
    min-width: 0;
}

.best-percentile-copy,
.best-percentile-values {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.best-percentile-label {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.best-percentile-category {
    color: rgba(255,255,255,0.46);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.best-percentile-raw {
    color: rgba(255,255,255,0.66);
    font-size: 11px;
    font-weight: 500;
}

.best-percentile-value {
    color: rgba(255,255,255,0.88);
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
}

.best-percentile-track {
    width: 100%;
    height: 5px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
}

.best-percentile-fill {
    height: 100%;
    border-radius: inherit;
}

.rating-history-graph {
    width: 100%;
    min-height: 240px;
    flex: 0 0 240px;
    margin-top: -2px;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.rating-context-panel-content,
.rating-stat-chart-content,
.rating-stat-note-content {
    width: 100%;
    min-width: 0;
}

.rating-stat-chart-content {
    display: grid;
    gap: 14px;
}

.rating-context-panel-content {
    display: grid;
    gap: 14px;
}

.rating-explainer-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: none;
}

.rating-explainer-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.rating-explainer-title {
    color: rgba(255,255,255,0.96);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.15;
}

.rating-explainer-kicker {
    color: rgba(255,255,255,0.48);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rating-explainer-copy {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.38;
}

.rating-explainer-formula {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 2px solid var(--team-accent);
    border-radius: 6px;
    background: rgba(0,0,0,0.24);
    color: rgba(255,255,255,0.94);
    font-family: "Times New Roman", Georgia, serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.35;
}

.rating-explainer-intro {
    color: rgba(255,255,255,0.84);
}

.rating-deep-dive {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.deep-dive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.deep-dive-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.deep-dive-subtitle {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.deep-dive-rating-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.deep-dive-rating-number {
    color: #ffffff;
    font-size: 56px;
    font-weight: 950;
    line-height: 0.9;
    text-shadow: 0 0 10px color-mix(in srgb, var(--team-accent) 42%, transparent);
}

.deep-dive-rating-label {
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.deep-dive-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.rating-breakdown-content {
    width: 80%;
    max-width: 330px;
    min-width: 0;
}

.deep-dive-metric {
    width: 100%;
    display: block;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.deep-dive-metric:hover,
.deep-dive-metric.is-active {
    background: rgba(255,255,255,0.06);
    border-color: color-mix(in srgb, var(--team-accent) 42%, rgba(255,255,255,0.14));
}

.deep-dive-metric-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
}

.deep-dive-metric-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
}

.deep-dive-metric-value {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 850;
}

.deep-dive-bar-track {
    position: relative;
    height: 22px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255,255,255,0.075);
    border: 1px solid rgba(255,255,255,0.10);
}

.deep-dive-bar-fill {
    height: 100%;
    border-radius: inherit;
    opacity: 0.9;
}

.deep-dive-percentile-label {
    position: absolute;
    inset: 0 9px 0 auto;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.92);
    font-size: 11px;
    font-weight: 900;
    text-transform: none;
    white-space: nowrap;
}

.rating-deep-dive-empty {
    color: rgba(255,255,255,0.68);
    padding: 20px;
}

.rating-stat-charts {
    width: 100%;
    min-height: 500px;
    margin-top: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.rating-stat-note {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
}

.rating-stat-note-content {
    width: 80%;
    max-width: 330px;
}

.rating-stat-note-title {
    margin-bottom: 6px;
    color: rgba(255,255,255,0.96);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.15;
}

.rating-stat-note-copy {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.38;
    text-align: left;
}

/* Mobile: Hide Header and Sidebars */
@media (max-width: 1660px) {
    .app-header {
        font-size: 18px;
        height: 56px;
    }

    .sidebar-left {
        display: none !important;
    }

    .sidebar-right {
        display: none !important;
    }

    .page-content {
        margin-left: 12px;
        margin-right: 12px;
        margin-bottom: 12px;
        margin-top: 66px; /* header height (56px) + breathing space */
        padding-bottom: 72px;
    }

    .mobile-legal-card {
        display: block;
        margin-top: 16px;
        padding: 14px;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 8px;
        background: transparent;
    }
}

/* ======================================================
   DEBUG UTILITIES
   Toggle by adding class "debug-mode" to .app-container
   ====================================================== */

:root {
    --debug-border: 1px dashed rgb(15, 255, 43);
    --Dash-Fill-Interactive-Strong: #ffffff;
}

.debug-mode * {
    outline: var(--debug-border);
}

.debug-outline {
    outline: var(--debug-border);
}

/* Player & Team Styling */
.player-name {
    font-size: 28px;
    font-weight: 700;
}

.team-name {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.8;
}

/* Drop shadow for all right header panel text */
.card-panel-header-left .player-name,
.card-panel-header-left .team-name,
.card-panel-header-left .career-indicator,
.card-panel-header-left .header-info-row .p1,
.card-panel-header-left .header-info-row .p2,
.card-panel-header-left .header-info-row .p3 {
    text-shadow: 0px 6px 18px rgba(0,0,0,0.6);
}

.header-info-row {
    padding: 32px;
    padding-top: 16px;
    padding-bottom: 8px;
}

/* Stat Typography */
.p1 {
    font-size: 16px;
    font-weight: 500;
}

/* Ensure flag + jersey number align vertically */
.header-info-row .p1 {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.p2 {
    font-size: 14px;
    opacity: 0.8;
}

.p3 {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}


/* Stack card panels on smaller screens */
@media (max-width: 800px) {

    .app-header-inner {
        margin: 0px 12px;
    }

    .page-content {
        padding-top: 0px;
    }
    .player-detail-stack {
        gap: 12px;
        margin-top: 12px;
    }

    .card {
        flex-direction: column;
        height: auto;
        align-items: stretch;
        padding-left: 8px;
        padding-right: 8px;
        padding-bottom: 10px;
    }

    .header-card {
        gap: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        border-radius: var(--card-radius);
        border: 0;
        box-shadow:
            0 18px 34px rgba(0, 0, 0, 0.38),
            0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .header-card::before {
        background:
            linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.018) 24%, rgba(0,0,0,0.15) 58%, rgba(0,0,0,0.38) 100%),
            linear-gradient(90deg, rgba(0,0,0,0.24) 0%, transparent 44%, rgba(0,0,0,0.14) 100%),
            rgba(0, 0, 0, 0.10);
    }

    /* Right panel first */
    .card > .card-panel:nth-child(2) {
        order: -1;
    }

    .card-panel {
        width: 100%;
    }

    .header-card > .card-panel:first-child {
        width: 100%;
        min-height: 198px;
        margin: 0;
        display: flex;
        justify-content: flex-end;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .header-card > .card-panel:first-child > img {
        height: 198px;
        max-height: none;
        object-fit: contain !important;
        object-position: bottom center;
        align-self: center;
    }

    .card-panel img {
        max-height: 200px;
    }
    .card-row {
        flex-direction: column;
        margin-top: 0;
    }

    .player-detail-primary-row {
        gap: 12px;
    }

    .lower-feature-card {
        min-height: 0;
        gap: 24px;
        padding: 32px 8px 28px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .lower-feature-heading {
        padding-left: 4px;
        padding-right: 4px;
    }

    .lower-feature-card::after {
        right: 8px;
        bottom: 8px;
        left: 8px;
        height: 18px;
    }

    .lower-card-panel {
        min-height: 0;
    }

    .lower-card-panel-rating,
    .lower-card-panel-context,
    .lower-card-panel-breakdown,
    .lower-card-panel-stats,
    .lower-card-panel-note {
        grid-column: 1;
        grid-row: auto;
    }

    .lower-card-panel-breakdown,
    .lower-card-panel-note {
        padding-top: 0;
    }

    .lower-card-panel-note {
        transform: none;
    }

    .lower-card-panel-rating,
    .lower-card-panel-context,
    .lower-card-panel-breakdown,
    .lower-card-panel-stats,
    .lower-card-panel-note {
        align-items: center;
    }

    .lower-card-panel-context,
    .lower-card-panel-breakdown,
    .lower-card-panel-note {
        justify-content: flex-start;
    }

    .lower-card-panel-stats {
        min-height: 0;
        margin-top: 2px;
    }

    .ratings-card {
        width: 80%;
        max-width: 330px;
    }

    .rating-context-panel-content,
    .rating-stat-chart-content,
    .rating-breakdown-content,
    .rating-stat-note-content {
        width: min(calc(100% - 16px), 330px);
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }

    .rating-context-panel-content,
    .rating-stat-chart-content {
        justify-items: center;
    }

    .rating-history-graph,
    .rating-stat-charts {
        width: 100%;
        max-width: min(100%, 330px);
        margin-left: auto;
        margin-right: auto;
    }

    .rating-history-graph .js-plotly-plot,
    .rating-stat-charts .js-plotly-plot {
        margin-left: auto;
        margin-right: auto;
    }

    .rating-stat-chart-content {
        gap: 18px;
    }

    .rating-explainer-card,
    .rating-explainer-card p,
    .rating-explainer-formula {
        text-align: left;
    }

    .rating-deep-dive {
        min-height: 340px;
    }

    /* Make Season Stats card appear first on mobile */
    .player-detail-primary-row > .content-card:nth-child(2) {
        order: -1;
        padding-bottom: 18px;
    }

    .last5-graph {
        height: 206px;
        min-height: 0;
        margin-bottom: 0 !important;
    }

    .last5-bottom-spacer {
        flex-basis: 10px;
    }

    .overall-content-card {
        gap: 8px;
        padding-bottom: 14px;
    }

    .overall-card-section {
        flex: 0 0 auto;
    }

    .overall-chart-section {
        min-height: 198px;
        justify-content: flex-start;
    }

    .overall-rating-graph {
        height: 178px;
        min-height: 178px;
        margin-top: 8px;
        margin-bottom: 4px;
    }

    .overall-history-section {
        padding-top: 0;
    }

    .card-panel-header-left {
        align-items: center;
        padding: 26px 26px 8px;
        text-align: center;
    }

    .card-panel-header-left .player-name,
    .card-panel-header-left .team-name,
    .card-panel-header-left .career-indicator {
        text-align: center;
        width: 100%;
    }

    .card-panel-header-left .header-info-row {
        gap: 10px;
        padding: 22px 0 4px;
    }

    /* Center card contents on mobile while preserving section-label alignment */
    .content-card {
        align-items: center;
        min-height: auto;
        text-align: center;
    }

    .summary-detail-row .content-card {
        min-height: auto;
        padding-bottom: 14px;
    }

    .content-card h2 {
        text-align: left;
    }

    .card-subtitle {
        text-align: left;
    }

    .similar-player-groups {
        grid-template-columns: 1fr;
    }

    .similar-player-group {
        width: 100%;
    }

    .similar-player-name {
        white-space: normal;
    }

    .award-combo-card {
        width: min(100%, 296px);
        min-width: min(100%, 296px);
        height: 132px;
        grid-template-columns: 38.2% 61.8%;
        padding: 8px;
    }

    .career-stats-content-card {
        padding-left: 8px;
        padding-right: 8px;
    }

    .titles-awards-strip,
    .career-stats-strip {
        gap: 12px;
        padding: 2px 2px 8px;
    }

    .career-stat-combo-card {
        width: min(100%, 296px);
        min-width: min(100%, 296px);
    }

    .award-card-count {
        font-size: 34px;
    }

    .career-stat-count {
        font-size: 30px;
    }

    .award-card-label,
    .award-rank-row span {
        font-size: 13px;
    }

    .award-rank-row strong {
        font-size: 13px;
    }

    .award-card-ranks {
        padding: 6px 4px 6px 14px;
    }

    .player-history-strip {
        margin-top: 8px;
    }

    .player-history-strip,
    .titles-awards-strip {
        flex: 0 0 auto;
        padding-bottom: 4px;
    }

    .draft-history-card {
        min-width: 236px;
        height: 132px;
        grid-template-columns: 38.2% 61.8%;
    }

    .draft-origin-name {
        font-size: 11px;
    }

    .draft-info-panel {
        padding-left: 8px;
    }

    .draft-info-row {
        gap: 8px;
        font-size: 12px;
    }

    .team-history-card {
        width: 102px;
        height: 132px;
    }

    .header-info-row {
        padding: 0px;
        padding-top: 16px;
        padding-bottom: 8px;
    }

    /* Reduce overall rating size on mobile */
    .panelbg-third div:first-child {
        font-size: 42px !important;
    }

    /* Reduce percentile (99th) size on mobile */
    .p3 {
        font-size: 10px;
    }

    /* Reduce dropdown MENU size on mobile (options only) */
    .dropdown-class-1 .select__menu {
        font-size: 12px;
    }

    .dropdown-class-1 .select__option {
        padding: 4px 0px !important;
        font-size: 12px;
    }

    .dropdown-class-1 .select__menu-list {
        padding-top: 2px;
        padding-bottom: 2px;
    }
}

@media (max-width: 400px) {
    .app-header {
        background-color: #111111dc;
    }

    .dropdown-class-1 {
        width: 180px;
        font-size: 12px;
    }

    .dash-dropdown-content {
        width: 180px;
        font-size: 12px;
    }

    .dash-dropdown-trigger {
        padding: 0px 0px;
    }

    .p1 {
        font-size: 14px;
        font-weight: 400;
    }

    .p2 {
        font-size: 12px;
        opacity: 0.8;
    }
    .p3 {
        font-size: 10px;
        opacity: 0.6;
        margin-top: 2px;
    }
    .career-indicator {
    font-size: 8px;
    opacity: 0.6;
    margin-top: 4px;
}
}

/* Subtle career indicator (inactive players) */
.career-indicator {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}

/* Desktop-only headshot spacer (debug) */
.desktop-headshot-spacer {
    display: block;
    height: 14px;
    width: 100%;
    /* background-color: rgba(0, 255, 0, 0.6); */
}

/* Hide spacer on mobile */
@media (max-width: 800px) {
    .desktop-headshot-spacer {
        display: none;
    }
}
