/* =======================================================================================================================================
   styles.css — Soccer Academy Platform | Global Stylesheet
   =======================================================================================================================================
   Single stylesheet shared across app.php, playerData.php, and mediaImport.php.
   Organised into the following sections (search the headings to jump):
     • CSS Variables & Reset
     • Login Screen
     • Main App Screen — top nav bar, content sections, filter bar, dropdowns
     • Dashboard — filter bar, athlete table rows, bar-chart columns
     • Athlete Detail Modal — image, stats cards, photos carousel,
       game-data graphs, micro-lesson card
     • Albums Carousel
     • Teams Carousel — player cards
     • Photos Grid — responsive breakpoints (1 / 2 / 3 / 4 columns)
     • Media Import Screen — nav bar, image viewer, sidebar form
     • New Player Modal
     • Player Data Page — filter bar, player track, previous entries
     • New Entry Modal — category pills, chronometer, recent-entries graph
     • Responsive Overrides (≤ 799 px)
     • Utility: .hidden
   ======================================================================================================================================= */

/* CSS VARIABLES */
:root {
    --card-transition-time: 0.3s;
    --card-hover-scale: 1.15;

    --fontFamily: 'Montserrat', sans-serif; 
    --fontWeightNormal: 400;
    --fontWeightMedium: 500;
    --fontWeightSemiBold: 600;
    --fontWeightBold: 700;
    --fontDark: #333;
    --fontGrey: #999;
    --fontLight: #FFF;
    --fontSizeBody: 0.9rem;
    --fontSizeTitle: 1.8rem;
    --fontSizeMini: 0.7rem;

    --brandAccent: #797979;
    --buttonPrimaryBlue: #1976D2;

    /* Intro animation — tweak per screen */
    --intro-translate-data: 40px;
    --intro-gap-data: 20px;
    --intro-translate-teams: 40px;
    --intro-gap-teams: 30px;
    --intro-translate-media: 40px;
    --intro-gap-media: 40px;
    --intro-translate-rewards: 40px;
    --intro-gap-rewards: 30px;

    /* Mirrors GLENS book iframe — tune binding in GLENS.css :root for screenshot parity */
    --book-binding-gutter: 160px;
}

/* RESET STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--fontFamily);
}

/* LOGIN SCREEN STYLES */
#loginScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FAFAFA;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
    z-index: 1000;
}

.login-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.login-panel {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0px 26px 43.7px rgba(0, 0, 0, 0.08);
}

.login-header {
    text-align: center;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 1.5rem;
    color: var(--fontDark);
    margin-bottom: 30px;
}

.login-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeTitle);
    color: var(--fontDark);
    margin-bottom: 25px;
    text-align: left;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-label {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-align: left;
}

.login-input {
    width: calc(100% - 32px);
    padding: 20px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-family: var(--fontFamily);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    background: #FFFFFF;
    transition: border-color 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: var(--brandAccent);
    border-width: 4px;
}

.login-input::placeholder {
    color: var(--fontLight);
}

.login-button {
    width: 100%;
    padding: 15px;
    background: var(--brandAccent);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
}

.login-button:hover {
    background: color-mix(in srgb, var(--brandAccent) 85%, black);
}

.login-button:active {
    transform: scale(0.98);
}

.login-button:disabled {
    background: var(--fontLight);
    cursor: not-allowed;
}

.login-message {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    color: var(--fontGrey);
    text-transform: uppercase;
    text-align: left;
    line-height: 1.5;
}

.font-orange {
    color: var(--brandAccent);
}

.error-message {
    color: #d32f2f;
    font-size: var(--fontSizeMini);
    margin-top: 10px;
    display: none;
}

.error-message.show {
    display: block;
}

/* MAIN APP SCREEN */
#mainAppScreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TOP NAVIGATION BAR STYLES */
.top-nav-bar {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    margin: 0;
    padding: 0;
}

.top-nav-content {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    min-height: 60px;
}

.top-nav-logo {
    padding-left: 10px;
    width: 40px;
    min-width: 40px;
    flex-shrink: 0;
    opacity: 1;
    visibility: visible;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease, width 0.3s ease, min-width 0.3s ease, padding-left 0.3s ease;
}

.top-nav-logo img {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background-color: #F5F5F5;
}

