@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  outline: none;
  box-sizing: border-box;
}

:root {
  --theme-bg-color: transparent;
  --border-color: rgba(113, 119, 144, 0.18);
  --theme-color: #f9fafb;
  --inactive-color: rgb(113 119 144 / 78%);
  --body-font: "Poppins", sans-serif;
  --hover-menu-bg: rgba(146, 151, 179, 0.07);
  --content-title-color: #999ba5;
  --content-bg: rgba(146, 151, 179, 0.09);
  --button-inactive: rgb(249 250 251 / 55%);
  --dropdown-bg: rgba(20, 22, 43, 0.95);
  --dropdown-hover: rgb(42 46 60);
  --popup-bg: rgba(20, 22, 43, 0.95);
  --search-bg: #14162b;
  --overlay-bg: rgba(36, 39, 59, 0.3);
  --scrollbar-bg: rgb(1 2 3 / 40%);
  --arrow-bg: rgba(255, 255, 255, 0.3);
  --arrow-icon: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg);
  --option-bg: #666666;
  --select-bg: rgb(146 151 179 / 13%);
  --header-blur-bg: rgba(20, 22, 43, 0.88);
  --accent-orange: #f97316;
}

.light-mode {
  --theme-bg-color: transparent;
  --theme-color: #1a1f36;
  --inactive-color: #333333;
  --button-inactive: #1a1f36;
  --search-bg: rgba(255, 255, 255, 0.5);
  --dropdown-bg: rgba(255, 255, 255, 0.65);
  --overlay-bg: rgba(255, 255, 255, 0.3);
  --dropdown-hover: rgb(236 236 236);
  --border-color: rgba(0, 0, 0, 0.07);
  --popup-bg: rgba(255, 255, 255, 0.65);
  --hover-menu-bg: rgba(58, 109, 240, 0.04);
  --scrollbar-bg: rgb(255 253 253 / 57%);
  --content-bg: rgba(255, 255, 255, 0.6);
  --content-title-color: var(--theme-color);
  --header-blur-bg: rgba(255, 255, 255, 0.72);
}

.light-mode .header,
.light-mode .bottom-nav {
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

/* <select> styles */
select {
  /* Reset */
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  outline: 0;
  font: inherit;
  /* Personalize */
  width: 16rem;
  padding: 1rem 4rem 1rem 1rem;
  background: var(--arrow-icon) no-repeat right 0.8em center/1.3em, linear-gradient(to left, var(--arrow-bg) 3em, var(--select-bg) 3em);
  color: white;
  border-radius: 0.18em;
  box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  /* Remove IE arrow */
  /* Remove focus outline */
  /* <option> colors */
}
select::-ms-expand {
  display: none;
}
select:focus {
  outline: none;
}
select option {
  color: inherit;
  background-color: var(--option-bg);
}

html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--body-font);
  background: linear-gradient(160deg, #0d0f1a 0%, #141628 100%);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2em;
  width: 100%;
  height: 100vh;
}
@media screen and (max-width: 480px) {
  body {
    padding: 0.8em;
  }
}