.top-nav-buttons {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.nav-button {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
}

.nav-button:hover {
    border-color: var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
}

.nav-button.active {
    border: 2px solid var(--buttonPrimaryBlue);
    color: var(--fontDark);
    font-weight: var(--fontWeightSemiBold);
    background: transparent;
}

.nav-button.active:hover {
    color: var(--buttonPrimaryBlue);
}

.top-nav-author {
    padding-right: 10px;
    width: 40px;
    min-width: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.author-profile-image {
    width: calc(100% - 40px);
    max-width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #F5F5F5;
    cursor: pointer;
    display: block;
}

.author-profile-image:hover {
    border-color: var(--brandAccent);
}

.main-content-area {
    margin-top: 60px;
    padding-top: 0;
    height: calc(100vh - 60px);
    min-height: calc(100vh - 60px);
}

.content-section {
    display: none;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 10px;
    position: relative;
}

.content-section.active {
    display: flex;
    overflow-y: hidden;
    overflow-x: hidden;
}


.content-filter-bar {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    padding-bottom: 0px;
    padding-top: 10px;
    height: auto;
    min-height: auto;
    margin-top: auto;
    margin-bottom: 0px;
}

.filter-buttons-left {
    display: flex;
    gap: 4px;
    align-items: center;
}

.filter-buttons-right {
    display: flex;
    gap: 4px;
    align-items: center;
}

.filter-dropdown {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightMedium);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    background: #FFFFFF;
    border: 2px solid var(--fontGrey);
    border-radius: 8px;
    padding: 10px 15px;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.filter-dropdown:hover {
    border-color: var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
}

.filter-dropdown.selected {
    border-color: var(--buttonPrimaryBlue);
}

.filter-dropdown.active {
    border: 2px solid var(--buttonPrimaryBlue);
    background: #FFFFFF;
    color: var(--fontDark);
}

.dropdown-caret {
    width: 10px;
    height: 10px;
    opacity: 0.6;
}

.filter-select option {
    text-transform: uppercase;
}

.filter-select {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    background: #FFFFFF;
    border: 2px solid var(--fontGrey);
    border-radius: 8px;
    padding: 10px 15px;
    padding-right: 35px;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    cursor: pointer;
    min-width: 50px;
    appearance: none;
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('img/ui/carret.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

.filter-select:hover {
    border-color: var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
}

.filter-select:focus {
    outline: none;
    border-color: var(--buttonPrimaryBlue);
}

.filter-select.active {
    border: 2px solid var(--buttonPrimaryBlue);
    color: var(--fontDark);
}

.teams-filter {
    max-width: 200px;
}

.position-filter {
    width: 120px;
}

/* When heart filter active (black global button): team/position filters non-interactive */
.dashboard-filter-bar:has(.dashboard-heart-btn.has-items.filter-active) .filter-buttons-left .filter-select {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}

.dashboard-filter-bar:has(.dashboard-heart-btn.has-items.filter-active) .filter-buttons-left .filter-select:hover {
    border-color: var(--fontGrey);
    color: var(--fontGrey);
}

/* When heart filter active: + button disabled and faded (DATA screen) */
.dashboard-filter-bar:has(.dashboard-heart-btn.has-items.filter-active) .filter-buttons-right .dashboard-new-entry-btn {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}

/* PHOTOS/MEDIA: no nav heart — class toggled in JS when global heart filter is on */
.photos-filter-bar.media-heart-filter-active .filter-buttons-left .filter-select,
.teams-filter-bar:has(.dashboard-heart-btn.has-items.filter-active) .filter-buttons-left .filter-select {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}

.photos-filter-bar.media-heart-filter-active .filter-buttons-left .filter-select:hover,
.teams-filter-bar:has(.dashboard-heart-btn.has-items.filter-active) .filter-buttons-left .filter-select:hover {
    border-color: var(--fontGrey);
    color: var(--fontGrey);
}

/* When heart filter active: + button disabled and faded (PHOTOS and TEAMS screens) */
.photos-filter-bar.media-heart-filter-active .filter-buttons-right .dashboard-new-entry-btn,
.teams-filter-bar:has(.dashboard-heart-btn.has-items.filter-active) .filter-buttons-right .dashboard-new-entry-btn {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}

/* Heart on cards (PHOTOS grid, TEAMS carousel) — 10px from top-right of image */
.photo-card-image-wrapper .card-heart-wrap,
.player-image-container .card-heart-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* PHOTOS grid: heart only in DOM for single-athlete drill-down (.card-heart-wrap--media-player-exit) */
.photo-card-image-wrapper .card-heart-wrap {
    top: 10px;
    bottom: auto;
    right: 10px;
    opacity: 0;
    transition: opacity var(--card-transition-time) ease;
}

.photo-card-image-wrapper .card-heart-wrap.card-heart-wrap--media-player-exit {
    display: block;
    opacity: 1 !important;
}

/* Single-player drill-down: close = X — default matches former heart hover (black, white border) */
.photo-card-image-wrapper .card-heart-wrap.card-heart-wrap--media-player-exit .media-player-exit-btn {
    background: #000000;
    outline: 2px solid #FFFFFF;
    outline-offset: -2px;
    box-shadow: none;
}

.photo-card-image-wrapper .card-heart-wrap.card-heart-wrap--media-player-exit .media-player-exit-btn:hover,
.photo-card-image-wrapper .card-heart-wrap.card-heart-wrap--media-player-exit .media-player-exit-btn:focus-visible {
    background: #1a1a1a;
    outline-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.photo-card-image-wrapper .card-heart-wrap.card-heart-wrap--media-player-exit .media-player-exit-icon {
    width: 14px;
    height: 14px;
    display: block;
    object-fit: contain;
    /* Dark stroke X → white on black; skip if x.svg is already light */
    filter: brightness(0) invert(1);
}

.player-image-container .card-heart-wrap {
    top: 10px;
    bottom: auto;
    right: 10px;
    opacity: 0;
    transition: opacity var(--card-transition-time) ease;
}

.photo-card-image-wrapper .card-heart-wrap .dashboard-row-heart-btn,
.player-image-container .card-heart-wrap .dashboard-row-heart-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    box-sizing: border-box;
    padding: 5px;
    background: transparent;
    border: none;
    outline: 2px solid transparent;
    outline-offset: -2px;
    border-radius: 6px;
    cursor: pointer;
    transition: outline-color var(--card-transition-time) ease, box-shadow var(--card-transition-time) ease, background var(--card-transition-time) ease;
}

/* Heart button hover: white border in all states (selected and unselected) */
.photo-card-image-wrapper .card-heart-wrap .dashboard-row-heart-btn:hover,
.player-image-container .card-heart-wrap .dashboard-row-heart-btn:hover {
    outline-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Heart button hover when card NOT selected: white border, white icon, black background, no shadow */
.photo-card-image-wrapper .card-heart-wrap .dashboard-row-heart-btn:not(.selected):hover,
.player-image-container .card-heart-wrap .dashboard-row-heart-btn:not(.selected):hover {
    background: #000000;
    outline-color: #FFFFFF;
    box-shadow: none;
}

.photo-card-image-wrapper .card-heart-wrap .dashboard-row-heart-btn.selected,
.player-image-container .card-heart-wrap .dashboard-row-heart-btn.selected {
    background: #1A1A1A;
    outline-color: transparent;
    box-shadow: none; /* No shadow on black background — avoids muddy look */
}

/* Heart button hover when card selected: white border for hover feedback, no shadow */
.photo-card-image-wrapper .card-heart-wrap .dashboard-row-heart-btn.selected:hover,
.player-image-container .card-heart-wrap .dashboard-row-heart-btn.selected:hover {
    outline-color: #FFFFFF;
    box-shadow: none;
}

.photo-card-image-wrapper .card-heart-wrap .dashboard-row-heart-btn:hover .dashboard-heart-icon,
.photo-card-image-wrapper .card-heart-wrap .dashboard-row-heart-btn.selected .dashboard-heart-icon,
.player-image-container .card-heart-wrap .dashboard-row-heart-btn:hover .dashboard-heart-icon,
.player-image-container .card-heart-wrap .dashboard-row-heart-btn.selected .dashboard-heart-icon {
    width: 10px;
    height: 10px;
}

.photo-card-image-wrapper .card-heart-wrap .dashboard-row-heart-btn .dashboard-heart-icon,
.player-image-container .card-heart-wrap .dashboard-row-heart-btn .dashboard-heart-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: width var(--card-transition-time) ease, height var(--card-transition-time) ease;
}

/* Card hovered, heart not hovered, not selected: show grey icon as white */
.photo-card-image-wrapper:hover .card-heart-wrap:not(:hover):not(.card-heart-wrap--media-player-exit) .dashboard-row-heart-btn:not(.selected) .dashboard-heart-icon,
.player-image-container:hover .card-heart-wrap:not(:hover) .dashboard-row-heart-btn:not(.selected) .dashboard-heart-icon {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Heart hover: other cards' matching hearts (show-matching) — show grey icon as white */
.photo-card-image-wrapper .card-heart-wrap.show-matching .dashboard-row-heart-btn:not(.selected) .dashboard-heart-icon {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.photo-card-image-wrapper:hover .card-heart-wrap:not(.card-heart-wrap--media-player-exit),
.photo-card-image-wrapper .card-heart-wrap:has(.dashboard-row-heart-btn.selected),
.photo-card-image-wrapper .card-heart-wrap.show-matching,
.player-image-container:hover .card-heart-wrap,
.player-image-container .card-heart-wrap:has(.dashboard-row-heart-btn.selected),
.player-image-container .card-heart-wrap.show-matching {
    opacity: 1;
}

.custom-dropdown-wrapper {
    position: relative;
}

.custom-dropdown-menu {
    position: fixed;
    bottom: 40px;
    background: #FFFFFF;
    border: 1px solid #CCC;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 300px;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow-y: auto;
}

.custom-dropdown-menu.hidden {
    display: none;
}

.dropdown-option {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #F5F5F5;
    text-transform: uppercase;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #F5F5F5;
}


.action-button {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightMedium);
    font-size: var(--fontSizeMini);
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    transition: width 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
    white-space: nowrap;
}

.action-button.primary {
    background: var(--brandAccent);
    color: #FFFFFF;
}

.action-button.primary:hover {
    background: color-mix(in srgb, var(--brandAccent) 85%, black);
}

.action-buttons-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-button.secondary {
    background: #FFFFFF;
    color: var(--fontDark);
    border: 1px solid transparent;
}

.action-button.secondary:hover {
    background: #FAFAFA;
    border-color: #CCC;
}

.content-display-area {
    background: #f5f5f5;
    border: 1px solid #D4D4D4;
    box-shadow: inset 0px 1px 23px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin: 10px;
    margin-top: 2px;
    margin-bottom: 0px;
    padding: 0px;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* Dashboard specific: content area uses column layout */
#dashboardContent .content-display-area {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

/* Teams specific: column layout so filter bar sits above the carousel */
#teamsContent .content-display-area {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

/* Teams filter bar — mirrors .dashboard-filter-bar */
.teams-filter-bar {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px 10px 10px;
    width: 100%;
    flex-shrink: 0;
}

/* Photos specific: column layout — filters + grid share one vertical scroll (#photosMediaScroll); no outer frame border */
#photosContent .content-display-area {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    border: none;
    box-shadow: none;
    scroll-behavior: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

/* MEDIA: full card layout always — global 180px intrinsic size cropped rows and jumped on scroll mode change */
#photosContent .photo-card {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

/* MEDIA: suppress focus chrome on autofocus bucket (keyboard scroll still works) */
#photosContent #photosMediaScroll:focus {
    outline: none;
}

#photosContent #photosMediaScroll:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Book — publishing / preview */
#bookContent .book-preview-display {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0px;
}

#bookContent .book-preview-frame-wrap.intro-pending {
    opacity: 0;
    transform: translateX(var(--intro-translate-data));
    visibility: visible;
}

@keyframes book-screen-intro {
    from {
        opacity: 0;
        transform: translateX(var(--intro-translate-data));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#bookContent .book-preview-frame-wrap.intro-visible {
    visibility: visible;
    animation: book-screen-intro 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.book-preview-frame-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.book-preview-frame {
    flex: 1;
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    margin: 0px
}

/* Photos filter bar — mirrors .dashboard-filter-bar */
.photos-filter-bar {
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 20px 10px 0 10px;
    width: 100%;
    flex-shrink: 0;
}

.photos-filter-bar .filter-buttons-left,
.photos-filter-bar .filter-buttons-right {
    flex-wrap: wrap;
}

/* Dashboard filter bar - positioned at top of content area */
.dashboard-filter-bar {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    padding-bottom: 10px;
    padding-top: 20px;
    height: auto;
    min-height: auto;
    margin-top: 0;
    margin-bottom: 10px;
    width: 100%;
    flex-shrink: 0;
}

/* Dashboard heart button (global, next to +) — base for all screens */
.dashboard-heart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 40px;
    background: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* No hover effect and default cursor when no items (disabled state) */
.dashboard-heart-btn:not(.has-items) {
    cursor: default;
}

.dashboard-heart-btn:not(.has-items):hover {
    border-color: #FFFFFF;
}

/* Has hearted items but filter not active — blue background, white heart, blue stroke = selected */
.dashboard-heart-btn.has-items {
    background: var(--buttonPrimaryBlue);
    border-color: var(--buttonPrimaryBlue);
}

.dashboard-heart-btn.has-items:hover {
    background: var(--buttonPrimaryBlue);
    border-color: var(--buttonPrimaryBlue);
}

/* Filter active — showing only hearted rows */
.dashboard-heart-btn.has-items.filter-active {
    background: #1A1A1A;
    border-color: #1A1A1A;
}

.dashboard-heart-btn.has-items.filter-active:hover {
    background: #333;
    border-color: #333;
}

.dashboard-heart-btn:active {
    transform: scale(0.98);
}

.dashboard-heart-icon {
    width: 10px;
    height: 10px;
    display: block;
    pointer-events: none;
    cursor: inherit; /* Inherit pointer from button — click target is button only */
}

/* DATA screen only: global heart — transparent bg, white/blue icon 20x20, hover = black bg + blue border */
.dashboard-filter-bar .dashboard-heart-btn {
    background: transparent;
    border-color: transparent;
}

.dashboard-filter-bar .dashboard-heart-btn:not(.has-items):hover {
    background: transparent;
    border-color: transparent;
}

/* Initial state (no hearted items): hide heart icon — white heart with no bg/border */
.dashboard-filter-bar .dashboard-heart-btn:not(.has-items) .dashboard-heart-icon,
.teams-filter-bar .dashboard-heart-btn:not(.has-items) .dashboard-heart-icon {
    visibility: hidden;
}

.dashboard-filter-bar .dashboard-heart-btn.has-items:not(.filter-active) {
    background: #FFFFFF;
    border: 2px solid var(--fontGrey);
}

.dashboard-filter-bar .dashboard-heart-btn.has-items:hover {
    background: #FFFFFF;
    border-color: var(--buttonPrimaryBlue);
}

.dashboard-filter-bar .dashboard-heart-btn.has-items.filter-active {
    background: #FFFFFF;
    border: 2px solid var(--buttonPrimaryBlue);
}

.dashboard-filter-bar .dashboard-heart-btn.has-items.filter-active:hover {
    background: #FFFFFF;
    border-color: var(--buttonPrimaryBlue);
}

.dashboard-filter-bar .dashboard-heart-btn .dashboard-heart-icon {
    width: 14px;
    height: 14px;
    transition: width var(--card-transition-time), height var(--card-transition-time);
}

/* Selected, not filter-active: dark heart when not hovered (icon_heart_dark.svg), blue on hover */
.dashboard-filter-bar .dashboard-heart-btn.has-items:not(.filter-active):not(:hover) .dashboard-heart-icon {
    filter: none;
}
/* Selected, filter-active, not hovered: white heart on dark bg — no invert */
.dashboard-filter-bar .dashboard-heart-btn.has-items.filter-active:not(:hover) .dashboard-heart-icon {
    filter: none;
}
.dashboard-filter-bar .dashboard-heart-btn.has-items:hover .dashboard-heart-icon {
    filter: none;
    width: 10px;
    height: 10px;
}

/* TEAMS: same global heart styling as DATA */
.teams-filter-bar .dashboard-heart-btn {
    background: transparent;
    border-color: transparent;
}

.teams-filter-bar .dashboard-heart-btn:not(.has-items):hover {
    background: transparent;
    border-color: transparent;
}

.teams-filter-bar .dashboard-heart-btn.has-items:not(.filter-active) {
    background: #FFFFFF;
    border: 2px solid var(--fontGrey);
}

.teams-filter-bar .dashboard-heart-btn.has-items:hover {
    background: #FFFFFF;
    border-color: var(--buttonPrimaryBlue);
}

.teams-filter-bar .dashboard-heart-btn.has-items.filter-active {
    background: #FFFFFF;
    border: 2px solid var(--buttonPrimaryBlue);
}

.teams-filter-bar .dashboard-heart-btn.has-items.filter-active:hover {
    background: #FFFFFF;
    border-color: var(--buttonPrimaryBlue);
}

.teams-filter-bar .dashboard-heart-btn .dashboard-heart-icon {
    width: 14px;
    height: 14px;
    transition: width var(--card-transition-time), height var(--card-transition-time);
}

/* Selected, not filter-active: dark heart when not hovered (icon_heart_dark.svg), blue on hover */
.teams-filter-bar .dashboard-heart-btn.has-items:not(.filter-active):not(:hover) .dashboard-heart-icon {
    filter: none;
}
/* Selected, filter-active, not hovered: white heart on dark bg — no invert */
.teams-filter-bar .dashboard-heart-btn.has-items.filter-active:not(:hover) .dashboard-heart-icon {
    filter: none;
}
.teams-filter-bar .dashboard-heart-btn.has-items:hover .dashboard-heart-icon {
    filter: none;
    width: 10px;
    height: 10px;
}

/* Dashboard row heart button — base; DATA row overrides below match TEAMS card size/transitions */
.dashboard-row-heart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    min-width: 40px;
    background: #FFFFFF;
    border: 2px solid #D4D4D4;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dashboard-row-heart-btn:hover {
    border-color: var(--buttonPrimaryBlue);
}

/* Selected state: icon changes to blue only, border stays grey */
.dashboard-row-heart-btn.selected {
    border: 2px solid #D4D4D4;
}

.dashboard-row-heart-btn.selected:hover {
    border-color: var(--buttonPrimaryBlue);
}

.dashboard-row-heart-btn .dashboard-heart-icon {
    width: 10px;
    height: 10px;
}

/* DATA screen: athlete row hearts — transparent when not selected, blue 20x20 icon (no bg) when selected */
.athlete-row-heart-wrap .dashboard-row-heart-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-color: transparent;
    cursor: pointer;
    transition: border-color var(--card-transition-time) ease, background var(--card-transition-time) ease;
}

.athlete-row-heart-wrap .dashboard-row-heart-btn.selected {
    background: transparent;
    border-color: transparent;
}

.athlete-row-heart-wrap .dashboard-row-heart-btn:hover {
    border-color: var(--buttonPrimaryBlue);
}

.athlete-row-heart-wrap .dashboard-row-heart-btn.selected:hover {
    border-color: var(--buttonPrimaryBlue);
}

.athlete-row-heart-wrap .dashboard-row-heart-btn .dashboard-heart-icon {
    width: 20px;
    height: 20px;
    transition: width var(--card-transition-time) ease, height var(--card-transition-time) ease;
}

.athlete-row-heart-wrap .dashboard-row-heart-btn:hover:not(.selected) .dashboard-heart-icon {
    width: 10px;
    height: 10px;
}

/* Selected: dark heart (icon_heart_dark.svg), no background, 20x20px */
.athlete-row-heart-wrap .dashboard-row-heart-btn.selected .dashboard-heart-icon {
    width: 20px;
    height: 20px;
    filter: none;
}

.athlete-row-heart-wrap .dashboard-row-heart-btn.selected:hover .dashboard-heart-icon {
    width: 10px;
    height: 10px;
    filter: none;
}

/* Dashboard new entry button */
.dashboard-new-entry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 40px;
    background: var(--buttonPrimaryBlue);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, opacity 0.2s ease;
}

/* No + button dimming — heart is no longer blue on any screen */

.dashboard-new-entry-btn:hover {
    background: #1565C0;
}

.dashboard-new-entry-btn:active {
    transform: scale(0.98);
}

.btn-icon-plus {
    width: 10px;
    height: 10px;
    display: block;
}

/* Dashboard stats container */
.dashboard-stats-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 800px;
    margin-left: 0px;
    margin-right: 0px;
    background: #FFFFFF;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.dashboard-stat-card {
    flex: 1;
    background: #FFFFFF;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-stat-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 20px 0;
}

.dashboard-separator-image {
    height: 100%;
    width: auto;
    display: block;
}

.dashboard-stat-number {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: calc(2rem + 10px);
    color: var(--fontDark);
    margin-bottom: 8px;
}

.dashboard-stat-label {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
    text-align: center;
}

/* Athletes Dashboard Section */
.athletes-dashboard-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.athletes-table-container {
    display: flex;
    flex-direction: column;
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    background: #FFFFFF;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    flex-shrink: 0;
    margin-bottom: 10px;
}

/* Dashboard screen intro animation: fade-in + slide up + row-gap */
#dashboardContent .athletes-table-container.intro-pending {
    opacity: 0;
    transform: translateY(var(--intro-translate-data));
    visibility: visible;
}

@keyframes dashboard-screen-intro {
    from {
        opacity: 0;
        transform: translateY(var(--intro-translate-data));
        row-gap: var(--intro-gap-data);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        row-gap: 0;
    }
}

#dashboardContent .athletes-table-container.intro-visible {
    animation: dashboard-screen-intro 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    visibility: visible;
}

.athlete-row {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    min-width: min-content;
    margin-top: 5px;
    margin-bottom: 5px;
}

.athlete-row:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    background: #D4D4D4;
    margin: 10px 20px 0 20px;
}

.athlete-row-header {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #FFFFFF;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    padding: 0px 0px 0px 20px;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.15s ease;
    width: calc(100vw - 60px);
    max-width: calc(100vw - 60px);
}

/* Heart button wrapper: sticky right so it stays visible when thumbnail toggles or user scrolls */
.athlete-row-heart-wrap {
    position: sticky;
    right: 0;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 10px;
    padding-right: 10px;
    background: #FFFFFF;
    z-index: 4;
}

.athlete-row-header:hover {
    opacity: 1;
}

.athlete-row-header:hover .athlete-name {
    color: var(--buttonPrimaryBlue);
}

/* Name is blue when row is hearted */
.athlete-row-header:has(.dashboard-row-heart-btn.selected) .athlete-name {
    color: var(--buttonPrimaryBlue);
}

.athlete-row-header-image-wrap {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: flex-start;
    justify-content: left;
    transition: width 0.25s ease, min-width 0.25s ease, margin-right 0.25s ease, opacity 0.25s ease;
}

.athlete-row-header-image-wrap.dashboard-header-thumb-hidden {
    width: 0;
    min-width: 0;
    margin-right: 0;
    opacity: 0;
}

.athlete-row-header .athlete-row-header-profile-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.75);
    transform-origin: top center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.athlete-row-header-image-wrap.dashboard-header-thumb-hidden .athlete-row-header-profile-image {
    transform: scale(0.5);
}

.athlete-data-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    padding: 12px 20px 12px 20px;
    gap: 20px;
    min-width: min-content;
}

.athlete-data-row .athlete-vert-separator {
    display: none;
}

.athlete-data-row-image-wrap {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: flex-end;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.athlete-data-row-profile-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.75);
    transform-origin: top center;
}

.athlete-left-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.athlete-column-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.athlete-column {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
    min-height: 45px;
    min-width: 0;
    gap: 1px;
    overflow: visible;
    width: 100%;
}

.athlete-bar-wrapper {
    width: 8px;
    min-height: 45px;
    background-color: #F5F5F5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.athlete-bar {
    width: 8px;
    background-color: rgba(25, 118, 210, 0.5);
    border-radius: 8px;
    flex-shrink: 0;
    min-height: 0;
    cursor: pointer;
}

.athlete-bar:hover,
.athlete-bar.athlete-bar-highlighted {
    background-color: var(--buttonPrimaryBlue);
    opacity: 1;
}

.dashboard-bar-tooltip {
    position: fixed;
    z-index: 10000;
    margin: 5px 20px;
    padding: 6px 10px;
    background: #333;
    color: #fff;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: calc(var(--fontSizeBody) + 2px);
    text-transform: uppercase;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0px 14px 21px rgba(0, 0, 0, 0.15);
}

.dashboard-bar-tooltip.hidden {
    visibility: hidden;
    pointer-events: none;
}

/* Data Entry Detail modal — nav bar symmetry */
#dataEntryDetailModal .new-entry-btn-back,
#dataEntryDetailModal .dashboard-new-entry-btn {
    width: 60px;
}

#dataEntryDetailModal .new-entry-btn-back {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* Data Entry Detail modal — nav center text */
.data-entry-detail-nav-date {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.1;
}

.data-entry-detail-nav-label {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: 0.85rem;
    color: var(--fontGrey);
    text-transform: uppercase;
    line-height: 1.1;
}

.data-entry-detail-centered {
    text-align: center;
}

/* Data Entry Detail modal — content area (matches main screens: inner shadow, grey background) */
.data-entry-detail-modal-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.data-entry-detail-content-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #FAFAFA;
    border: 1px solid #D4D4D4;
    border-top: none;
    box-shadow: inset 0px 1px 23px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 2px 10px 10px 10px;
}

.data-entry-detail-inner {
    padding: 40px 10px 10px 10px;
}

/* New Entry modal — content area (matches main screens: inner shadow, grey background) */
.new-entry-modal-content-with-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.new-entry-content-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #f5f5f5;
    border: 1px solid #D4D4D4;
    border-top: none;
    box-shadow: inset 0px 1px 23px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 2px 10px 10px 10px;
    padding-top: 24px;
}

/* Data Entry Detail modal — value display (expanded, matches New Entry modal font sizes) */
.data-entry-detail-value {
    width: 100%;
    min-height: 120px;
    padding: 24px 32px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: clamp(4.5rem, 20.25vw, 7.3125rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    border-radius: 6px;
    box-sizing: border-box;
}

#dataEntryDetailModal .data-entry-detail-unit {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
    text-align: center;
}

.data-entry-detail-images-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

#dataEntryDetailModal .data-entry-detail-inner .new-entry-player-below-image-wrap {
    margin-left: auto;
    margin-right: auto;
}

#dataEntryDetailModal .data-entry-detail-images-row .new-entry-player-below-image-wrap {
    margin-left: 0;
    margin-right: 0;
    flex: 1;
    min-width: 0;
    position: relative;
    height: 0;
    padding-bottom: 100%;
}

#dataEntryDetailModal .data-entry-detail-images-row .new-entry-player-below-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#dataEntryDetailDrillImage {
    object-position: bottom;
    transform: scale(1.4);
    transform-origin: bottom center;
}

/* White callouts for non-hovered highlighted bars */
.dashboard-bar-callout-white {
    position: fixed;
    z-index: 9999;
    margin: 5px 20px;
    padding: 6px 10px;
    background: #fff;
    color: var(--fontDark);
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: calc(var(--fontSizeBody) + 2px);
    text-transform: uppercase;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
}

.athlete-column-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-align: left;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.athlete-column-title-text {
    width: calc(24 * 8px + 23 * 1px);
    text-align: left;
}

.athlete-vert-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 20px 4px;
}

.athlete-vert-separator-image {
    height: 100%;
    width: auto;
    display: block;
}

.athlete-profile-image {
    width: 89px;
    height: 89px;
    border-radius: 6px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    align-self: flex-start;
}

.athlete-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0px;
    width: calc(100vw - 120px);
    min-width: calc(100vw - 120px);
}

.athlete-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: calc(var(--fontSizeBody) + 2px);
    color: var(--fontDark);
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.athlete-role {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
}

.athlete-row-separator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.athlete-separator-image {
    width: 100%;
    height: auto;
    display: block;
    flex: 1;
    align-self: flex-start;
}

/* ======================================================================================================================================= */
/* ATHLETE DETAIL MODAL */
/* ======================================================================================================================================= */

.athlete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.athlete-modal.closing {
    opacity: 0;
    pointer-events: none;
}

.athlete-modal.hidden {
    display: none;
}

.athlete-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1001;
}

.athlete-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 5px 5px 0 5px;
    
    width: calc(100% - 20px);
    max-width: 800px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    z-index: 1002;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.13);
}

/* Athlete Detail modal — flex layout for nav + content area */
.athlete-modal-content-with-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Athlete Detail modal — nav bar */
.athlete-detail-nav-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    flex-shrink: 0;
    gap: 10px;
    background: #FFFFFF;
}

.athlete-detail-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.athlete-detail-nav-subtitle {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontGrey);
    text-transform: uppercase;
    line-height: 1.1;
}

.athlete-detail-nav-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.1;
}