.video-bg {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.video-bg video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

img {
  max-width: 100%;
}

.dark-light {
  position: fixed;
  top: 47px;
  left: 53px; 
  background-color: var(--dropdown-bg);
  box-shadow: -1px 3px 8px -1px rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 50%;
  z-index: 3;
  cursor: pointer;
}
.dark-light svg {
  width: 24px;
  flex-shrink: 0;
  fill: #ffce45;
  stroke: #ffce45;
  transition: 0.5s;
}

.light-mode .dark-light svg {
  fill: transparent;
  stroke: var(--theme-color);
}
.light-mode .profile-img {
  border: 2px solid var(--theme-bg-color);
}
.light-mode .content-section ul {
  background-color: var(--theme-bg-color);
}
.light-mode .pop-up__title {
  border-color: var(--theme-color);
}
.light-mode .dropdown.is-active ul {
  background-color: rgba(255, 255, 255, 0.94);
}

body.light-mode {
  background: linear-gradient(160deg, #e8edf8 0%, #f0f4ff 100%);
}

.app {
  background-color: transparent;
  max-width: 1250px;
  max-height: 860px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 500;
}

.header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 58px;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding: 0 30px;
  white-space: nowrap;
  background: var(--header-blur-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
@media screen and (max-width: 480px) {
  .header {
    padding: 0 16px;
  }
}
.header-menu {
  display: flex;
  align-items: center;
}
.header-menu a {
  padding: 20px 30px;
  text-decoration: none;
  color: var(--inactive-color);
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}
@media screen and (max-width: 610px) {
  .header-menu a:not(.main-header-link) {
    display: none;
  }
}
.header-menu a.is-active, .header-menu a:hover {
  color: var(--theme-color);
  border-bottom: 2px solid var(--theme-color);
}

.notify {
  position: relative;
}
.notify:before {
  content: "";
  position: absolute;
  background-color: #3a6df0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  right: 20px;
  top: 16px;
}
@media screen and (max-width: 1055px) {
  .notify {
    display: none;
  }
}

.menu-circle {
  width: 15px;
  height: 15px;
  background-color: #544d4d;
  border-radius: 50%;
  box-shadow: 24px 0 0 0 #f8ce52, 48px 0 0 0 #5fcf65; 
  margin-right: 195px;
  flex-shrink: 0;
}
@media screen and (max-width: 945px) {
  .menu-circle {
    display: none;
  }
}

/* Style for the search box */
#searchForm {
  position: relative;
  margin-bottom: 0px;
  width: 100%;
}

.search-bar {
  position: relative;
  height: 40px;
  display: flex;
  width: 100%;
  max-width: 400px;
  padding-left: 16px;
  border-radius: 4px;
}
.search-bar input {
  width: 100%;
  height: 100%;
  border: none;
  background-color: var(--search-bg);
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  padding: 0 20px 0 40px;
  box-shadow: 0 0 0 2px rgba(134, 140, 160, 0.02);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56.966 56.966' fill='%23717790c7'%3e%3cpath d='M55.146 51.887L41.588 37.786A22.926 22.926 0 0046.984 23c0-12.682-10.318-23-23-23s-23 10.318-23 23 10.318 23 23 23c4.761 0 9.298-1.436 13.177-4.162l13.661 14.208c.571.593 1.339.92 2.162.92.779 0 1.518-.297 2.079-.837a3.004 3.004 0 00.083-4.242zM23.984 6c9.374 0 17 7.626 17 17s-7.626 17-17 17-17-7.626-17-17 7.626-17 17-17z'/%3e%3c/svg%3e");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: 16px 48%;
  color: var(--theme-color);
}
.search-bar input::-moz-placeholder {
  font-family: var(--body-font);
  color: var(--inactive-color);
  font-size: 15px;
  font-weight: 500;
}
.search-bar input:-ms-input-placeholder {
  font-family: var(--body-font);
  color: var(--inactive-color);
  font-size: 15px;
  font-weight: 500;
}
.search-bar input::placeholder {
  font-family: var(--body-font);
  color: var(--inactive-color);
  font-size: 15px;
  font-weight: 500;
}

/* Style for the search results dropdown */
#searchDropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    background-color: #cdcdcd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 99;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
}
.dropdown-item {
  padding: 10px;
  cursor: pointer;
}
.dropdown-item:hover {
  background-color: #f1f1f1;
}
.header-profile {
  display: flex;
  align-items: center;
  padding: 0 16px 0 40px;
  margin-left: auto;
  flex-shrink: 0;
}
.header-profile svg {
  width: 22px;
  color: #f9fafb;
  flex-shrink: 0;
}

.notification {
  position: relative;
}
.notification-number {
  position: absolute;
  background-color: #3a6df0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  right: -6px;
  top: -6px;
}
.notification + svg {
  margin-left: 22px;
}
@media screen and (max-width: 945px) {
  .notification + svg {
    display: none;
  }
}

.profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid var(--theme-color);
  margin-left: 22px;
}