.athlete-detail-btn-back {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    background: #9E9E9E;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    cursor: pointer;
    flex-shrink: 0;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.athlete-detail-btn-back:hover {
    background: #888;
}

.athlete-detail-btn-edit {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    background: var(--buttonPrimaryBlue);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    cursor: pointer;
    flex-shrink: 0;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.athlete-detail-btn-edit:hover {
    filter: brightness(1.08);
}

/* Athlete Detail modal — content area (inner shadow, round corners, border on all sides) */
.athlete-detail-content-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #FAFAFA;
    border: 1px solid #D4D4D4;
    box-shadow: inset 0px 1px 23px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 2px 0 10px 0;
}

.athlete-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--fontGrey);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.athlete-modal-close:hover {
    color: var(--fontDark);
}

.athlete-modal-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 20px;
}

.athlete-modal-image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
    container-type: inline-size;
}

.athlete-modal-image-stack {
    position: relative;
    width: 100%;
    height: calc(100vh * 3 / 4);
    height: calc(100dvh * 3 / 4);
    overflow: hidden;
    border-radius: 8px;
}

.athlete-modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center 12%;
    transition: opacity 0.35s ease;
}

.athlete-modal-image-placeholder {
    z-index: 1;
}

.athlete-modal-image-full {
    z-index: 2;
    opacity: 0;
}

.athlete-modal-image-full.athlete-modal-image-full-loaded {
    opacity: 1;
}

.athlete-modal-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 24px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-radius: 0 0 8px 8px;
    pointer-events: none;
}

.athlete-modal-header-name {
    font-family: var(--fontFamily);
    font-weight: 800;
    /* Fallback scale from hero width; JS tightens further so longest line fits overlay */
    font-size: clamp(0.6875rem, 22cqi, 5rem);
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 0.9;
    text-align: center;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    display: block;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}

.athlete-modal-info {
    padding: 10px 0;
    text-align: center;
}

.athlete-modal-content .dashboard-stats-container {
    margin: 10px;
    width: calc(100% - 20px);
    max-width: 1800px;
}

.athlete-modal-team-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 10px 12px;
    padding: 8px 24px 4px;
    width: calc(100% - 20px);
    max-width: 1800px;
    box-sizing: border-box;
    background: transparent;
    border: none;
}

.athlete-modal-team-logo {
    display: block;
    max-height: 88px;
    max-width: min(320px, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
}

.athlete-modal-position-text {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.06em;
    line-height: 1.2;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.athlete-modal-stats {
    flex-direction: column;
    align-items: stretch;
}

.athlete-modal-stats-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: stretch;
}

.athlete-modal-stats-divider {
    height: 1px;
    background-color: #D4D4D4;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    border: none;
}

.athlete-modal-stats .dashboard-stat-card {
    min-width: 0;
}

.athlete-modal-stats .dashboard-stat-number {
    max-width: 100%;
    word-break: break-word;
    text-align: center;
}

.athlete-modal-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.athlete-modal-details {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
}

/* ATHLETE RECENT PHOTOS SECTION */
.athlete-recent-photos-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0px;
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 40px;
}

.athlete-recent-photos-section {
    margin: 0 0px;
    margin-top: 0;
}

.athlete-recent-photos-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    margin: auto 0;
    min-height: min-content;
    justify-content: flex-start;
    align-items: stretch;
    background: transparent;
}

.athlete-recent-photos-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.athlete-recent-photos-carousel:hover::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.athlete-recent-photos-carousel:hover::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 4px;
}

.athlete-recent-photos-carousel:hover::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 4px;
}

.athlete-recent-photos-carousel:hover::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.athlete-recent-photos-card {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
    width: 480px;
    height: 640px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(25, 118, 210, 0);
    border: 2px solid rgba(255, 255, 255, 0);
    padding: 4px;
}

.athlete-recent-photos-card:hover {
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(25, 118, 210, 1);
    border: 2px solid rgba(255, 255, 255, 1);
}

.athlete-recent-photos-image {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
}

/* Athlete modal RECENT PHOTOS — reuse MEDIA tag markup; names always visible, dates on card/date-tag hover */
.athlete-recent-photos-card .photo-card-image-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 4px;
}

.athlete-recent-photos-card .photo-card-image-wrapper .athlete-recent-photos-image {
    border-radius: 0;
}

.athlete-recent-photos-carousel.show-name-tags .photo-card-overlay-name {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.athlete-recent-photos-carousel .photo-card-overlay-name {
    cursor: default;
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.athlete-recent-photos-carousel .photo-card-overlay-name:hover {
    background: #FFFFFF;
    color: var(--fontDark);
}

.athlete-recent-photos-carousel .photo-card-overlay-name:hover::after {
    content: none;
}

.athlete-recent-photos-carousel .photo-card-overlay-name:active {
    background: #FFFFFF;
    color: var(--fontDark);
}

.athlete-recent-photos-card .photo-card-image-wrapper:hover .photo-card-overlay-date,
.athlete-recent-photos-carousel.showing-all-tags .photo-card-overlay-date {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

/* ATHLETE RECENT GAME DATA SECTION */
.athlete-game-data-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 40px;
}

.athlete-game-data-section {
    background: #FFFFFF;
    border: 1px solid #D4D4D4;
    box-shadow: inset 0px 1px 23px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin: 10px;
    margin-top: 0;
    padding: 20px 0;
    width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
}

.athlete-game-data-content {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.athlete-game-data-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.athlete-game-data-content:hover::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.athlete-game-data-content:hover::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 4px;
}

.athlete-game-data-content:hover::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 4px;
}

.athlete-game-data-content:hover::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.athlete-game-data-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    margin-top: 0;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.athlete-game-data-nav-button {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightMedium);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    background: transparent;
    border: 2px solid #FFFFFF;
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.athlete-game-data-nav-button:hover {
    border-color: var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
}

.athlete-game-data-nav-button.active {
    border: 2px solid var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
    background: transparent;
}

.athlete-game-data-separator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    padding: 0;
    min-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 30px;
    margin-bottom: 20px;
    position: sticky;
    left: 0;
    background: #FFFFFF;
    z-index: 5;
}

.athlete-game-data-separator-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Athlete modal: Dashboard-style graph container (12 columns: 4 GAMES, 4 DRILLS, 4 BIOMETRICS) */
#athleteModalGraphContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 30px 20px 30px;
    padding-left: 50px;
    min-width: min-content;
}

#athleteModalGraphContainer .athlete-modal-graph-row {
    margin-bottom: 0;
}

#athleteModalGraphContainer .athlete-modal-graph-row-single {
    flex-shrink: 0;
}

#athleteModalGraphContainer .athlete-column-wrapper {
    flex: 0 0 auto;
    min-width: calc(24 * 8px + 23 * 1px);
}

.athlete-game-data-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding: 0 30px;
    gap: 20px;
    margin-bottom: 20px;
    min-width: min-content;
    flex-wrap: nowrap;
}

.athlete-game-data-column-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-width: calc(26 * 8px + 25 * 1px);
}

.athlete-game-data-column {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
    min-height: 45px;
    min-width: calc(26 * 8px + 25 * 1px);
    gap: 1px;
    overflow: visible;
    width: 100%;
    margin-bottom: 8px;
}

.athlete-game-data-bar {
    width: 8px;
    background-color: var(--buttonPrimaryBlue);
    opacity: 0.5;
    border-radius: 8px;
    flex-shrink: 0;
    min-height: 2px;
    cursor: pointer;
}

.athlete-game-data-bar:hover {
    background-color: var(--buttonPrimaryBlue);
    opacity: 1;
}

.athlete-game-data-bar-dark {
    background-color: var(--buttonPrimaryBlue);
    opacity: 0.5;
}

.athlete-game-data-bar-dark:hover {
    background-color: var(--buttonPrimaryBlue);
    opacity: 1;
}

.athlete-game-data-column-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-align: center;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.athlete-game-data-vert-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 20px 4px;
    min-width: auto;
}

.athlete-game-data-vert-separator-image {
    height: 100%;
    width: auto;
    display: block;
}

/* ATHLETE MICRO LESSON SECTION */
.athlete-micro-lesson-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 40px;
}

.athlete-micro-lesson-section {
    margin: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    width: calc(100% - 20px);
}

.athlete-micro-lesson-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.athlete-micro-lesson-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.athlete-micro-lesson-carousel:hover::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.athlete-micro-lesson-carousel:hover::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 4px;
}

.athlete-micro-lesson-carousel:hover::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 4px;
}

.athlete-micro-lesson-carousel:hover::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.athlete-micro-lesson-card {
    flex: 0 0 auto;
    position: relative;
    width: 100%;
    /* Same vertical presence as modal header hero (.athlete-modal-image-stack) */
    height: calc(100vh * 3 / 4);
    height: calc(100dvh * 3 / 4);
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
}

.athlete-micro-lesson-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

.athlete-micro-lesson-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.athlete-micro-lesson-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.athlete-micro-lesson-play-icon {
    width: 60px;
    height: 60px;
    display: block;
}

/* ALBUMS CAROUSEL STYLES */
.albums-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 30px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    margin: auto 0;
    min-height: min-content;
}

.albums-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.albums-carousel:hover::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.albums-carousel:hover::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 4px;
}

.albums-carousel:hover::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 4px;
}

.albums-carousel:hover::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.album-card {
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.album-team-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 1.4rem;
    color: var(--fontDark);
    text-transform: uppercase;
}

.album-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
}

.album-date {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 0.85rem;
    color: var(--fontDark);
    text-transform: uppercase;
}

.album-image-container {
    width: 300px;
    height: 480px;
    overflow: hidden;
    border-radius: 8px;
    background: #F5F5F5;
    margin-top: 10px;
    margin-bottom: 10px;
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-status {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: 0.85rem;
    color: var(--fontGrey);
    text-transform: uppercase;
}

/* TEAMS CAROUSEL STYLES */
/* TEAMS screen intro animation: fade-in + slide from right + horizontal gap */
#teamsContent .teams-carousel.intro-pending {
    opacity: 0;
    transform: translateX(var(--intro-translate-teams));
    visibility: visible;
}

@keyframes teams-screen-intro {
    from {
        opacity: 0;
        transform: translateX(var(--intro-translate-teams));
        gap: var(--intro-gap-teams);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        gap: 9px;
    }
}

#teamsContent .teams-carousel.intro-visible {
    visibility: visible;
    animation: teams-screen-intro 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.teams-carousel {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    margin: 0;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    justify-content: center;
}

/* When content overflows (wider than viewport), left-align */
.teams-carousel.overflowing {
    justify-content: flex-start;
}

.teams-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.teams-carousel:hover::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.teams-carousel:hover::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 4px;
}

.teams-carousel:hover::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 4px;
}

.teams-carousel:hover::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.player-card {
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-sizing: border-box;
    border: 6px solid rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0);
    border-radius: 8px;
    transition: border-color var(--card-transition-time) ease, box-shadow var(--card-transition-time) ease;
}

.player-card:hover {
    border: 6px solid rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 1);
}

.player-image-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: #F5F5F5;
    margin-top: 0;
    margin-bottom: 0;
}

/* TEAMS screen: heart at top-right corner of player card */
.player-image-container .card-heart-wrap {
    top: 10px;
    bottom: auto;
}