.wide .header-menu,
.wide .header-profile {
  display: none;
}
.wide .search-bar {
  max-width: 600px;
  margin: auto;
  transition: 0.4s;
  box-shadow: 0 0 0 1px var(--border-color);
  padding-left: 0;
}
.wide .menu-circle {
  margin-right: 0;
}

.wrapper {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.left-side {
  flex-basis: 240px;
  border-right: 1px solid var(--border-color);
  padding: 26px;
  overflow: auto;
  flex-shrink: 0;
}
@media screen and (max-width: 945px) {
  .left-side {
    display: none;
  }
}

.side-wrapper + .side-wrapper {
  margin-top: 20px;
}

.side-title {
  color: var(--inactive-color);
  margin-bottom: 14px;
}

.side-menu {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.side-menu a {
  text-decoration: none;
  color: var(--theme-color);
  display: flex;
  align-items: center;
  font-weight: 400;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  transition: 0.3s;
}
.side-menu a:hover {
  background-color: var(--hover-menu-bg);
}
.side-menu svg {
  width: 16px;
  margin-right: 8px;
}

.updates {
  position: relative;
  top: 0;
  right: 0;
  margin-left: auto;
  width: 18px;
  height: 18px;
  font-size: 11px;
}

.main-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  height: 58px;
  flex-shrink: 0;
}
.main-header .header-menu {
  margin-left: 150px;
  background: rgba(146, 151, 179, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
@media screen and (max-width: 1055px) {
  .main-header .header-menu {
    margin: auto;
  }
}
.main-header .header-menu a {
  padding: 8px 18px;
  border-radius: 9px;
  border-bottom: none;
  font-size: 13px;
  font-weight: 500;
}
.main-header .header-menu a.is-active {
  background: var(--popup-bg);
  color: var(--theme-color);
  border-bottom: none;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
.main-header .header-menu a:hover:not(.is-active) {
  border-bottom: none;
  background: rgba(146, 151, 179, 0.1);
}
.light-mode .main-header .header-menu {
  background: rgba(0, 0, 0, 0.05);
}
.light-mode .main-header .header-menu a.is-active {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.main-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-link-main {
  text-decoration: none;
  color: var(--theme-color);
  padding: 0 30px;
}
@media screen and (max-width: 1055px) {
  .menu-link-main {
    display: none;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  color: var(--theme-color);
  padding: 15px 40px;
  height: 100%;
  overflow: auto;
  background-color: var(--theme-bg-color);
}
@media screen and (max-width: 510px) {
  .content-wrapper {
    padding: 20px;
  }
}
.content-wrapper-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  background: linear-gradient(135deg, rgba(58, 109, 240, 0.18) 0%, rgba(20, 22, 43, 0.65) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(58, 109, 240, 0.22);
  border-radius: 18px;
  padding: 18px 24px;
}
@media screen and (max-width: 510px) {
  .content-wrapper-header {
    padding: 10px;
  }
}
.content-wrapper.overlay {
  pointer-events: none;
  transition: 0.3s;
  background-color: var(--overlay-bg);
}

.overlay-app {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: all;
  background-color: rgba(36, 39, 59, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.overlay-app.is-active {
  visibility: visible;
  opacity: 1;
}

.img-content {
  font-weight: 500;
  font-size: 17px;
  display: flex;
  align-items: center;
  margin: 0;
}
.img-content svg {
  width: 28px;
  margin-right: 14px;
}

.team-location {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.team-location-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.team-location-divider {
  width: 1px;
  height: 20px;
  background: rgba(113, 119, 144, 0.25);
  flex-shrink: 0;
}
.team-location-text {
  font-size: 12px;
  color: var(--inactive-color);
  letter-spacing: 0.3px;
}

  .pgstat {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    text-align: center;
    vertical-align: middle;
  }

/* --- Player hero card layout --- */
.player-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.player-number-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2.5px solid rgba(58, 109, 240, 0.55);
  background: rgba(58, 109, 240, 0.1);
  box-shadow: 0 0 16px rgba(58, 109, 240, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.player-number {
  font-family: 'Anton', sans-serif;
  font-size: 46px;
  color: #3a6df0;
  line-height: 1;
}
.player-name-block {
  flex-shrink: 0;
}
.player-firstname {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--inactive-color);
}
.player-lastname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  color: #fff;
  line-height: 1.05;
  letter-spacing: 0.5px;
}
.light-mode .player-lastname {
  color: var(--theme-color);
}
.player-team-line {
  font-size: 12px;
  color: var(--inactive-color);
  margin-top: 2px;
}
.player-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.player-bats-throws {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
}
.player-bt-sep {
  font-size: 22px;
  font-weight: 300;
  color: var(--inactive-color);
  line-height: 1;
  margin-bottom: 12px;
}
.player-stat-row {
  display: flex;
  gap: 28px;
  padding-left: 112px;
  border-top: 1px solid rgba(146, 151, 179, 0.15);
  padding-top: 12px;
}
.player-stat-chip {
  text-align: center;
}
.player-stat-val {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.light-mode .player-stat-val {
  color: var(--theme-color);
}
.player-stat-val--sm {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.player-stat-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--inactive-color);
  margin-top: 2px;
}

.content-button {
  background-color: #3a6df0;
  border: none;
  padding: 8px 26px;
  color: #fff;
  border-radius: 20px;
  margin-top: 16px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.content-wrapper-img {
  width: 150px;
  -o-object-fit: cover;
     object-fit: cover;
  margin-top: 5px;
  -o-object-position: bottom;
     object-position: bottom;
  border-radius: 20px;
  border: 5px solid #333333;
}
@media screen and (max-width: 700px) {
  .content-wrapper-img {
    width: 100px;
  }
}

.content-section {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
}
.content-section-title {
  color: var(--content-title-color);
  margin-bottom: 8px;
}
.content-section ul {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  justify-content: space-around;
  background-color: var(--content-bg);
  padding-left: 0;
  margin: 0;
  border-radius: 18px;
  border: 1px solid var(--theme-bg-color);
  cursor: pointer;
}
.content-section ul li {
  list-style: none;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  font-size: 16px;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  transition: 0.3s;
}
.content-section ul li:hover {
  background-color: var(--theme-bg-color);
}
.content-section ul li:hover:first-child {
  border-radius: 13px 13px 0 0;
}
.content-section ul li:hover:last-child {
  border-radius: 0 0 13px 13px;
}
.content-section ul li + li {
  border-top: 1px solid var(--border-color);
}
.content-section ul svg {
  width: 28px;
  border-radius: 6px;
  margin-right: 16px;
  flex-shrink: 0;
}

.products {
  display: flex;
  align-items: center;
  width: 100%;
}
.products table td {
  text-align: center;
}
@media screen and (max-width: 480px) {
  .products {
    width: 120px;
  }
}

.history {
    display: block;
    width: 100%;
    font-size: 18px;
    text-align: center;
    margin-bottom: 16px;
  }

.status {
  margin-left: auto;
  width: 140px;
  font-size: 15px;
  position: relative;
}
@media screen and (max-width: 700px) {
  .status {
    display: none;
  }
}
.status-circle {
  width: 6px;
  height: 6px;
  background-color: #396df0;
  position: absolute;
  border-radius: 50%;
  top: 4px;
  left: -20px;
}
.status-circle.green {
  background-color: #3bf083;
}
.status-button {
  font-size: 15px;
  margin-top: 0;
  padding: 6px 24px;
}
@media screen and (max-width: 390px) {
  .status-button {
    padding: 6px 14px;
  }
}
.status-button.open {
  background: none;
  color: var(--button-inactive);
  border: 1px solid var(--button-inactive);
}
.status-button:not(.open):hover {
  color: #fff;
  border-color: #fff;
}

.content-button:not(.open):hover {
  background: #1e59f1;
}

.menu {
  width: 5px;
  height: 5px;
  background-color: var(--button-inactive);
  border-radius: 50%;
  box-shadow: 7px 0 0 0 var(--button-inactive), 14px 0 0 0 var(--button-inactive);
  margin: 0 12px;
}

@media screen and (max-width: 415px) {
  .adobe-product .menu {
    display: none;
  }
}
.dropdown {
  position: relative;
  height: 53px;
  width: 40px;
  top: -24px;
  display: flex;
  left: -5px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.dropdown ul {
  position: absolute;
  background: var(--dropdown-bg);
  height: 110px;
  width: 120px;
  right: 0;
  top: 20px;
  pointer-events: none;
  opacity: 0;
  transform: translatey(10px);
  transition: all 0.4s ease;
}
.dropdown ul li a {
  text-decoration: none;
  color: var(--theme-color);
  font-size: 12px;
}

.dropdown.is-active ul {
  opacity: 1;
  pointer-events: all;
  transform: translatey(25px);
}
.dropdown.is-active ul li:hover {
  background-color: var(--dropdown-hover);
}

.button-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 187px;
  margin-left: auto;
}
@media screen and (max-width: 480px) {
  .button-wrapper {
    width: auto;
  }
}

.pop-up {
  position: absolute;
  padding: 30px 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow-y: auto;
  box-shadow: 0px 6px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
  z-index: 10;
  background-color: var(--popup-bg);
  width: 500px;
  visibility: hidden;
  opacity: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  white-space: normal;
}
@media screen and (max-width: 570px) {
  .pop-up {
    width: 100%;
  }
}
.pop-up.visible {
  visibility: visible;
  opacity: 1;
}
.pop-up__title {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pop-up__subtitle {
  white-space: normal;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8em;
}
.pop-up__subtitle a {
  color: var(--theme-color);
}

.content-button-wrapper .content-button.status-button.open.close {
  width: auto;
}

.content-section .close {
  margin-right: 0;
  width: 24px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
}
.checkbox-wrapper + .checkbox-wrapper {
  margin: 20px 0 40px;
}

.checkbox {
  display: none;
}

.checkbox + label {
  display: flex;
  align-items: center;
}
.checkbox + label:before {
  content: "";
  margin-right: 10px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--theme-color);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox:checked + label:before {
  background-color: #3a6df0;
  border-color: #3a6df0;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check'%3e%3cpath d='M20 6L9 17l-5-5'/%3e%3c/svg%3e");
  background-position: 50%;
  background-size: 12px;
  background-repeat: no-repeat;
}

.content-button-wrapper {
  margin-top: auto;
  margin-left: auto;
}
.content-button-wrapper .open {
  margin-right: 8px;
}

.apps-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: calc(100% + 20px);
}

.app-card {
  display: flex;
  flex-direction: column;
  width: calc(33.3% - 20px);
  font-size: 16px;
  background-color: var(--content-bg);
  border-radius: 18px;
  border: 1px solid var(--theme-bg-color);
  padding: 20px;
  cursor: pointer;
  transition: 0.3s ease;
}
.app-card:hover {
  transform: scale(1.02);
  background-color: var(--theme-bg-color);
}
.light-mode .app-card {
  background-color: rgba(0, 0, 0, 0.05);
}
.app-card svg {
  width: 28px;
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
}
.app-card + .app-card {
  margin-left: 20px;
}
.app-card span {
  display: flex;
  align-items: center;
}
.app-card__subtext {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6em;
  margin-top: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.app-card-buttons {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-top: 16px;
}
@media screen and (max-width: 1110px) {
  .app-card {
    width: calc(50% - 20px);
  }
  .app-card:last-child {
    margin-top: 20px;
    margin-left: 0px;
  }
}
@media screen and (max-width: 565px) {
  .app-card {
    width: calc(100% - 20px);
    margin-top: 20px;
  }
  .app-card + .app-card {
    margin-left: 0;
  }
}

::-webkit-scrollbar {
  width: 6px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-bg);
  border-radius: 10px;
}

/* app-logo hidden by default; mobile override below sets display: block */
.app-logo {
  display: none;
}

/* ============================================================
   MOBILE OVERRIDES — max-width: 944px
   Desktop layout (≥ 945px) is completely unchanged.
   ============================================================ */

/* --- Dark/light toggle: move from left side to top-right on mobile --- */
@media screen and (max-width: 944px) {
  .dark-light {
    left: auto;
    right: 12px;
    top: 12px;
  }
}

/* --- Body / App container: allow natural scroll on mobile --- */
@media screen and (max-width: 944px) {
  body {
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    padding: 0;
  }

  .app {
    max-height: none;
    border-radius: 0;
    height: auto;
    min-height: 100vh;
  }

  /* Extra bottom padding clears the fixed bottom nav bar (56px) added in later tasks */
  .content-wrapper {
    padding: 12px 16px calc(72px + env(safe-area-inset-bottom));
  }
}

/* --- Header: hide decorative circles and division/team selects on mobile --- */
@media screen and (max-width: 944px) {
  .menu-circle {
    display: none;
  }

  /* Hide the select form in the top header — it moves to the roster sheet in Task 5 */
  .header > .header-menu {
    display: none;
  }

  /* App logo: visible on mobile only (markup added in Task 3) */
  .app-logo {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-color);
    white-space: nowrap;
    margin-right: 10px;
    flex-shrink: 0;
  }

  /* Search bar takes remaining header width */
  .search-bar {
    max-width: none;
    padding-left: 0;
  }
}

/* --- Player hero card: mobile --- */
@media screen and (max-width: 944px) {
  .content-wrapper-header {
    padding: 14px 16px;
    gap: 12px;
  }
  .player-identity {
    gap: 12px;
  }
  .player-number-circle {
    width: 72px;
    height: 72px;
  }
  .player-number {
    font-size: 34px;
  }
  .player-lastname {
    font-size: 28px;
  }
  .player-stat-row {
    padding-left: 84px;
    gap: 16px;
  }
  .player-stat-val {
    font-size: 17px;
  }
}

/* Stat table panel — glass treatment */
.products {
  background: var(--content-bg);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  width: 100%;
}

.products table th {
  background: var(--popup-bg);
  color: var(--inactive-color);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-color);
}

.products table td {
  padding: 7px 10px;
  font-size: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--theme-color);
}

.products table tr:last-child td {
  border-bottom: none;
}

.products table td:first-child,
.products table th:first-child {
  color: #3a6df0;
}

.products table tbody tr:hover td {
  background: var(--hover-menu-bg);
}
.products table tbody tr:hover td:first-child {
  background: var(--popup-bg);
}

/* --- Stat sub-tabs: horizontal scroll, no wrapping --- */
@media screen and (max-width: 944px) {
  .main-header .header-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    margin-left: 0;
    border-radius: 10px;
    padding: 3px;
  }

  .main-header .header-menu::-webkit-scrollbar {
    display: none;
  }

  .main-header .header-menu a {
    padding: 7px 14px;
    flex-shrink: 0;
    font-size: 12px;
  }

  .menu-link-main {
    display: none;
  }
}

/* --- App cards: stack full-width on mobile --- */
@media screen and (max-width: 944px) {
  .apps-card {
    flex-direction: column;
    width: 100%;
  }

  .app-card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 8px;
  }
}

/* --- Stat tables: horizontal scroll with sticky Year column --- */
@media screen and (max-width: 944px) {
  .products {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .products table {
    white-space: nowrap;
    min-width: max-content;
  }

  /* Sticky Year column — background must match the row background */
  .products table td:first-child,
  .products table th:first-child {
    position: sticky;
    left: 0;
    background: var(--popup-bg);
    z-index: 1;
  }

  /* Swipe hint injected via CSS — no HTML change needed */
  .products::after {
    content: "← swipe for more →";
    display: block;
    font-size: 11px;
    color: var(--inactive-color);
    opacity: 0.45;
    text-align: center;
    padding: 3px 0 2px;
  }
}

/* ============================================================
   BOTTOM NAV BAR
   ============================================================ */

/* Hidden on desktop */
.bottom-nav {
  display: none;
}

@media screen and (max-width: 944px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--header-blur-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    align-items: stretch;
  }

  .bottom-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--inactive-color);
    font-family: var(--body-font);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
  }

  .bottom-nav-tab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .bottom-nav-tab.is-active {
    color: #3a6df0;
  }

  .bottom-nav-tab:hover {
    color: var(--theme-color);
  }
}

/* ============================================================
   ROSTER SHEET OVERLAY
   ============================================================ */

.sheet-overlay {
  display: none;
}

@media screen and (max-width: 944px) {
  .sheet-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(36, 39, 59, 0.75);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .sheet-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   ROSTER SHEET
   ============================================================ */

.roster-sheet {
  display: none;
}

@media screen and (max-width: 944px) {
  .roster-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: calc(56px + env(safe-area-inset-bottom)); /* sits directly above the bottom nav */
    left: 0;
    right: 0;
    max-height: 75vh;
    background: var(--popup-bg);
    border-radius: 18px 18px 0 0;
    border-top: 1px solid var(--border-color);
    z-index: 201;
    transform: translateY(calc(100% + 56px + env(safe-area-inset-bottom)));
    transition: transform 0.3s ease;
  }

  .roster-sheet.is-open {
    transform: translateY(0);
  }

  /* Drag handle */
  .sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 10px auto 6px;
    flex-shrink: 0;
  }

  /* Sheet header row */
  .sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .sheet-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--theme-color);
  }

  .sheet-close {
    background: none;
    border: none;
    color: var(--inactive-color);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--body-font);
  }

  .sheet-close:hover {
    color: var(--theme-color);
  }

  /* Division + Team selects inside the sheet */
  .sheet-controls {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .sheet-controls select {
    flex: 1;
    width: auto;
    padding: 8px 10px;
    font-size: 13px;
    background: var(--arrow-icon) no-repeat right 0.6em center/1em,
                linear-gradient(to left, var(--arrow-bg) 2.5em, var(--select-bg) 2.5em);
  }

  /* Scrollable player list */
  .sheet-player-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 6px 8px 8px;
  }

  /* Player link rows inside the sheet */
  .sheet-player-list a {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    text-decoration: none;
    color: var(--theme-color);
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .sheet-player-list a:hover,
  .sheet-player-list a:active {
    background: var(--hover-menu-bg);
  }
}