/* Gradient overlay — middle to bottom black, improves visibility of tags and heart (same as MEDIA) */
.player-card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 8px;
    background: linear-gradient(to bottom, transparent 0%, transparent 80%, rgba(0, 0, 0, 0.3) 100%);
}

/* Team name at top-left — reveal from left + fade, same as MEDIA */
.player-card-overlay-team-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 8px 14px;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    clip-path: inset(0 calc(100% - 1px) 0 0);
    opacity: 0;
    transition: clip-path var(--card-transition-time) ease-out, opacity var(--card-transition-time) ease;
}

/* Bottom-left: POSITION, #9 NAME — same reveal + fade as MEDIA */
.player-card-overlays {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 55px);
    z-index: 2;
}

.player-card-overlay {
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    padding: 8px 14px;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    clip-path: inset(0 calc(100% - 1px) 0 0);
    transition: clip-path var(--card-transition-time) ease-out, opacity var(--card-transition-time) ease;
}

/* Position: 0.075s delay so it reveals after name (like MEDIA date tag) */
.player-card-overlay-position {
    opacity: 0;
    transition: clip-path var(--card-transition-time) ease-out 0.075s, opacity var(--card-transition-time) ease 0.075s;
}

/* Name overlay: clickable, hover blue — same animation as MEDIA */
.player-card-overlay-name {
    cursor: pointer;
    opacity: 0;
    transition: clip-path var(--card-transition-time) ease-out, color var(--card-transition-time) ease, background var(--card-transition-time) ease, opacity var(--card-transition-time) ease;
}

.player-card-overlay-name:hover {
    color: var(--buttonPrimaryBlue);
}

.player-card-overlay-name:active {
    background: var(--buttonPrimaryBlue);
    color: var(--fontLight);
}

.player-card-overlay-name:hover::after {
    content: '\00a0\00a0›';
}

/* On load: only names animate in (reveal left-to-right + fade) and stay visible */
.teams-carousel.show-name-tags .player-card-overlays .player-card-overlay-name {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition-delay: 0;
}

/* On hover: reveal team and position (left-to-right + fade) */
.player-image-container:hover .player-card-overlay-team-top,
.player-image-container:hover .player-card-overlays .player-card-overlay-position {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition-delay: 0;
}

/* When heart is hovered: hide team and position (animate out) */
.player-image-container.heart-hovered .player-card-overlay-team-top,
.player-image-container.heart-hovered .player-card-overlays .player-card-overlay-position {
    opacity: 0;
    clip-path: inset(0 calc(100% - 1px) 0 0);
    transition-delay: 0;
}

/* Team tag hover: show team tags on cards with matching team */
.teams-carousel.showing-team-tags .player-image-container.show-matching-team .player-card-overlay-team-top {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition-delay: 0;
}

/* Name tag hover: hide all tags on other cards; hide team+position on hovered card (only name stays) */
.teams-carousel.name-tag-hover .player-image-container:not(.name-tag-hovered) .player-card-overlay-team-top,
.teams-carousel.name-tag-hover .player-image-container:not(.name-tag-hovered) .player-card-overlay-position,
.teams-carousel.name-tag-hover .player-image-container:not(.name-tag-hovered) .player-card-overlay-name {
    opacity: 0;
    clip-path: inset(0 calc(100% - 1px) 0 0);
    transition-delay: 0;
}

.teams-carousel.name-tag-hover .player-image-container.name-tag-hovered .player-card-overlay-team-top,
.teams-carousel.name-tag-hover .player-image-container.name-tag-hovered .player-card-overlays .player-card-overlay-position {
    opacity: 0;
    clip-path: inset(0 calc(100% - 1px) 0 0);
    transition-delay: 0;
}

/* Position tag hover: show all tags and hearts on all cards */
.teams-carousel.showing-all-tags .player-card-overlay-team-top,
.teams-carousel.showing-all-tags .player-card-overlays .player-card-overlay-position,
.teams-carousel.showing-all-tags .player-card-overlays .player-card-overlay-name {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition-delay: 0;
}

.teams-carousel.showing-all-tags .player-image-container .card-heart-wrap {
    opacity: 1;
}

/* Selected heart: visible all the time */
.player-image-container .card-heart-wrap:has(.dashboard-row-heart-btn.selected) {
    opacity: 1;
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transform-origin: 50% 25%;
    transition: transform var(--card-transition-time) ease;
}

.player-card:hover .player-image {
    transform: scale(var(--card-hover-scale));
}

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

.player-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 1.4rem;
    color: var(--fontDark);
    text-transform: uppercase;
}

.player-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
}

.player-date {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 0.85rem;
    color: var(--fontDark);
    text-transform: uppercase;
}

.player-status {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: 0.85rem;
    color: var(--fontGrey);
    text-transform: uppercase;
}

/* PHOTOS GRID STYLES */
.photos-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
    overflow: visible;
    padding: 12px;
    padding-top: 22px;
    padding-bottom: 14px;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
}

/* Photos screen (MEDIA) intro animation: fade-in + slide up + row-gap */
#photosContent .photos-grid.intro-pending {
    opacity: 0;
    transform: translateY(var(--intro-translate-media));
    visibility: visible;
}

@keyframes photos-screen-intro {
    from {
        opacity: 0;
        transform: translateY(var(--intro-translate-media));
        row-gap: var(--intro-gap-media);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        row-gap: 9px;
    }
}

#photosContent .photos-grid.intro-visible {
    visibility: visible;
    animation: photos-screen-intro 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Keep scrollbar width reserved at all times so showing the thumb on hover does not narrow the content (Chrome). */
#photosMediaScroll::-webkit-scrollbar {
    width: 8px;
}

#photosMediaScroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

#photosMediaScroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

#photosMediaScroll:hover::-webkit-scrollbar-track {
    background: #F5F5F5;
}

#photosMediaScroll:hover::-webkit-scrollbar-thumb {
    background: #CCC;
}

#photosMediaScroll:hover::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.photo-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #FBFBFB;
    border-radius: 8px;
    border: 6px solid rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0);
    flex-shrink: 0;
    overflow: visible;
    transition: border-color var(--card-transition-time) ease, box-shadow var(--card-transition-time) ease;
}

.photo-card:hover,
.photo-card:active {
    border: 6px solid rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 1);
}

.photo-card-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #0000001e;
    position: relative;
}

/* Gradient overlay between image and tags — middle to bottom, brings tags up visually on light images */
.photo-card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 8px;
    background: linear-gradient(to bottom, transparent 0%, transparent 80%, rgba(0, 0, 0, 0.3) 100%);
}

/* Photo card overlays: container 10px from bottom-left; date on top, name 4px below */
.photo-card-overlays {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 20px);
}

.photo-card-overlay {
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    padding: 8px 14px;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    clip-path: inset(0 calc(100% - 1px) 0 0);
    transition: clip-path var(--card-transition-time) ease-out, opacity var(--card-transition-time) ease;
}

.photo-card-overlay-name {
    cursor: pointer;
    opacity: 0;
    transition: clip-path var(--card-transition-time) ease-out, color var(--card-transition-time) ease, background var(--card-transition-time) ease, opacity var(--card-transition-time) ease, width var(--card-transition-time) ease;
}

.photo-card-overlay-name:hover {
    background: #FFFFFF;
    color: var(--buttonPrimaryBlue);
}

.photo-card-overlay-name:active {
    background: var(--buttonPrimaryBlue);
    color: var(--fontLight);
}

.photo-card-overlay-name:hover::after {
    content: '\00a0\00a0›';
}

/* Show all name and date tags when hovering date tag — reveal from 1px to full width */
.photos-grid.showing-all-tags .photo-card-overlay-name,
.photos-grid.showing-all-tags .photo-card-overlay-date {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition-delay: 0;
}

/* MEDIA screen: name tags animate in on load and stay visible */
.photos-grid.show-name-tags .photo-card-overlay-name {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

/* Name tags animate in after initial delay */
.photos-grid.show-name-tags .photo-card-overlay-name {
    transition-delay: 0;
}

/* Date tag: 10px below name tag, 10px from card edge (via container) — 0.075s delay so it reveals after name */
.photo-card-overlay-date {
    opacity: 0;
    cursor: default;
    transition: clip-path var(--card-transition-time) ease-out 0.075s, opacity var(--card-transition-time) ease 0.075s;
}

/* Card hover: show both name and date for that card — reveal from 1px to full width */
.photo-card-image-wrapper:hover .photo-card-overlay-name,
.photo-card-image-wrapper:hover .photo-card-overlay-date {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

/* Hide date tag when heart on this card is hovered */
.photo-card-image-wrapper.heart-hovered .photo-card-overlay-date {
    opacity: 0;
    clip-path: inset(0 calc(100% - 1px) 0 0);
}

/* Name tag hover: show only same-athlete name tags; hide others */
.photo-card-overlay-name.show-matching {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.photos-grid.name-tag-hover .photo-card-overlay-name:not(.show-matching) {
    opacity: 0;
    clip-path: inset(0 calc(100% - 1px) 0 0);
    transition-delay: 0;
}

.photos-grid.name-tag-hover .photo-card-overlay-date {
    opacity: 0;
    clip-path: inset(0 calc(100% - 1px) 0 0);
    transition-delay: 0;
}


.photo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
    border-radius: 0;
    transform-origin: 50% 25%;
    transition: object-fit var(--card-transition-time) ease, transform var(--card-transition-time) ease;
}

.photo-card:hover .photo-image {
    transform: scale(1.2);
}

/* PHOTOS GRID RESPONSIVE BREAKPOINTS — breakpoints 10% lower so large cards cap smaller */
@media (min-width: 501px) {
    .photo-card {
        width: calc((100% - 9px) / 2);
    }
}

@media (min-width: 991px) {
    .photo-card {
        width: calc((100% - 18px) / 3);
    }
}

@media (min-width: 1441px) {
    .photo-card {
        width: calc((100% - 27px) / 4);
    }
}

/* BUTTON TEXT RESPONSIVE STYLES */
.button-text-full {
    display: inline;
}

.button-text-short {
    display: none;
}

/* RESPONSIVE STYLES */
@media (max-width: 799px) {
    .top-nav-buttons {
        justify-content: center;
        gap: 2px;
    }

    .top-nav-buttons .nav-button {
        padding: 8px 10px;
    }
}

/* PERFORMANCE — content-visibility: skip layout/paint for off-screen list items (not .photo-card — see #photosContent override) */
.athlete-row,
.player-card {
    content-visibility: auto;
    contain-intrinsic-size: 0 180px;
}

.athlete-recent-photos-card {
    content-visibility: auto;
    contain-intrinsic-size: 480px 640px;
}

/* HIDDEN CLASS */
.hidden {
    display: none !important;
}

/* ======================================================================================================================================= */
/* MEDIA IMPORT SCREEN STYLES */
/* ======================================================================================================================================= */

.media-import-nav-bar {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.media-import-nav-content {
    background-color: #d32f2f00;
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    height: 60px;
    min-height: 60px;
    padding: 0 10px;
    box-sizing: border-box;
}

.media-import-nav-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.media-import-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.media-import-nav-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.media-import-nav-right-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.media-import-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-align: center;
}

.media-import-button-back {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightMedium);
    font-size: var(--fontSizeMini);
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: var(--brandAccent);
    color: #FFFFFF;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.media-import-button-back:hover {
    background: color-mix(in srgb, var(--brandAccent) 85%, black);
}

.media-import-button-back:active {
    transform: scale(0.98);
}

.media-import-button-save {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightMedium);
    font-size: var(--fontSizeMini);
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: var(--buttonPrimaryBlue);
    color: #FFFFFF;
    white-space: nowrap;
    transition: background 0.3s ease;
    flex: 0 0 auto;
}

.media-import-button-drop {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightMedium);
    font-size: var(--fontSizeMini);
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    border: none;
    background: #9E9E9E;
    color: #FFFFFF;
    white-space: nowrap;
    transition: background 0.3s ease, opacity 0.3s ease;
    flex: 0 0 auto;
}

.media-import-button-drop:hover:not(:disabled) {
    background: #757575;
}

.media-import-button-drop:active:not(:disabled) {
    transform: scale(0.98);
}

.media-import-button-drop:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.media-import-button-save:hover {
    background: var(--buttonPrimaryBlue);
}

.media-import-button-save:active {
    transform: scale(0.98);
}

.media-import-content-area {
    margin-top: 50px;
    padding: 10px;
    height: calc(100vh - 50px);
    min-height: calc(100vh - 50px);
    display: flex;
    gap: 10px;
    overflow: hidden;
}

/* Player Data page specific: adjust content area when filter bar is present */
.player-data-screen .media-import-content-area {
    margin-top: 60px;
    height: auto;
    min-height: auto;
    background: #f5f5f5;
    border: 1px solid #D4D4D4;
    box-shadow: inset 0px 1px 23px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    width: calc(100% - 20px);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: visible;
}

.media-import-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #D4D4D4;
    box-shadow: inset 0px 1px 23px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
    min-width: 0;
}

.media-import-empty-message {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #D4D4D4;
    box-shadow: inset 0px 1px 23px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    min-width: 0;
}

.media-import-empty-message p {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    color: var(--fontGrey);
    text-align: center;
}

.media-import-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 6px;
}

.media-import-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.media-import-sidebar {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    border-left: 1px solid #D4D4D4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.media-import-form {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-import-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.media-import-label {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-align: left;
}

.media-import-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.media-import-label-row .media-import-label {
    margin: 0;
}

.media-import-find-face-link {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--buttonPrimaryBlue);
    text-decoration: underline;
    cursor: pointer;
    text-transform: none;
}

.media-import-find-face-link:hover:not(:disabled) {
    color: var(--brandAccent);
}

.media-import-find-face-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.media-import-select option {
    text-transform: uppercase;
}

.media-import-select {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    background: #FFFFFF;
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    width: 100%;
    appearance: none;
    text-transform: uppercase;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    transition: border-color 0.3s ease;
}

.media-import-select:hover {
    border-color: var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
}

.media-import-select:focus {
    outline: none;
    border-color: var(--brandAccent);
    border-width: 2px;
}

.media-import-input {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 12px 15px;
    width: 100%;
    transition: border-color 0.3s ease;
}

.media-import-input:focus {
    outline: none;
    border-color: var(--brandAccent);
    border-width: 2px;
}

.media-import-thumbnail-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.media-import-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* Responsive styles for media import nav */
@media (max-width: 799px) {
    .media-import-nav-content {
        padding: 0 10px;
    }
    
    .media-import-button-back .button-text-full,
    .media-import-button-save .button-text-full {
        display: none !important;
    }
    
    .media-import-button-back .button-text-short,
    .media-import-button-save .button-text-short {
        display: inline !important;
    }
    

}

/* ======================================================================================================================================= */
/* NEW PLAYER MODAL STYLES */
/* ======================================================================================================================================= */

.new-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-player-modal.hidden {
    display: none;
}

.new-player-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.new-player-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0px 26px 43.7px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    z-index: 10001;
}

.new-player-modal-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeTitle);
    color: var(--fontDark);
    margin-bottom: 25px;
    text-align: left;
}

.new-player-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.new-player-modal-label {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-align: left;
}

.new-player-modal-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-family: var(--fontFamily);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    background: #FFFFFF;
    transition: border-color 0.3s ease;
}

.new-player-modal-input:focus {
    outline: none;
    border-color: var(--brandAccent);
    border-width: 4px;
}

.new-player-modal-input::placeholder {
    color: var(--fontGrey);
}

textarea.new-player-modal-input {
    resize: vertical;
    min-height: 3.25rem;
    line-height: 1.4;
}

.new-player-modal-button {
    width: 100%;
    padding: 15px;
    background: var(--buttonPrimaryBlue);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.new-player-modal-button:hover {
    background: var(--buttonPrimaryBlue);
}

.new-player-modal-button:active {
    transform: scale(0.98);
}

.new-player-modal-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.new-player-modal-button:disabled:hover {
    background: #ccc;
}

/* New Player modal (port from laptop): extends new-entry-modal, uses these classes */
.new-player-modal-content-extended {
    max-width: 600px;
}

.new-entry-content-area.new-player-form-area {
    min-height: 600px;
    flex: 0 0 auto;
    overflow: visible;
}

.new-player-form-area {
    padding: 20px 20px 40px 20px;
}

.new-player-profile-image-section {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;
}

.new-player-profile-image-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 400px;
    max-height: 400px;
    margin: 0 auto;
    padding: 0;
    border: 2px solid #D4D4D4;
    border-radius: 8px;
    background: #E8E8E8;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
}

.new-player-profile-image-btn:hover {
    border-color: #b8b8b8;
}

.new-player-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
    user-select: none;
}

.new-player-name-row {
    margin-bottom: 24px;
}

.new-player-choose-team-section {
    margin-bottom: 24px;
}

.new-player-section-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.new-player-section-desc {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    color: var(--fontGrey);
    line-height: 1.5;
    margin-bottom: 12px;
}

.new-player-field-hint {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    line-height: 1.4;
    margin-top: 4px;
}

.new-player-radio-group {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.new-player-radio-option {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border: 2px solid #D4D4D4;
    border-radius: 8px;
    background: #FFFFFF;
    cursor: pointer;
    font-family: var(--fontFamily);
    font-size: var(--fontSizeBody);
    font-weight: var(--fontWeightBold);
    color: var(--fontDark);
    text-transform: uppercase;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.new-player-radio-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.new-player-radio-option:has(input:checked) {
    border-color: var(--buttonPrimaryBlue);
    background: rgba(0, 102, 204, 0.06);
}

.new-player-team-select {
    width: 100%;
    max-width: 100%;
}

.new-player-team-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.new-player-team-fields:not(.hidden) {
    display: flex;
}

.new-player-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.new-player-field-row {
    display: flex;
    gap: 12px;
}

.new-player-field-half {
    flex: 1;
    min-width: 0;
}

.new-player-field-row-thirds {
    display: flex;
    gap: 12px;
}

.new-player-field-third {
    flex: 1;
    min-width: 0;
}

.new-player-radio-option:has(input.error) {
    border-color: #c0392b;
}

.new-player-label {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
}

.new-player-input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 15px;
    border: 2px solid #D4D4D4;
    border-radius: 8px;
    font-family: var(--fontFamily);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    background: #FFFFFF;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.new-player-input:focus {
    outline: none;
    border-color: var(--buttonPrimaryBlue);
}

#newPlayerModal .filter-select,
#newPlayerModal .new-player-select {
    color: var(--fontDark);
    height: 40px;
    min-height: 40px;
    padding: 0 35px 0 15px;
    box-sizing: border-box;
}

#newPlayerModal .filter-select:focus,
#newPlayerModal .new-player-select:focus {
    outline: none;
    border-color: var(--buttonPrimaryBlue);
}

.new-player-input.error {
    border-color: #d32f2f;
}

.new-player-input::placeholder {
    color: var(--fontGrey);
}

.new-player-select {
    width: 100%;
    min-width: 0;
}

.new-player-select.error {
    border-color: #d32f2f;
}

.new-player-error {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: 0.7rem;
    color: #d32f2f;
}

.new-player-error:not(.hidden) {
    display: block;
}

.new-player-athlete-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ======================================================================================================================================= */
/* PLAYER DATA PAGE STYLES */
/* ======================================================================================================================================= */

/* Player Data Title Section */
.player-data-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.player-data-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-align: center;
    text-transform: uppercase;
}

.player-data-date {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-align: center;
    text-transform: uppercase;
}

/* Player Data Filter Bar */
.player-data-filter-bar {
    width: 100%;
    padding: 20px 20px 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-data-filter-wrapper {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.player-data-filter {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightMedium);
    font-size: var(--fontSizeMini);
    color: var(--fontDark);
    background: #FFFFFF;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color 0.3s ease;
}

.player-data-filter:hover {
    border-color: var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
}

.player-data-filter.active {
    border: 2px solid var(--buttonPrimaryBlue);
    background: #FFFFFF;
}

.player-data-filter-text {
    flex: 1;
}

.player-data-filter-caret {
    font-size: 8px;
    color: var(--fontGrey);
    opacity: 0.6;
}

/* Player Track Section */
.player-track-container {
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 20px 24px 20px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.player-track-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.player-track {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-width: min-content;
    height: 200px;
}

.player-track-card {
    flex: 0 0 auto;
    width: 220px;
    height: 220px;
    min-height: 220px;
    border-radius: 8px;
    overflow: visible;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
    background: #FFFFFF;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.player-track-card:hover {
    transform: scale(1.02);
}

.player-track-card.selected {
    border: 5px solid #FFFFFF;
    box-shadow: 0 0 0 4px var(--buttonPrimaryBlue);
}

.player-track-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 4px;
}

/* Player Details Section */
.player-details-section {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.player-details-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-details-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.player-details-status {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
    text-align: center;
}

.player-details-photo {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-details-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    display: block;
}

/* Player details section - use dashboard stats container styling */
.player-details-section .dashboard-stats-container {
    width: 100%;
    max-width: 700px;
    margin-left: 0;
    margin-right: 0;
}

/* New Data Entry Section */
.new-data-entry-section {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.new-data-entry-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    text-align: center;
}

.new-data-entry-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.new-data-entry-filter {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightMedium);
    font-size: var(--fontSizeMini);
    color: var(--fontDark);
    background: #FFFFFF;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    white-space: nowrap;
}

.new-data-entry-filter:hover {
    border-color: var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
}

.new-data-entry-filter.active {
    border: 2px solid var(--buttonPrimaryBlue);
    background: transparent;
}

.new-data-entry-carousel-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 20px 24px 20px;
}

.new-data-entry-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.new-data-entry-carousel {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-width: min-content;
}

.new-data-entry-card {
    flex: 0 0 auto;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.new-data-entry-card:hover {
    transform: scale(1.02);
}

.new-data-entry-image {
    width: 200px;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    display: block;
    margin-bottom: 12px;
}

.new-data-entry-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-align: center;
    margin-bottom: 4px;
}

.new-data-entry-category {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-align: center;
    text-transform: uppercase;
}

/* Previous Entries Section */
.previous-entries-section {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.previous-entries-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.previous-entries-title-line {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    text-align: center;
}

.previous-entries-title-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
    text-align: center;
}