/* ============================================================
   SCOUT CARD GRID — PG Scouting + PBR sections
   ============================================================ */

.scout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

/* Grade — full-width orange accent card */
.scout-card-grade {
  grid-column: 1 / -1;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.light-mode .scout-card-grade {
  background: rgba(249, 115, 22, 0.07);
  border-color: rgba(249, 115, 22, 0.25);
}

.grade-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-orange);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.grade-decimal {
  font-size: 30px;
  letter-spacing: -0.5px;
}
.grade-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--theme-color);
}
.grade-sub {
  font-size: 9px;
  margin-top: 3px;
  color: var(--inactive-color);
}

/* Regular scout stat card */
.scout-card {
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  background: var(--content-bg);
  border: 1px solid var(--border-color);
}
.scout-val {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: var(--theme-color);
}
.scout-hl .scout-val {
  color: #3a6df0;
}
.scout-lbl {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--inactive-color);
}

/* ============================================================
   LARGE-SCREEN OVERRIDES — min-width: 1920px
   Scales the app card, fonts, and player hero card
   proportionally for displays ≥ 1920px wide.
   All rules below 1920px are completely unchanged.
   ============================================================ */

@media screen and (min-width: 1920px) {
  body {
    padding: 1em;
  }

  .app {
    max-width: 90vw;
    height: 95vh;
    max-height: 95vh;
    font-size: 17px;
  }

  .left-side {
    flex-basis: 300px;
  }

  .content-wrapper {
    padding: 20px 52px;
  }

  .player-number-circle {
    width: 120px;
    height: 120px;
  }

  .player-number {
    font-size: 58px;
  }

  .player-lastname {
    font-size: 48px;
  }

  .player-firstname {
    font-size: 14px;
  }

  .player-team-line {
    font-size: 14px;
  }

  .player-stat-val {
    font-size: 28px;
  }

  .player-stat-lbl {
    font-size: 11px;
  }

  .player-stat-row {
    gap: 36px;
    padding-left: 140px;
  }

  .products table th {
    font-size: 13px;
  }

  .products table td {
    font-size: 14px;
    padding: 10px 14px;
  }
}