.previous-entries-container {
    width: 100%;
    max-width: 1200px;
    background: #FFFFFF;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.previous-entry-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid #E5E5E5;
}

.previous-entry-card:last-child {
    border-bottom: none;
}

.previous-entry-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: top center;
    border-radius: 6px;
    flex-shrink: 0;
}

.previous-entry-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.previous-entry-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    text-align: left;
}

.previous-entry-date {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-align: left;
}

.previous-entry-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    min-width: 100px;
}

.previous-entry-number {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-align: right;
    line-height: 1.2;
}

.previous-entry-unit {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-align: right;
    text-transform: uppercase;
}

/* ======================================================================================================================================= */
/* NEW ENTRY MODAL STYLES */
/* ======================================================================================================================================= */

.new-entry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 20px 20px 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.new-entry-modal.hidden {
    display: none;
}

.new-entry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

.new-entry-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.13);
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Nav Bar - sticky so it stays visible when scrolling modal content */
.new-entry-nav-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    flex-shrink: 0;
    gap: 10px;
    background: #FFFFFF;
}

.new-entry-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.new-entry-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: var(--fontSizeBody);
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.1;
}

.new-entry-date {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    color: var(--fontGrey);
    text-transform: uppercase;
}

.new-entry-btn-back {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    background: #9E9E9E;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    cursor: pointer;
    flex-shrink: 0;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.new-entry-btn-back:hover {
    background: #888;
}

.new-entry-btn-back:active {
    transform: scale(0.98);
}

.new-entry-btn-save {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    background: var(--buttonPrimaryBlue);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    cursor: pointer;
    flex-shrink: 0;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.new-entry-btn-save:hover {
    background: #1565C0;
}

.new-entry-btn-save:active {
    transform: scale(0.98);
}

/* Category Selector */
.new-entry-category-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px 0 10px;
    margin-top: 40px;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.new-entry-category-scroll::-webkit-scrollbar {
    display: none;
}

.new-entry-category-track {
    display: flex;
    gap: 8px;
    min-width: min-content;
}

.new-entry-category-pill {
    flex: 0 0 auto;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    color: var(--fontDark);
    background: #FFFFFF;
    border: 1.5px solid #D0D0D0;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    transition: border-color 0.2s ease;
    user-select: none;
}

.new-entry-category-pill:hover {
    border-color: var(--buttonPrimaryBlue);
    color: var(--buttonPrimaryBlue);
}

.new-entry-category-pill.active {
    border: 2.5px solid var(--buttonPrimaryBlue);
}

/* Drill Image */
.new-entry-drill-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: bottom;
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
    margin: 0px;
}

/* Drill Info */
.new-entry-drill-info {
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.new-entry-drill-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
}

.new-entry-drill-title-below {
    margin-bottom: 8px;
}

.new-entry-drill-description {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: 1.1rem;
    color: var(--fontGrey);
    line-height: 1.65;
    padding: 0 20px 20px 20px;
    text-align: center;
}

/* Modal filter bar */
.new-entry-filter-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 16px 20px;
    flex-shrink: 0;
}

/* Modal player carousel */
.new-entry-player-track-container {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 20px 20px 20px;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}

/* When content overflows (wider than container), left-align */
.new-entry-player-track-container.overflowing {
    justify-content: flex-start;
}

.new-entry-player-track-container::-webkit-scrollbar {
    display: none;
}

.new-entry-player-track {
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-width: min-content;
    flex: 0 0 auto;
}

.new-entry-player-card {
    flex: 0 0 auto;
    width: 150px;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.5;
    transition: border-color 0.05s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.new-entry-player-card:hover {
    opacity: 1;
}

.new-entry-player-card.selected {
    border: 3px solid transparent;
    outline: 3px solid var(--buttonPrimaryBlue);
    outline-offset: 1px;
    opacity: 1;
}

.new-entry-player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transform: scale(2);
    transform-origin: top center;
}

/* Selected player info */
.new-entry-selected-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 20px 20px 20px;
    flex-shrink: 0;
}

.new-entry-selected-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.new-entry-selected-detail {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
    text-align: center;
}

/* Selected player name + image below widget */
.new-entry-selected-player-below-widget.has-player {
    cursor: pointer;
}

.new-entry-selected-player-below-widget {
    padding: 12px 20px 0 20px;
    margin-bottom: 140px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.new-entry-player-below-name {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
}

.new-entry-player-below-image-wrap {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
}

.new-entry-player-below-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top;
    transform: scale(1.4);
    transform-origin: top center;
}

/* Chronometer */
.new-entry-chronometer {
    flex-shrink: 0;
    min-height: 260px;
    border: 1.5px solid #D4D4D4;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 10px 20px 10px;
    box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.06);
}

.new-entry-chrono-display {
    height: 180px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.new-entry-chrono-time {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: clamp(4.5rem, 20.25vw, 7.3125rem);
    color: var(--fontDark);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.new-entry-chrono-controls {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #FFFFFF;
}

.new-entry-chrono-controls .new-entry-chrono-reset-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(((100% - 24px) / 3)+ 2px);
}

.new-entry-chrono-controls .new-entry-chrono-start-btn {
    flex: 2 1 0;
    min-width: 0;
}

.new-entry-chrono-reset-btn {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    background: #9E9E9E;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    text-transform: uppercase;
    flex: 0 0 auto;
    transition: background 0.2s ease;
}

.new-entry-chrono-reset-btn:hover {
    background: #888;
}

.new-entry-chrono-reset-btn:active {
    transform: scale(0.98);
}

.new-entry-chrono-start-btn {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    background: var(--buttonPrimaryBlue);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    text-transform: uppercase;
    flex: 1;
    transition: background 0.2s ease;
}

.new-entry-chrono-start-btn:hover {
    background: #1565C0;
}

.new-entry-chrono-start-btn:active {
    transform: scale(0.98);
}

/* Widget hidden utility */
.new-entry-widget-hidden {
    display: none !important;
}

/* Counter Widget */
.new-entry-counter {
    flex-shrink: 0;
    min-height: 260px;
    border: 1.5px solid #D4D4D4;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 10px 20px 10px;
    box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.06);
}

.new-entry-counter-display {
    height: 180px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.new-entry-counter-value {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: clamp(4.5rem, 20.25vw, 7.3125rem);
    color: var(--fontDark);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.new-entry-counter-unit {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
}

.new-entry-counter-controls {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #FFFFFF;
}

.new-entry-counter-controls .new-entry-chrono-reset-btn {
    flex: 1 1 0;
    min-width: 0;
}

.new-entry-counter-minus-btn {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    background: #1A1A1A;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    flex: 1;
    padding: 16px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-entry-counter-minus-btn:hover {
    background: #333;
}

.new-entry-counter-minus-btn:active {
    transform: scale(0.98);
}

.new-entry-counter-plus-btn {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    background: var(--buttonPrimaryBlue);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    flex: 1;
    padding: 16px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-entry-counter-plus-btn:hover {
    background: #1565C0;
}

.new-entry-counter-plus-btn:active {
    transform: scale(0.98);
}

/* Float Input Widget */
.new-entry-float {
    flex-shrink: 0;
    min-height: 260px;
    border: 1.5px solid #D4D4D4;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 10px 20px 10px;
    box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.06);
}

.new-entry-float-display {
    height: 180px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.new-entry-float-input {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: clamp(4.5rem, 20.25vw, 7.3125rem);
    color: var(--fontDark);
    line-height: 1;
    border: none;
    outline: none;
    text-align: center;
    width: 100%;
    background: transparent;
}

.new-entry-float-input::-webkit-outer-spin-button,
.new-entry-float-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.new-entry-float-input:focus::placeholder {
    color: transparent;
}

.new-entry-float-unit {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeMini);
    color: var(--fontGrey);
    text-transform: uppercase;
}

/* Recent Entries Graph */
.new-entry-recent-entries-title {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightBold);
    font-size: 1.8rem;
    color: var(--fontDark);
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 40px;
}

.new-entry-recent-graph-container {
    border: 1.5px solid #D4D4D4;
    border-radius: 8px;
    padding: 40px 20px 16px 20px;
    overflow: hidden;
}

.new-entry-graph-column {
    justify-content: center;
    min-width: 0;
    width: 100%;
    margin-bottom: 0;
}

.new-entry-best-time {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    color: var(--fontGrey);
    text-align: center;
    text-transform: uppercase;
    margin-top: 14px;
}

.new-entry-best-time-value {
    color: var(--buttonPrimaryBlue);
    font-weight: var(--fontWeightSemiBold);
}

/* =======================================================================================================================================
   REWARDS — scoped to #rewardsContent only. Layout: rewards-* ; copy: rewards-text-* (does not share BOOK classes)
   ======================================================================================================================================= */

#rewardsContent .content-display-area.rewards-preview-area {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

#rewardsContent .rewards-screen-inner {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#rewardsContent .rewards-track.intro-pending {
    opacity: 0;
    transform: translateX(var(--intro-translate-rewards));
    visibility: visible;
}

@keyframes rewards-screen-intro {
    from {
        opacity: 0;
        transform: translateX(var(--intro-translate-rewards));
        gap: var(--intro-gap-rewards);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        gap: 9px;
    }
}

#rewardsContent .rewards-track.intro-visible {
    visibility: visible;
    animation: rewards-screen-intro 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#rewardsContent .rewards-track {
    display: flex;
    flex-direction: row;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 10px 40px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
}

#rewardsContent .rewards-track::-webkit-scrollbar {
    display: none;
}

#rewardsContent .rewards-track:hover::-webkit-scrollbar {
    display: block;
    height: 8px;
}

#rewardsContent .rewards-track:hover::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

#rewardsContent .rewards-track:hover::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#rewardsContent .rewards-card {
    flex: 0 0 auto;
    width: 360px;
    min-width: 360px;
    border-radius: 8px;
    position: relative;
}

#rewardsContent .rewards-card--text {
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

/* Vertical center: message + timer + arrow as one block (reference mockup) */
#rewardsContent .rewards-card-text-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
    padding: 16px 12px 12px 12px;
    min-height: 0;
}

#rewardsContent .rewards-card-text-inner--right {
    text-align: right;
    align-items: flex-end;
}

#rewardsContent .rewards-card-text-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
}

#rewardsContent .rewards-text-kicker-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

#rewardsContent .rewards-text-kicker-group--chosen .rewards-text-kicker,
#rewardsContent .rewards-text-kicker-group--redeemed .rewards-text-kicker {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeTitle);
    text-transform: uppercase;
    color: var(--fontGrey);
    line-height: 1.15;
}

#rewardsContent .rewards-text-detail-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

#rewardsContent .rewards-text-detail {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeTitle);
    text-transform: uppercase;
    color: var(--fontDark);
    line-height: 1.15;
}

#rewardsContent .rewards-countdown {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

#rewardsContent .rewards-countdown-cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px 10px;
    border-left: 1px solid #ccc;
}

#rewardsContent .rewards-countdown-cell:first-child {
    border-left: none;
}

#rewardsContent .rewards-text-countdown-digit {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeTitle);
    color: var(--buttonPrimaryBlue);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
}

#rewardsContent .rewards-text-countdown-label {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeMini);
    text-transform: uppercase;
    color: var(--fontGrey);
    margin-top: 6px;
}

#rewardsContent .rewards-card-arrow-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* width:auto so the bitmap aligns flush right with text/countdown (width:100% stretched the asset) */
#rewardsContent .rewards-card-arrow-img {
    display: block;
    height: auto;
    max-width: 480px;
    width: auto;
    opacity: 0.85;
}

#rewardsContent .rewards-card--photo {
    min-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

#rewardsContent .rewards-card-photo-head,
#rewardsContent .rewards-card-photo-bottom {
    position: relative;
}

#rewardsContent .rewards-card-photo-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 16px 16px 0 16px;
}

#rewardsContent .rewards-text-photo-venue {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeTitle);
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    max-width: 100%;
}

#rewardsContent .rewards-card-photo-head .rewards-text-address {
    margin-top: 20px;
    margin-bottom: 0;
}

#rewardsContent .rewards-card-qr {
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    display: block;
    margin-bottom: 12px;
}

#rewardsContent .rewards-card-photo-bottom {
    padding: 0 16px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#rewardsContent .rewards-card-photo-copy {
    padding-top: 0;
    width: 100%;
}

#rewardsContent .rewards-text-offer {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightSemiBold);
    font-size: var(--fontSizeTitle);
    line-height: 1.25;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

#rewardsContent .rewards-text-address {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
}

#rewardsContent .rewards-text-terms {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    font-size: var(--fontSizeBody);
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

#rewardsContent .rewards-text-terms--bullet-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#rewardsContent .rewards-text-terms-line {
    margin: 0;
    text-transform: uppercase;
}

#rewardsContent .rewards-text-terms--single {
    margin: 0;
    text-transform: uppercase;
}

/* ============================================================ */
/* BOOK EDIT PHOTO PANEL */
/* ============================================================ */

.book-edit-photo-panel {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: flex-end;
}

.book-edit-photo-panel.hidden {
    display: none;
}

/* Pan/zoom chrome: sibling of photo carousel sheet; flush to viewport top, full width when panel is open. */
.book-edit-photo-panel .book-panzoom-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 30050;
    transform: none;
    pointer-events: none;
    box-sizing: border-box;
}

.book-edit-photo-panel:not(.hidden):not(.is-closing) .book-panzoom-nav {
    animation: bookPanzoomNavIn 0.35s ease-out both;
}

.book-edit-photo-panel .book-panzoom-nav__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    height: 60px;
    box-sizing: border-box;
    padding: 0 10px 0 20px;
    border-radius: 0;
    background: #0a0a0a;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.book-edit-photo-panel .book-panzoom-nav__lead {
    justify-self: start;
    display: flex;
    align-items: center;
}

.book-edit-photo-panel .book-panzoom-nav__reset {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #ffffff;
    background: #3a3a3a;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    height: 40px;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
}

.book-edit-photo-panel .book-panzoom-nav__reset:hover {
    background: #4a4a4a;
}

.book-edit-photo-panel .book-panzoom-nav__cluster {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    justify-self: center;
}

.book-edit-photo-panel .book-panzoom-nav__trail {
    justify-self: end;
    display: flex;
    align-items: center;
}

.book-edit-photo-panel .book-panzoom-nav__save {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #ffffff;
    /* Fixed blue: --brandAccent is gray site-wide; this CTA must stay primary blue */
    background: #1976d2;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    height: 40px;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
}

.book-edit-photo-panel .book-panzoom-nav__save:hover:not(:disabled) {
    background: color-mix(in srgb, #1976d2 85%, black);
}

.book-edit-photo-panel .book-panzoom-nav__save:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.book-edit-photo-panel .book-panzoom-nav__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #2d2d2d;
    border: 2px solid rgba(255, 255, 255, 0);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.book-edit-photo-panel button.book-panzoom-nav__slot {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.book-edit-photo-panel .book-panzoom-nav__slot:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Pan cluster (←→↑↓) then 20px before zoom (+−); flex gap is 2px, so +18px on the + button. */
.book-edit-photo-panel .book-panzoom-nav__cluster > .book-panzoom-nav__slot:nth-child(5) {
    margin-left: 18px;
}

.book-edit-photo-panel .book-panzoom-nav__icon {
    display: block;
    max-width: 10px;
    max-height: 10px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.book-edit-photo-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.27);
    pointer-events: none;
    animation: bookPanelDimIn 0.2s ease-out both;
}

@keyframes bookPanelDimIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.book-edit-photo-sheet {
    position: relative;
    width: 100%;
    background: #000000;
    z-index: 10;
    padding: 0;
    box-sizing: border-box;
    pointer-events: auto;
    animation: bookSheetIn 0.35s ease-out both;
}

@keyframes bookSheetIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pan/zoom bar: same open/close timing as .book-edit-photo-sheet; opacity-only animation (flush to viewport top). */
@keyframes bookPanzoomNavIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bookPanzoomNavOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes bookSheetOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

@keyframes bookPanelDimOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.book-edit-photo-panel.is-closing::before {
    animation: bookPanelDimOut 0.25s ease-in both;
}

.book-edit-photo-panel.is-closing .book-edit-photo-sheet {
    animation: bookSheetOut 0.2s ease-in both;
}

.book-edit-photo-panel.is-closing .book-panzoom-nav {
    animation: bookPanzoomNavOut 0.2s ease-in both;
}

.book-edit-photo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 16px 24px;
}

.book-edit-photo-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
}

.book-edit-photo-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.book-edit-photo-close:hover {
    opacity: 1;
}

.book-edit-photo-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Padding gives room for the box-shadow ring so it isn't clipped */
    padding: 10px 0;
}

.book-edit-photo-scroll::-webkit-scrollbar {
    display: none;
}

.book-edit-photo-track {
    display: flex;
    flex-direction: row;
    gap: 7px;
    padding: 0 24px;
    width: max-content;
}

.book-edit-photo-tile {
    flex-shrink: 0;
    height: 110px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    background: #333333;
    border: 2px solid transparent;
    transition: border-color 0.05s ease, box-shadow 0.05s ease;
}

.book-edit-photo-tile img {
    display: block;
    height: 110px;
    width: auto;
    pointer-events: none;
}

/* Active/selected tile: reveal the border and add outer white ring.
   Travels to the hovered tile on mouseenter and returns on mouseleave. */
.book-edit-photo-tile--active {
    border-color: rgb(0, 0, 0);
    box-shadow: 0 0 0 2px rgb(255, 255, 255);
}

.book-edit-photo-tile--loading {
    background: linear-gradient(90deg, #2e2e2e 25%, #3e3e3e 50%, #2e2e2e 75%);
    background-size: 800px 100%;
    animation: bookTileShimmer 1.4s infinite linear;
}

@keyframes bookTileShimmer {
    from { background-position: -400px 0; }
    to   { background-position:  400px 0; }
}

.book-edit-photo-empty {
    padding: 0 24px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    align-self: center;
}

/* BOOK screen only — shorter top/bottom chrome; player profile modal keeps 110px tiles/bar */
.book-edit-photo-panel .book-edit-photo-tile {
    height: 60px;
}

.book-edit-photo-panel .book-edit-photo-tile img {
    height: 60px;
}

/* ============================================================ */
/* PLAYER PROFILE EDIT PHOTO PANEL (above edit-player modal) */
/* ============================================================ */

.player-profile-edit-photo-panel {
    position: fixed;
    inset: 0;
    z-index: 35000;
    display: flex;
    align-items: flex-end;
}

.player-profile-edit-photo-panel.hidden {
    display: none;
}

/* Pan/zoom chrome: sibling of photo carousel sheet; flush to viewport top, full width when panel is open. */
.player-profile-edit-photo-panel .book-panzoom-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 35050;
    transform: none;
    pointer-events: none;
    box-sizing: border-box;
}

.player-profile-edit-photo-panel:not(.hidden):not(.is-closing) .book-panzoom-nav {
    animation: bookPanzoomNavIn 0.35s ease-out both;
}

.player-profile-edit-photo-panel .book-panzoom-nav__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    height: 110px;
    box-sizing: border-box;
    padding: 0 10px 0 20px;
    border-radius: 0;
    background: #0a0a0a;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.player-profile-edit-photo-panel .book-panzoom-nav__lead {
    justify-self: start;
    display: flex;
    align-items: center;
}

.player-profile-edit-photo-panel .book-panzoom-nav__reset {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #ffffff;
    background: #3a3a3a;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    height: 40px;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
}

.player-profile-edit-photo-panel .book-panzoom-nav__reset:hover {
    background: #4a4a4a;
}

.player-profile-edit-photo-panel .book-panzoom-nav__cluster {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    justify-self: center;
}

.player-profile-edit-photo-panel .book-panzoom-nav__trail {
    justify-self: end;
    display: flex;
    align-items: center;
}

.player-profile-edit-photo-panel .book-panzoom-nav__save {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #ffffff;
    /* Fixed blue: --brandAccent is gray site-wide; this CTA must stay primary blue */
    background: #1976d2;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    height: 40px;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
}

.player-profile-edit-photo-panel .book-panzoom-nav__save:hover:not(:disabled) {
    background: color-mix(in srgb, #1976d2 85%, black);
}

.player-profile-edit-photo-panel .book-panzoom-nav__save:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.player-profile-edit-photo-panel .book-panzoom-nav__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #2d2d2d;
    border: 2px solid rgba(255, 255, 255, 0);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.player-profile-edit-photo-panel button.book-panzoom-nav__slot {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.player-profile-edit-photo-panel .book-panzoom-nav__slot:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Pan cluster (←→↑↓) then 20px before zoom (+−); flex gap is 2px, so +18px on the + button. */
.player-profile-edit-photo-panel .book-panzoom-nav__cluster > .book-panzoom-nav__slot:nth-child(5) {
    margin-left: 18px;
}

.player-profile-edit-photo-panel .book-panzoom-nav__icon {
    display: block;
    max-width: 10px;
    max-height: 10px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.player-profile-edit-photo-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.27);
    pointer-events: none;
    animation: bookPanelDimIn 0.2s ease-out both;
}

@keyframes bookPanelDimIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.book-edit-photo-sheet {
    position: relative;
    width: 100%;
    background: #000000;
    z-index: 10;
    padding: 0;
    box-sizing: border-box;
    pointer-events: auto;
    animation: bookSheetIn 0.35s ease-out both;
}

@keyframes bookSheetIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pan/zoom bar: same open/close timing as .book-edit-photo-sheet; opacity-only animation (flush to viewport top). */
@keyframes bookPanzoomNavIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bookPanzoomNavOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes bookSheetOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

@keyframes bookPanelDimOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.player-profile-edit-photo-panel.is-closing::before {
    animation: bookPanelDimOut 0.25s ease-in both;
}

.player-profile-edit-photo-panel.is-closing .book-edit-photo-sheet {
    animation: bookSheetOut 0.2s ease-in both;
}

.player-profile-edit-photo-panel.is-closing .book-panzoom-nav {
    animation: bookPanzoomNavOut 0.2s ease-in both;
}


/* Profile picker: SAVE stays primary blue. */
.player-profile-edit-photo-panel .book-panzoom-nav__save:disabled {
    opacity: 1;
    cursor: pointer;
    background: #1976d2;
}

