/* ==========================================
   CSS Custom Properties (Variables)
   ========================================== */
:root {
  /* Background Colors */
  --bg-card: #2a3038;
  --bg-header: #1a1e24;
  --bg-hover: #323942;
  --bg-elevated: #353d47;
  --bg-subtle: #3a4048;

  /* Border Colors */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.2);
  --border-strong: rgba(255, 255, 255, 0.3);

  /* Text Colors */
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.6);

  /* Brand Colors */
  --primary-blue: #0D47A1;
  --primary-blue-light: #1565C0;
  --success-green: #00C853;
  --success-green-light: #00E676;
  --success-green-lighter: #69F0AE;
  --warning-yellow: #FFB300;
  --warning-yellow-light: #FFC107;
  --danger-red: #FF5252;
  --info-cyan: #00ACC1;

  /* Overlay Colors */
  --overlay-light: rgba(0, 0, 0, 0.2);
  --overlay-medium: rgba(0, 0, 0, 0.3);

  /* Gradients */
  --gradient-card: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-card) 100%);
  --gradient-success: linear-gradient(135deg, var(--success-green), var(--success-green-light));
  --gradient-success-hover: linear-gradient(135deg, var(--success-green-light), var(--success-green-lighter));
  --gradient-warning: linear-gradient(135deg, var(--warning-yellow), var(--warning-yellow-light));
  --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  --gradient-section-header: linear-gradient(90deg, rgba(13,71,161,0.3) 0%, transparent 100%);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;

  /* Athlete Modal Colors */
  --athlete-modal-bg: #1e2530;
  --athlete-modal-bg-light: #252d3a;
  --athlete-modal-bg-lighter: #2d3748;
  --athlete-accent-green: #10b981;
  --athlete-accent-green-light: #34d399;
  --athlete-accent-blue: #3b82f6;
  --athlete-accent-blue-light: #60a5fa;
  --athlete-accent-teal: #14b8a6;
  --athlete-text-primary: #f1f5f9;
  --athlete-text-secondary: #94a3b8;
  --athlete-text-muted: #64748b;
  --athlete-border-color: #374151;
  --athlete-border-light: #4b5563;
  --athlete-danger: #ef4444;
  --athlete-warning: #f59e0b;
}

[data-letters]:before {
  content:attr(data-letters);
  display:inline-block;
  font-size:1em;
  width:2em;
  height:2em;
  line-height:2em;
  text-align:center;
  border-radius:50%;
  background:teal;
  vertical-align:middle;
  margin-right:1em;
  color:white;
  }

  [data-letters-medium]:before {
    content:attr(data-letters-medium);
    display:inline-block;
    font-size:1.5em;
    width:2.8em;
    height:2.8em;
    line-height:2.8em;
    text-align:center;
    border-radius:50%;
    background:teal;
    vertical-align:middle;
    color:white;
  }

  .red-transparent {
    background-color: rgba(255,52,76,0.1)
  }

  a:hover,
  a:focus {
      text-decoration: none;
      outline: none;
  }
  .tab .nav-tabs {
      border: none;
  }
  .tab .nav-tabs li a {
      background: none;
      padding: 12px 20px 14px;
      margin: 0;
      border: none;
      border-radius: 0;
      overflow: hidden;
      z-index: 1;
      transition: all 0.3s ease 0.3s;
      font-size: 14px;
      font-weight: normal;
  }
  .tab .nav-tabs li a.active,
  .tab .nav-tabs li a:hover,
  .tab .nav-tabs li a.active a:hover {
      color: #0D47A1;
      background: none;
      border-bottom: 2px solid #0D47A1;
      font-size: 14px;
      font-weight: normal;
  }
  .tab .nav-tabs li a:after {
      background-color: #0D47A1;
      top: auto;
      bottom: -4px;
      height: 4px;
      clip-path: none;
  }

  .tab .nav-tabs li a i.nav-icon {
    font-size: 22px;
    line-height: 1;
    margin-right: 1rem;
    color: inherit;
  }

  .tab .nav-tabs li.active a:before,
  .tab .nav-tabs li a:hover:before {
      top: 0;
  }
  .tab .nav-tabs li a.active a:after,
  .tab .nav-tabs li a:hover:after {
      bottom: 0;
  }
  .tab .tab-content {
      border: none;
  }

  .nav-header {
    margin-left: max(30px);
  }

  .tab-content .tab-content {
    padding: 1.5rem 0 0 0;
  }

  .raised-img-lg {
    max-width: 800px;
    filter: drop-shadow(0 0 1rem black);
  }
  @media only screen and (max-width: 479px) {
      .tab .nav-tabs {
          margin: 0 0 10px;
      }
      .tab .nav-tabs li {
          width: 100%;
          text-align: center;
      }
      #transactions-tabs-id.nav-tabs li {
          width: auto;
          text-align: left;
      }
      .content-wrapper {
        padding: 0;
      }
      .tab-content {
        padding: 0;
      }
      #league-home-card-body {
        padding: 0;
      }
      #league-settings-card-body {
        padding: 0;
      }
      #my-team-card-body {
        padding: 0;
      }
      #matchups-card-body {
        padding: 0;
      }
  }

  /* Carousel responsive design */
  /* Mobile - 1 column */
  .carousel-inner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-item {
    margin-right: 0;
    flex: 0 0 100%;
    display: block;
    scroll-snap-align: start;
  }

  .carousel-item.team-column {
    margin-right: 0;
    flex: 0 0 50%;
    display: block;
    scroll-snap-align: start;
  }

  /* Desktop - 3 columns for draft, 5 columns for depth chart */
  @media (min-width: 768px) {
    .carousel-inner {
      display: flex;
    }
    #rounds-carousel-id .carousel-item {
      margin-right: 0;
      flex: 0 0 33.333333%;
      max-width: 33.333333%;
      display: block;
      overflow: hidden;
    }
    #depth-chart-carousel-id .carousel-item.team-column {
      margin-right: 0;
      flex: 0 0 20%;
      display: block;
    }
  }

  .no-gutter {
    margin-right: 0;
    margin-left: 0;
  }
  
  .no-gutter > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
  }
  .nopadding {
    padding: 0 !important;
    margin: 0 !important;
 }

 .draft-view-highlight
 {
  background-color: #0D47A1;
 }

 .sticky-col-right {
  position: sticky;
  right: 0;
  z-index: 1;
  background-color: #252730 !important;
  /* Nullify Bootstrap's inset stripe overlay and add a left separator shadow */
  box-shadow: inset 0 0 0 9999px transparent, -3px 0 6px rgba(0, 0, 0, 0.4) !important;
 }

 thead .sticky-col-right {
  background-color: transparent !important;
  box-shadow: none !important;
 }

 .table-striped > tbody > tr:nth-of-type(odd) > .sticky-col-right {
  background-color: #1F2127 !important;
 }

 .draft-view-highlight .sticky-col-right {
  background-color: #0D47A1 !important;
 }

 .my-pick-card {
  outline: 2px solid #0D47A1;
  outline-offset: -2px;
 }

 /* Draft controls card highlight */
 .draft-controls-highlight {
  border: 2px solid #0D47A1;
  box-shadow: 0 0 20px rgba(13, 71, 161, 0.5);
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.1) 0%, transparent 100%);
  transition: all 0.3s ease;
 }

 .athlete-danger
 {
  background-color: #B71C1C;
  height:1.2em;
 }

 .athlete-success
 {
  background-color: #008b00;
  height:1.2em;
 }

 .athlete-warning
 {
  background-color: #FFAB00;
  height:1.2em;
 }

 /* Modern athlete card styling */
 .athlete-container {
  position: relative;
  display: flex;
  align-items: center;
 }

 .athlete-avatar-wrapper {
  position: relative;
  display: inline-block;
 }

 .athlete-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
 }

 .athlete-rating-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: var(--radius-lg);
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  min-width: 32px;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px var(--overlay-medium);
 }

.avatar-wrapper {
  position: relative;
  display: inline-block;
 }

 /* Consistent card heights for draft rounds */
 .draft-round-card {
  min-height: 80px;
  display: flex;
  align-items: center;
 }

 .draft-round-card .card-body {
  width: 100%;
  overflow: hidden;
 }

 .draft-round-card .hstack > [class*="col-"] {
  min-width: 0;
 }

 .draft-tab-border-right
 {
  border-right: 1.5px solid #616161;
  min-height: 80px;
  display: flex;
  align-items: center;
 }

 .round-0
 {
  border-radius: 0%;
 }
 /* for styling the update user form */

 #updateUserForm .form-control:disabled {
    background-color: unset;
    opacity: .25;
 }


.app-search-form {
  position: relative;
  margin-right: 0;
}

.rtl .app-search-form {
  margin-right: 0;
  margin-left: 0;
}

.app-search-form i {
  font-size: 1.125rem;
  position: absolute;
  left: 0;
  top: 60%;
  transform: translateY(-50%);
  color: #808191;
}

.rtl .app-search-form i {
  left: auto;
  right: 0;
}

 .app-search-form input {
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 0;
  height: 35px;
  padding: 0 0 0 20px;
  position: relative;
  transition: width 400ms ease, background 400ms ease;
  background: transparent;
}

 .app-search-form input:focus {
  background-color: transparent;
  border-bottom: 1px solid #808191;
  border-radius: 0;
  padding-left: 30px;
  cursor: text;
  outline: 0;
  width: inherit;
}

.rtl .app-search-form input:focus {
  padding-right: 30px;
  padding-left: 0;
}

.circular-bg-color-60 {
  background-color: #21292c;
  border-radius: 50%;
}

.bootstrap-datetimepicker-widget td, .bootstrap-datetimepicker-widget th {
  color: whitesmoke;
}

input[type=number].mod::-webkit-inner-spin-button, 
input[type=number].mod::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button !important;
   opacity: 1;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.3); 
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 12px rgba(0,0,0,0.5);
}

.with-right-border {
  border-right: 2px solid #1b1b1b;
}

/* Page content section full width/height override */
#page-content-section {
  padding-top: 40px !important;
  padding-left: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* for styling Settings pages */

#general-settings-tabs-id .nav-item,
#roster-settings-tabs-id .nav-item,
#scoring-settings-tabs-id .nav-item,
#timeline-settings-tabs-id .nav-item {
  width: auto !important;
}

.settings-content .card-body {
  padding: 0;
}

.settings-content .card {
  background-color: transparent;
}

/* for styling the matchup view */

.matchup-position-label {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(50%);
}

/* for styling player stats tab */

#stat-type-tabs-id .nav-item {
  width: auto !important;
}

/* =====================================================
   MATCHUP PAGE STYLES
   ===================================================== */

/* Matchup Header */
.matchups-header {
  padding-bottom: 0.75rem;
  margin-top: 0.75rem;
}

/* Carousel Container with Side Arrows */
.matchup-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Carousel Navigation Buttons */
.matchup-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--border-subtle);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.matchup-nav-btn:hover {
  background: var(--border-medium);
  color: #fff;
}

.matchup-nav-prev {
  margin-right: 8px;
}

.matchup-nav-next {
  margin-left: 8px;
}

/* Carousel Wrapper */
.matchup-carousel-wrapper {
  overflow: hidden;
  flex: 1;
}

.matchup-carousel-inner {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.matchup-carousel-inner::-webkit-scrollbar {
  display: none;
}

/* Matchup cards container - shows all cards that fit */
.matchup-cards-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 8px;
}

.matchup-cards-container::-webkit-scrollbar {
  display: none;
}

/* Matchup Cards in Carousel */
.matchup-card {
  min-width: 160px;
  max-width: 200px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.matchup-card:hover,
.matchup-card.bg-dark {
  background: #0D47A1;
  border-color: var(--primary-blue);
}

.matchup-card .team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.matchup-card .team-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.matchup-card .team-score {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

/* Scoreboard Header */
.matchup-scoreboard {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  padding: 12px;
}

@media (min-width: 576px) {
  .matchup-scoreboard {
    padding: 16px 20px;
  }
}

/* Team Header Section */
.team-header {
  display: flex;
  flex-direction: column;
}

.team-header-left {
  align-items: flex-start;
}

.team-header-right {
  align-items: flex-end;
}

.team-info-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.team-header-left .team-info-row {
  flex-direction: row;
}

.team-header-right .team-info-row {
  flex-direction: row-reverse;
}

@media (max-width: 575px) {
  .team-info-row {
    flex-wrap: wrap;
    align-items: center;
  }
  .team-info-row .team-avatar {
    order: 1;
  }
  .team-info-row .score-container {
    order: 2;
  }
  .team-info-row .team-details {
    order: 3;
    width: 100%;
    flex: none;
    margin-top: 5px;
  }
  .team-header-left .team-info-row .team-details {
    margin-left: 0;
    align-items: flex-start;
  }
  .team-header-right .team-info-row .team-details {
    margin-right: 0;
    align-items: flex-end;
  }
}

.team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .team-avatar {
    width: 56px;
    height: 56px;
  }
}

.team-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.team-header-left .team-details {
  margin-left: 8px;
  align-items: flex-start;
}

.team-header-right .team-details {
  margin-right: 8px;
  align-items: flex-end;
}

@media (min-width: 576px) {
  .team-header-left .team-details {
    margin-left: 12px;
  }
  .team-header-right .team-details {
    margin-right: 12px;
  }
}

.team-name-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 576px) {
  .team-name-header {
    font-size: 1.1rem;
  }
}

.team-record {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

@media (min-width: 576px) {
  .team-record {
    font-size: 0.8rem;
  }
}

.team-owner {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  display: none;
}

@media (min-width: 576px) {
  .team-owner {
    display: block;
  }
}

/* Score Display */
.score-container {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.team-header-left .score-container {
  align-items: flex-end;
  margin-left: 8px;
}

.team-header-right .score-container {
  align-items: flex-start;
  margin-right: 8px;
}

.team-score-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0;
}

@media (min-width: 576px) {
  .team-score-main {
    font-size: 2rem;
  }
}

.team-score-projected {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  display: none;
}

@media (min-width: 576px) {
  .team-score-projected {
    display: block;
    font-size: 0.75rem;
  }
}

/* Team Stats Footer */
.team-stats-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
  padding-top: 6px;
  display: none;
}

@media (min-width: 576px) {
  .team-stats-footer {
    display: flex;
  }
}

.team-stats-footer p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* VS Divider */
.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.vs-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

@media (min-width: 576px) {
  .vs-text {
    font-size: 1rem;
  }
}

/* Section Headers */
.matchup-section-header {
  background: var(--gradient-section-header);
  padding: 8px 12px;
  margin: 0;
  border-left: 3px solid var(--primary-blue);
}

.matchup-section-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

@media (min-width: 576px) {
  .matchup-section-header h4 {
    font-size: 1rem;
  }
}

/* Matchup Player Row - Table-like appearance */
.player-matchup-row {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.player-matchup-row:nth-child(odd) {
  background: rgba(31, 33, 39, 0.7);
}

.player-matchup-row:nth-child(even) {
  background: rgba(42, 48, 56, 0.5);
}

/* Matchup Player Card */
.matchup-player-card {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

@media (min-width: 576px) {
  .matchup-player-card {
    padding: 12px 16px;
  }
}


/* Matchup Position Badge - Table style */
.matchup-position-badge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 174, 122, 0.2);
  color: #00ae7a;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 0;
  z-index: 1;
  border: 1px solid rgba(0, 174, 122, 0.3);
}

.matchup-player-card-left .matchup-position-badge {
  right: -16px;
}

.matchup-player-card-right .matchup-position-badge {
  left: -16px;
}

@media (min-width: 576px) {
  .matchup-position-badge {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  .matchup-player-card-left .matchup-position-badge {
    right: -20px;
  }
  .matchup-player-card-right .matchup-position-badge {
    left: -20px;
  }
}

/* Matchup Player Info Row */
.matchup-player-info-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.matchup-player-card-left .matchup-player-info-row {
  flex-direction: row;
}

.matchup-player-card-right .matchup-player-info-row {
  flex-direction: row;
}

.matchup-player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .matchup-player-avatar {
    width: 48px;
    height: 48px;
  }
}

.matchup-player-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.matchup-player-card-left .matchup-player-details {
  margin-left: 6px;
  align-items: flex-start;
}

.matchup-player-card-right .matchup-player-details {
  margin-left: 6px;
  margin-right: 6px;
  align-items: flex-end;
}

@media (min-width: 576px) {
  .matchup-player-card-left .matchup-player-details {
    margin-left: 10px;
  }
  .matchup-player-card-right .matchup-player-details {
    margin-left: 10px;
    margin-right: 10px;
  }
}

.matchup-player-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 576px) {
  .matchup-player-name {
    font-size: 0.95rem;
  }
}

.matchup-player-meta {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

@media (min-width: 576px) {
  .matchup-player-meta {
    font-size: 0.75rem;
  }
}

.matchup-player-game-info {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  display: none;
}

@media (min-width: 576px) {
  .matchup-player-game-info {
    display: block;
    font-size: 0.7rem;
  }
}

/* Matchup Player Score */
.matchup-player-score-container {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.matchup-player-card-left .matchup-player-score-container {
  align-items: flex-end;
  margin-left: 4px;
  margin-right: 20px;
}

.matchup-player-card-right .matchup-player-score-container {
  align-items: flex-start;
  margin-left: 20px;
  margin-right: 4px;
}

@media (min-width: 576px) {
  .matchup-player-card-left .matchup-player-score-container {
    margin-right: 24px;
  }
  .matchup-player-card-right .matchup-player-score-container {
    margin-left: 24px;
  }
}

.matchup-player-points {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

@media (min-width: 576px) {
  .matchup-player-points {
    font-size: 1.25rem;
  }
}

/* Clickable Points Styling */
.athlete-points-clickable {
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.athlete-points-clickable:hover {
  background: var(--border-subtle);
  transform: scale(1.05);
}

.matchup-player-projected {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  display: none;
}

@media (min-width: 576px) {
  .matchup-player-projected {
    display: block;
    font-size: 0.7rem;
  }
}

/* Matchup Player Stats Row */
.matchup-player-stats-row {
  margin-top: 4px;
  display: none;
}

@media (min-width: 576px) {
  .matchup-player-stats-row {
    display: block;
  }
}

.matchup-player-stats-row p {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  word-break: break-word;
}

.matchup-player-card-left .matchup-player-stats-row {
  text-align: left;
}

.matchup-player-card-right .matchup-player-stats-row {
  text-align: right;
}

/* Matchup Empty Player State */
.matchup-empty-player {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  color: var(--border-strong);
  font-size: 0.75rem;
}

/* Responsive Matchup Carousel */
@media (min-width: 768px) {
  .matchup-carousel-inner .carousel-item {
    flex: 0 0 auto;
    margin-right: 8px;
  }
}

/* Mobile-specific matchup adjustments */
@media (max-width: 575px) {
  .matchup-scoreboard {
    padding: 10px 8px;
  }

  .player-card {
    padding: 6px;
  }

  .position-badge {
    padding: 1px 4px;
    font-size: 0.5rem;
  }

  .player-card-left .position-badge {
    right: -12px;
  }

  .player-card-right .position-badge {
    left: -12px;
  }
}

/* =====================================================
   SCHEDULE MODAL STYLES
   ===================================================== */

.schedule-row {
  border-bottom: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-left-color 0.15s ease, padding-left 0.15s ease;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:hover {
  background: #363d47;
  border-left-color: var(--primary-blue);
  padding-left: 18px;
}

.schedule-row-active {
  background: rgba(13, 71, 161, 0.25);
  border-left-color: var(--primary-blue);
}

.schedule-row-active:hover {
  background: rgba(13, 71, 161, 0.35);
  padding-left: 18px;
}

.schedule-week-label {
  font-size: 0.75rem;
  min-width: 36px;
}

.schedule-team-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.schedule-team-icon-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.schedule-team-name {
  font-size: 0.875rem;
  color: #fff;
}

/* Injury badges - outlined style */
.injury-badge {
  background-color: transparent !important;
  border: 1px solid;
  font-weight: 600;
  margin-inline: 6px !important;
  font-size: 0.6rem !important;
  padding: 1px 4px !important;
}
.injury-badge.bg-danger {
  color: var(--bs-danger) !important;
  border-color: var(--bs-danger) !important;
}
.injury-badge.bg-warning {
  color: var(--bs-warning) !important;
  border-color: var(--bs-warning) !important;
}

/* =====================================================
   DEPTH CHART STICKY COLUMN STYLES
   ===================================================== */

/* Create stacking context for depth chart tables */
.depth-chart-table {
  isolation: isolate;
}


/* Ensure striped rows inherit the full row background */
.depth-chart-table.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile specific - player column sizing and table structure */
@media (max-width: 767px) {
  .depth-chart-table tbody td:first-child {
    white-space: nowrap;
  }

  .depth-chart-table {
    min-width: 600px;
    width: auto;
  }
}

/* =====================================================
   RESPONSIVE TEAM ROSTER STYLES
   ===================================================== */

/* Team Header Section */
.league-team-header {
  background: transparent;
  margin-bottom: 1rem;
}

.roster-team-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}


.roster-dropdown-btn {
  background: var(--border-subtle);
  border: 1px solid var(--border-medium);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roster-dropdown-btn:hover {
  background: var(--border-medium);
  border-color: var(--border-strong);
}

/* Stats Cards Grid */
.roster-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.roster-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
}

.roster-stat-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

.roster-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roster-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.roster-stat-subtext {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* Draft Picks Card */
.roster-draft-picks {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.roster-draft-picks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.roster-draft-picks-title {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roster-draft-picks-trade-btn {
  background: rgba(13, 71, 161, 0.6);
  border: none;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roster-draft-picks-trade-btn:hover {
  background: rgba(13, 71, 161, 0.8);
}

.roster-draft-picks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roster-draft-picks-year {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.roster-draft-picks-year:last-child {
  border-bottom: none;
}

.roster-draft-picks-year-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.roster-draft-picks-rounds {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Position Filters */
.roster-position-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}


.roster-position-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.roster-position-filter-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
  color: #fff;
}

.roster-position-filter-btn.active {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: #fff;
}

/* Player List */
.roster-player-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roster-player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.roster-player-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

.roster-player-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.roster-player-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.roster-player-info {
  flex: 1;
  min-width: 0;
}

.roster-player-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-player-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.roster-player-position-badge {
  background: linear-gradient(135deg, #00ae7a 0%, #008b62 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.roster-player-status-badge {
  background: rgba(255,171,0,0.2);
  color: #FFAB00;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}

.roster-player-status-badge.ps-protected {
  background: rgba(0,200,83,0.2);
  color: #00C853;
}

/* Player Stats Row */
.roster-player-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.roster-player-stat {
  text-align: center;
}

.roster-player-stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roster-player-stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Player Actions */
.roster-player-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 0.75rem;
}

.roster-action-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.roster-action-btn-cut {
  background: rgba(183,28,28,0.2);
  color: var(--danger-red);
}

.roster-action-btn-cut:hover {
  background: rgba(183,28,28,0.3);
}

.roster-action-btn-trade {
  background: rgba(13,71,161,0.2);
  color: #448AFF;
}

.roster-action-btn-trade:hover {
  background: rgba(13,71,161,0.3);
}

.roster-action-btn-more {
  background: var(--border-subtle);
  color: rgba(255,255,255,0.7);
}

.roster-action-btn-more:hover {
  background: rgba(255,255,255,0.15);
}

/* More Actions Modal List */
.more-action-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
}

/* Table View (Desktop) */
.roster-table-view {
  display: none;
}

.roster-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.roster-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.roster-table thead {
  background: var(--bg-header);
}

.roster-table th {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.roster-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.roster-table tbody tr:hover {
  background: var(--bg-hover);
}

/* Position Section Headers */
.roster-position-section {
  margin-bottom: 1.5rem;
}

.roster-position-header {
  background: var(--gradient-section-header);
  border-left: 3px solid var(--primary-blue);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.roster-position-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Responsive Breakpoints */
@media (min-width: 576px) {

  .roster-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .roster-stat-value {
    font-size: 1.75rem;
  }

  .roster-player-avatar {
    width: 64px;
    height: 64px;
  }

  .roster-player-name {
    font-size: 1.05rem;
  }

  .roster-player-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .roster-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .roster-player-stats {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 992px) {

  .roster-position-filters {
    justify-content: center;
  }

  /* Show table view on desktop */
  .roster-table-view {
    display: block;
  }

  .roster-player-list {
    display: none;
  }
}

@media (max-width: 479px) {
  .roster-team-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .roster-dropdown-btn {
    width: 100%;
  }

  .roster-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roster-player-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .roster-player-actions {
    flex-wrap: wrap;
  }

  .roster-action-btn {
    min-width: calc(50% - 0.25rem);
  }
}

/* ========================================
   Playoff Bracket Styles
   ======================================== */

.playoff-bracket-header {
  text-align: center;
  margin-bottom: 2rem;
}

.playoff-bracket-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.playoff-bracket-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 2rem 0.5rem;
  min-height: 400px;
}

.playoff-round {
  flex: 0 0 auto;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.playoff-round-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-subtle);
}

.playoff-round-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.playoff-round-week {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.playoff-round-matchups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.playoff-matchup {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.playoff-matchup-tbd {
  opacity: 0.7;
}

.playoff-matchup-number {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.playoff-matchup-vs {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin: 0.75rem 0;
  letter-spacing: 1px;
}

.playoff-matchup-status {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.playoff-matchup-status-completed {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.playoff-matchup-status-live {
  background: rgba(255, 87, 34, 0.2);
  color: #FF5722;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.playoff-team {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--overlay-light);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  position: relative;
}

.playoff-team:hover {
  background: var(--overlay-medium);
  border-color: var(--border-medium);
}

.playoff-team-user {
  background: rgba(13, 71, 161, 0.15);
  border-color: rgba(13, 71, 161, 0.3);
}

.playoff-team-user:hover {
  background: rgba(13, 71, 161, 0.25);
  border-color: rgba(13, 71, 161, 0.5);
}

.playoff-team-seed {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 2rem;
  text-align: center;
  background: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
}

.playoff-team-user .playoff-team-seed {
  background: rgba(13, 71, 161, 0.6);
}

.playoff-team-info {
  flex: 1;
  min-width: 0;
}

.playoff-team-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playoff-team-record {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.125rem;
}

.playoff-team-score {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  background: var(--border-subtle);
  border-radius: 6px;
  min-width: 4rem;
  text-align: center;
}

.playoff-team-placeholder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  border: 1px dashed var(--border-medium);
  opacity: 0.6;
}

.playoff-team-placeholder .playoff-team-seed {
  background: transparent;
  color: var(--border-strong);
}

.playoff-team-placeholder .playoff-team-name {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.playoff-bye {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.playoff-bye .playoff-team {
  background: rgba(255, 193, 7, 0.05);
  border-color: rgba(255, 193, 7, 0.2);
}

.playoff-bye-badge {
  position: absolute;
  top: -0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #000;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.playoff-champion-round {
  min-width: 220px;
}

.playoff-champion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: var(--radius-lg);
  min-height: 150px;
  justify-content: center;
}

.playoff-trophy-icon {
  font-size: 3rem;
  color: #ffc107;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.playoff-champion-card .playoff-team-name {
  font-size: 1.125rem;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .playoff-bracket-container {
    gap: 1.5rem;
    padding: 1rem 0.25rem 2rem 0.25rem;
  }

  .playoff-round {
    min-width: 240px;
  }

  .playoff-round-title {
    font-size: 1.125rem;
  }

  .playoff-round-matchups {
    gap: 1.5rem;
  }

  .playoff-team-name {
    font-size: 0.875rem;
  }

  .playoff-team-seed {
    font-size: 1.125rem;
    min-width: 1.75rem;
  }

  .playoff-team-score {
    font-size: 1rem;
    min-width: 3rem;
    padding: 0.25rem 0.5rem;
  }

  .playoff-trophy-icon {
    font-size: 2.5rem;
  }

  .playoff-champion-card .playoff-team-name {
    font-size: 1rem;
  }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991px) {
  .playoff-bracket-container {
    gap: 1.75rem;
  }

  .playoff-round {
    min-width: 260px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .playoff-bracket-container {
    gap: 2.5rem;
    padding: 1.5rem 1rem 2rem 1rem;
  }

  .playoff-round {
    min-width: 300px;
  }

  .playoff-round-matchups {
    gap: 2.5rem;
  }

  .playoff-team-name {
    font-size: 1rem;
  }
}

/* ========================================
   Standings Styles
   ======================================== */

.standings-header {
  text-align: center;
  margin-bottom: 2rem;
}

.standings-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.standings-container {
  margin-bottom: 2rem;
}

/* Mobile View - Cards */
.standings-mobile-view {
  display: block;
}

.standings-desktop-view {
  display: none;
}

.standings-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.standings-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
}

.standings-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
}

.standings-card-user {
  background: linear-gradient(135deg, rgba(98, 0, 234, 0.15), rgba(236, 64, 122, 0.15));
  border-color: rgba(98, 0, 234, 0.3);
}

.standings-card-user:hover {
  background: linear-gradient(135deg, rgba(98, 0, 234, 0.2), rgba(236, 64, 122, 0.2));
  border-color: rgba(98, 0, 234, 0.4);
}

.standings-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.standings-card-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  min-width: 2.5rem;
  text-align: center;
}

.standings-card-team {
  flex: 1;
  min-width: 0;
}

.standings-team-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.standings-team-division {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.standings-card-record {
  text-align: right;
}

.standings-record-primary {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

.standings-record-secondary {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.125rem;
}

.standings-card-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.standings-stat {
  text-align: center;
}

.standings-stat-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.standings-stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

/* Rank Badges */
.standings-rank-playoff {
  color: #4CAF50 !important;
}

.standings-rank-wildcard {
  color: #FFC107 !important;
}

.standings-rank-division-leader {
  color: #2196F3 !important;
}

/* Streak Styling */
.standings-streak-positive {
  color: #4CAF50;
  font-weight: 700;
}

/* Desktop View - Table */
@media (min-width: 992px) {
  .standings-mobile-view {
    display: none;
  }

  .standings-desktop-view {
    display: block;
  }

  .standings-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
  }

  .standings-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-collapse: collapse;
  }

  .standings-table thead {
    background: var(--overlay-light);
  }

  .standings-table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-medium);
    white-space: nowrap;
    text-align: left;
  }

  .standings-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .standings-table tbody tr {
    transition: background 0.2s ease;
  }

  .standings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .standings-user-row {
    background: rgba(13, 71, 161, 0.15);
  }

  .standings-user-row:hover {
    background: rgba(13, 71, 161, 0.25);
  }

  .standings-rank-col {
    width: 3rem;
    text-align: center;
  }

  .standings-team-col {
    min-width: 200px;
  }

  .standings-number-col {
    width: 4rem;
    text-align: center;
  }

  .standings-rank {
    font-weight: 700;
    font-size: 1rem;
  }

  .standings-team-cell {
    font-weight: 500;
  }

  .standings-team-info .standings-team-name {
    font-size: 0.9375rem;
  }

  .standings-team-info .standings-team-division {
    font-size: 0.75rem;
    margin-top: 0.125rem;
  }

  .standings-wins {
    font-weight: 700;
    color: #4CAF50;
  }

  .standings-losses {
    font-weight: 700;
    color: var(--danger-red);
  }
}

/* Legend */
.standings-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--overlay-light);
  border-radius: 6px;
  font-size: 0.75rem;
  justify-content: center;
}

.standings-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.standings-legend-badge {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.standings-legend-badge.standings-rank-playoff {
  background: #4CAF50;
}

.standings-legend-badge.standings-rank-wildcard {
  background: #FFC107;
}

/* Division Standings */
.standings-division {
  margin-bottom: 2rem;
}

.standings-division-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-subtle);
}

.standings-division-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .standings-card-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .standings-stat:nth-child(n+4) {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .standings-hide-tablet {
    display: none !important;
  }

  .standings-card-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .standings-hide-mobile {
    display: table-cell !important;
  }

  .standings-hide-tablet {
    display: table-cell !important;
  }
}

@media (max-width: 991px) {
  .standings-hide-mobile {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .standings-hide-tablet {
    display: none !important;
  }
}

/* ========================================
   Player Actions Tab Styles (Redesigned)
   ======================================== */

/* Team Header Card */
.league-team-header .team-header-card {
  background: transparent;
}

.league-team-header .team-info-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.league-team-header .team-avatar-container {
  flex-shrink: 0;
}

.league-team-header .team-avatar,
.league-team-header .team-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  object-fit: cover;
}

.league-team-header .team-details {
  flex: 1;
  min-width: 0;
}

.league-team-header .team-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-team-header .team-owner {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Team Cap Space */
.league-team-header .team-cap-space {
  flex-shrink: 0;
  text-align: right;
  padding: 0.5rem 1rem;
  background: var(--overlay-medium);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  min-width: 120px;
}

.league-team-header .cap-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.league-team-header .cap-value {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.league-team-header .cap-value.cap-positive {
  color: #fff;
}

.league-team-header .cap-value.cap-negative {
  color: var(--danger-red);
}

/* Action Tabs Navigation */
.player-actions-nav .nav-tabs {
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.player-actions-nav .nav-tabs::-webkit-scrollbar {
  display: none;
}

.player-actions-nav .nav-item {
  flex-shrink: 0;
}

.player-actions-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.player-actions-nav .nav-link i {
  font-size: 1.125rem;
}

.player-actions-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.player-actions-nav .nav-link.active {
  color: #448AFF;
  border-bottom-color: #448AFF;
  background: rgba(13, 71, 161, 0.1);
}

.player-actions-nav .badge-count {
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
}

/* Player Cards (Mobile View) */
.player-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Only apply card styling to cards in player-cards-container, not matchup view */
.player-cards-container .player-card {
  background: linear-gradient(135deg, rgba(42, 48, 56, 0.9), rgba(31, 33, 39, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect disabled for matchup view */
/* .player-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 71, 161, 0.5);
  box-shadow: 0 8px 24px var(--overlay-medium);
} */

.player-card-header {
  padding: 1rem;
  background: var(--overlay-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.player-card .status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-card .status-badge.status-pending {
  background: var(--gradient-warning);
  color: #000;
}

.player-card .status-badge.status-accepted {
  background: var(--gradient-success);
  color: #000;
}

.player-card .status-badge.status-counter {
  background: linear-gradient(135deg, #00ACC1, #26C6DA);
  color: #000;
}

.player-card .status-badge.status-rejected {
  background: linear-gradient(135deg, #B71C1C, #FF5252);
  color: #fff;
}

.player-card .status-badge.status-signed {
  background: var(--gradient-success);
  color: #000;
}

.player-info-section {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.player-avatar-wrapper {
  flex-shrink: 0;
  position: relative;
}

.player-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Avatar hover zoom disabled for matchup view */
/* .player-card:hover .player-avatar {
  transform: scale(1.05);
  border-color: rgba(13, 71, 161, 0.5);
} */

.player-details {
  flex: 1;
  min-width: 0;
}

.player-name-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #448AFF;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.player-name-btn:hover {
  color: #82B1FF;
  text-decoration: underline;
}

.player-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.25rem 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-meta .ps-badge {
  font-size: 0.75rem;
  font-weight: 600;
}

.player-card-body {
  padding: 1rem;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.875rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--overlay-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: rgba(13, 71, 161, 0.1);
  border-color: rgba(13, 71, 161, 0.3);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.player-card-footer {
  padding: 1rem;
  background: var(--overlay-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.action-buttons .btn {
  flex: 1;
  min-width: fit-content;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.action-buttons .btn i {
  font-size: 1rem;
}

.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--overlay-medium);
}

/* Desktop Table View */
.player-actions-table-container {
  background: rgba(42, 48, 56, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.player-actions-table {
  margin-bottom: 0;
}

.player-actions-table thead {
  background: var(--overlay-medium);
}

.player-actions-table thead th {
  padding: 1rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

.player-actions-table tbody td {
  padding: 1rem 0.875rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.player-actions-table tbody tr {
  transition: background 0.2s ease;
}

.player-actions-table tbody tr:nth-child(odd) {
  background: rgba(31, 33, 39, 0.3);
}

.player-actions-table tbody tr:nth-child(even) {
  background: rgba(42, 48, 56, 0.2);
}

.player-actions-table tbody tr:hover {
  background: var(--bg-hover) !important;
}

.contract-summary {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.contract-years,
.contract-total,
.contract-gtd,
.contract-divider {
  display: inline-flex;
  flex-shrink: 0;
}

.contract-years,
.contract-total,
.contract-gtd {
  font-weight: 600;
  color: #ffffff;
}

.contract-divider {
  color: var(--border-strong);
}

.money-value {
  font-weight: 600;
  color: #00E676;
  white-space: nowrap;
}

/* Override green money values in player-actions tab */
.player-actions-table .money-value,
.player-actions-content .money-value,
.player-card .money-value {
  color: #fff;
}

/* Override green money values in transaction tables */
.trade-transactions-table .money-value,
.contract-transactions-table .money-value {
  color: #fff;
}

.years-value {
  font-weight: 600;
  color: #ffffff;
}

/* Empty State */
.player-actions-content .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(42, 48, 56, 0.3);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
}

.player-actions-content .empty-state-content {
  max-width: 400px;
  margin: 0 auto;
}

.player-actions-content .empty-state-icon {
  font-size: 4rem;
  color: var(--border-strong);
  margin-bottom: 1.5rem;
}

.player-actions-content .empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.player-actions-content .empty-state-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Loading State */
.player-actions-content .loading-state {
  text-align: center;
  padding: 4rem 2rem;
}

.player-actions-content .loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.player-actions-content .loading-spinner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Static Offer Modal Styles */
#static-offer-modal .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

#static-offer-modal .modal-header {
  background: var(--overlay-light);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
}

#static-offer-modal .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

#static-offer-modal .modal-body {
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

#static-offer-modal .modal-footer {
  background: var(--overlay-light);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}

/* Static Modal Header (Tag, Test Market, Fifth Year) */
.static-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.athlete-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-medium);
}

.athlete-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-info-large {
  text-align: center;
}

.athlete-name-large {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.athlete-rating {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.athlete-rating.athlete-success {
  background: var(--gradient-success);
  color: #000;
}

.athlete-rating.athlete-warning {
  background: var(--gradient-warning);
  color: #000;
}

.athlete-team-large {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.static-modal-body {
  text-align: center;
}

.static-modal-body h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.static-modal-body .alert {
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.static-modal-body .alert i {
  font-size: 1.5rem;
  margin-top: 0.125rem;
}

/* Cut Modal Styles */
.cut-modal-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.athlete-info-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.athlete-avatar-cut {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-medium);
}

.athlete-details-cut {
  flex: 1;
}

.athlete-details-cut .athlete-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.athlete-details-cut .athlete-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.cut-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cut-modal-body {
  padding: 0;
}

/* Poach Modal Styles */
.poach-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.poach-window-banner {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.poach-window-open {
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.4);
  color: #00C853;
}

.poach-window-closed {
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.35);
  color: #FF9800;
}

.poach-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.contract-overview,
.player-impact {
  margin-bottom: 2rem;
}

.contract-overview h5,
.player-impact h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contract-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.875rem;
}

.stat-box {
  background: var(--overlay-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-box:hover {
  background: rgba(13, 71, 161, 0.1);
  border-color: rgba(13, 71, 161, 0.3);
}

.stat-box .stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-box .stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.875rem;
}

.impact-card {
  background: var(--overlay-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.impact-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

.impact-value.impact-positive {
  color: #00E676;
}

.impact-value.impact-negative {
  color: var(--danger-red);
}

/* Responsive Design */
@media (max-width: 575px) {
  /* Mobile Adjustments */
  .league-team-header .team-header-card {
    padding: 0.875rem;
  }

  .league-team-header .team-avatar {
    width: 48px;
    height: 48px;
  }

  .league-team-header .team-name {
    font-size: 1.125rem;
  }

  .league-team-header .team-owner {
    font-size: 0.8125rem;
  }

  .league-team-header .team-cap-space {
    padding: 0.375rem 0.75rem;
    min-width: 100px;
  }

  .league-team-header .cap-label {
    font-size: 0.6875rem;
  }

  .league-team-header .cap-value {
    font-size: 1rem;
  }

  .player-actions-nav .nav-tabs {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: visible;
  }

  .player-actions-nav .nav-item {
    flex: 1 1 0;
    min-width: 0;
    flex-shrink: 1;
  }

  .player-actions-nav .nav-link {
    padding: 0.625rem 0.375rem;
    font-size: 0.75rem;
    min-width: auto;
    justify-content: center;
  }

  .player-actions-nav .tab-text {
    display: none;
  }

  .player-actions-nav .nav-link i {
    margin: 0 !important;
    font-size: 1.25rem;
  }

  .player-actions-nav .badge-count {
    position: absolute;
    top: 0.375rem;
    right: 0.25rem;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    min-width: 1.125rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  .player-actions-nav .nav-item {
    position: relative;
  }

  .player-avatar {
    width: 56px;
    height: 56px;
  }

  .player-name-btn {
    font-size: 0.9375rem;
  }

  .player-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .stat-item {
    padding: 0.625rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }

  .stat-value {
    font-size: 0.9375rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    flex: 1 1 100%;
  }

  .athlete-avatar-large {
    width: 100px;
    height: 100px;
  }

  .athlete-name-large {
    font-size: 1.25rem;
  }

  .contract-stats-grid,
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .cut-actions {
    flex-direction: column;
    width: 100%;
  }

  .cut-actions .btn {
    width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  /* Tablet Small */
  .player-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contract-stats-grid,
  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet */
  .player-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contract-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  /* Desktop */
  .league-team-header .team-avatar {
    width: 64px;
    height: 64px;
  }

  .league-team-header .team-name {
    font-size: 1.5rem;
  }

  .player-actions-nav .nav-link {
    padding: 1rem 1.5rem;
  }

  /* Responsive view visibility is managed by JavaScript and Bootstrap classes */

  .contract-stats-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  /* Large Desktop */
  .player-actions-table thead th {
    padding: 1.125rem 1rem;
    font-size: 0.8125rem;
  }

  .player-actions-table tbody td {
    padding: 1.125rem 1rem;
  }
}

/* ========================================
   ROSTER BREAKDOWN TAB STYLES
   ======================================== */

.roster-breakdown-container {
  padding: 1.5rem 0;
}

/* Position Filter Tabs */
.position-filter-section {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(98, 0, 234, 0.04));
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.position-tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.position-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  border: none;
}

.position-tabs .nav-item {
  flex-shrink: 0;
}

.position-tabs .nav-link {
  background: rgba(42, 48, 56, 0.6);
  border: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

.position-tabs .nav-link:hover {
  background: rgba(13, 71, 161, 0.3);
  border-color: rgba(13, 71, 161, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.position-tabs .nav-link.active {
  background: var(--gradient-primary);
  border-color: var(--primary-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4);
}

/* Breakdown Cards (Mobile) */
.breakdown-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.breakdown-card {
  background: linear-gradient(135deg, rgba(42, 48, 56, 0.9), rgba(31, 33, 39, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 71, 161, 0.5);
  box-shadow: 0 8px 24px var(--overlay-medium);
}

.breakdown-card-header {
  padding: 1rem;
  background: var(--overlay-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-card-body {
  padding: 1rem;
}

.contract-summary-section,
.year-breakdown-section {
  margin-bottom: 1rem;
}

.contract-summary-section:last-child,
.year-breakdown-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.contract-stats-grid,
.year-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.875rem;
}

.breakdown-card .stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.breakdown-card .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.breakdown-card .stat-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.breakdown-card .money-value {
  color: #fff;
  font-weight: 600;
}

.ps-badge {
  display: inline-block;
  background: var(--gradient-warning);
  color: #000;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Position Section Header */
.breakdown-position-section {
  margin-bottom: 1.5rem;
}

.breakdown-position-header {
  background: var(--gradient-section-header);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--primary-blue);
  border-radius: var(--radius-sm);
}

.breakdown-position-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Desktop Table View */
.breakdown-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0;
}

.breakdown-table,
table.dataTable.breakdown-table {
  margin: 0 !important;
  color: #fff;
}

.breakdown-table thead {
  background: var(--bg-header);
}

.breakdown-table thead th {
  border: none;
  padding: 0.875rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  vertical-align: middle;
}

.breakdown-table .header-row-1 th {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0.75rem;
}

.breakdown-table .header-row-2 th {
  padding: 0.75rem 0.5rem;
  font-size: 0.6875rem;
}

.breakdown-table .section-header {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  font-weight: 700;
}

.breakdown-table .player-col {
  min-width: 200px;
  position: sticky;
  left: 0;
  background: rgba(42, 48, 56, 0.95);
  z-index: 10;
}

.breakdown-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.breakdown-table tbody tr:hover {
  background: var(--bg-hover);
}

.breakdown-table tbody td {
  padding: 0.875rem 0.75rem;
  border: none;
  vertical-align: middle;
  font-size: 0.8125rem;
}

.breakdown-table .with-right-border {
  border-right: 2px solid var(--border-subtle) !important;
}

.breakdown-table .money-value {
  color: #fff;
  font-weight: 600;
}

.breakdown-table .player-info-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.breakdown-table .player-avatar-wrapper {
  flex-shrink: 0;
}

.breakdown-table .player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.breakdown-table .player-details {
  flex: 1;
  min-width: 0;
}

.breakdown-table .player-name-btn {
  background: none;
  border: none;
  padding: 0;
  color: #64B5F6;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}

.breakdown-table .player-name-btn:hover {
  color: #90CAF9;
  text-decoration: underline;
}

.breakdown-table .player-meta {
  margin: 0.25rem 0 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 575px) {
  .roster-breakdown-container {
    padding: 1rem 0;
  }

  .position-filter-section {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .position-tabs {
    gap: 0.375rem;
  }

  .position-tabs .nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .breakdown-card-header,
  .breakdown-card-body {
    padding: 0.875rem;
  }

  .contract-stats-grid,
  .year-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .breakdown-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contract-stats-grid,
  .year-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .breakdown-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .position-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .breakdown-table thead th {
    padding: 1rem 0.875rem;
    font-size: 0.8125rem;
  }

  .breakdown-table tbody td {
    padding: 1rem 0.875rem;
  }

  .breakdown-table .player-avatar {
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 1200px) {
  .breakdown-table .header-row-1 th {
    padding: 1.125rem 1rem;
  }

  .breakdown-table .header-row-2 th {
    padding: 0.875rem 0.75rem;
    font-size: 0.75rem;
  }

  .breakdown-table tbody td {
    padding: 1.125rem 1rem;
  }

  .breakdown-table .player-avatar {
    width: 64px;
    height: 64px;
  }
}

/* Scrollable Table Container */
.breakdown-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

/* Ensure table wrapper doesn't constrain width */
.breakdown-scroll-container .breakdown-table-wrapper {
  min-width: 100%;
  display: inline-block;
}

/* Sticky first column */
.breakdown-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 20;
  box-shadow: 2px 0 4px var(--overlay-light);
}

.breakdown-table thead .sticky-col {
  z-index: 30;
}

.breakdown-table tbody tr:hover .sticky-col {
  background: var(--bg-hover);
}

/* Mobile-specific styles for scrollable table */
@media (max-width: 991px) {
  .breakdown-scroll-container {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
  }

  .breakdown-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.6875rem;
  }

  .breakdown-table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .breakdown-table .player-avatar {
    width: 40px;
    height: 40px;
  }

  .breakdown-table .player-name-btn {
    font-size: 0.8125rem;
  }

  .breakdown-table .player-meta {
    font-size: 0.6875rem;
  }

  .breakdown-table .sticky-col {
    min-width: 180px;
  }

  .breakdown-table .money-value {
    font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  .breakdown-table .sticky-col {
    min-width: 150px;
  }

  .breakdown-table .player-info-section {
    gap: 0.5rem;
  }

  .breakdown-table .player-avatar {
    width: 36px;
    height: 36px;
  }
}

/* ========================================
   DRAFT PICKS TAB STYLES
   ======================================== */

/* Draft Picks Container */
.draft-picks-container {
  border-radius: 16px;
  min-height: 500px;
  position: relative;
}

/* Draft Picks View */
.draft-picks-view {
  width: 100%;
}

/* Draft Picks Section Header */
.draft-picks-position-section {
  margin-bottom: 1.5rem;
}

.draft-picks-position-header {
  background: linear-gradient(90deg, var(--border-subtle) 0%, transparent 100%);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
}

.draft-picks-position-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Scrollable Table Container */
.draft-picks-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.draft-picks-scroll-container .draft-picks-table-wrapper {
  min-width: 100%;
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Draft Picks Table */
.draft-picks-table,
table.dataTable.draft-picks-table {
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: max-content;
  min-width: 100%;
  color: #fff;
}

.draft-picks-table thead {
  background: var(--bg-header);
}

.draft-picks-table thead th {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
  vertical-align: middle;
}

.draft-picks-table .header-row-1 th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.draft-picks-table .section-header {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  font-weight: 700;
}

.draft-picks-table .with-right-border {
  border-right: 2px solid var(--border-subtle) !important;
}

.draft-picks-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.draft-picks-table tbody tr:hover {
  background: var(--bg-hover);
}

.draft-picks-table tbody td {
  padding: 1.25rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* Sticky first column */
.draft-picks-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 20;
  background: var(--bg-card);
  min-width: 200px;
}

.draft-picks-table thead .sticky-col {
  z-index: 30;
  background: var(--bg-header);
}

.draft-picks-table tbody tr:hover .sticky-col {
  background: var(--bg-hover);
}

/* Pick Information Section */
.pick-info-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
}

.pick-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pick-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
}

.pick-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.traded-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(255, 87, 34, 0.3));
  border: 1px solid rgba(255, 152, 0, 0.5);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
}

.original-owner {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.owner-name {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Money values */
.draft-picks-table .money-value {
  color: #fff;
  font-weight: 600;
}

/* Loading and Empty States */
#draft-picks-loading-state,
#draft-picks-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 3rem 1.5rem;
}

.fop-spinner,
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.fop-spinner .mdi-loading,
.loading-spinner .mdi-loading {
  font-size: 2rem;
}

.fop-spinner p,
.loading-spinner p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.loading-spinner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.empty-state-content {
  text-align: center;
  max-width: 400px;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--border-medium);
  margin-bottom: 1.5rem;
}

.empty-state-title {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.empty-state-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Mobile-specific styles for draft picks */
@media (max-width: 991px) {
  .draft-picks-container {
    padding: 1rem;
  }

  .draft-picks-scroll-container {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
  }

  .draft-picks-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.6875rem;
  }

  .draft-picks-table .section-header {
    font-size: 0.75rem;
    padding: 0.625rem 0.5rem;
  }

  .draft-picks-table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .draft-picks-table .sticky-col {
    min-width: 180px;
  }

  .pick-label {
    font-size: 0.8125rem;
  }

  .pick-meta {
    font-size: 0.6875rem;
  }

  .traded-badge {
    font-size: 0.625rem;
    padding: 0.0625rem 0.375rem;
  }

  .draft-picks-table .money-value {
    font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  .draft-picks-container {
    padding: 0.75rem;
  }

  .draft-picks-table .sticky-col {
    min-width: 150px;
  }

  .pick-info-section {
    gap: 0.5rem;
  }

  .pick-label {
    font-size: 0.75rem;
  }

  .pick-meta {
    font-size: 0.625rem;
    gap: 0.375rem;
  }

  .traded-badge {
    font-size: 0.5625rem;
  }
}

/* ========================================
   SALARY CAP SUMMARY STYLES
   ======================================== */

.salary-cap-container {
  padding: 0;
}

/* Overview Cards Grid */
.cap-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cap-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.cap-overview-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.cap-overview-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cap-overview-value.cap-positive {
  color: #4CAF50;
}

.cap-overview-value.cap-warning {
  color: #FF9800;
}

.cap-overview-value.cap-negative {
  color: #F44336;
}

.cap-overview-subtext {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Section Headers */
.cap-section {
  margin-bottom: 1.5rem;
}

.cap-section-header {
  background: var(--gradient-section-header);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--primary-blue);
  border-radius: var(--radius-sm);
}

.cap-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Scrollable Table Container */
.cap-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cap-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Cap Summary Table */
.cap-summary-table {
  margin: 0 !important;
  color: #fff;
  width: 100%;
  min-width: max-content;
}

.cap-summary-table thead {
  background: var(--bg-header);
}

.cap-summary-table thead th {
  border: none;
  padding: 0.875rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  vertical-align: middle;
}

.cap-summary-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.cap-summary-table tbody tr:hover {
  background: var(--bg-hover);
}

.cap-summary-table tbody tr.highlight-row {
  background: rgba(76, 175, 80, 0.1);
}

.cap-summary-table tbody tr.highlight-row:hover {
  background: rgba(76, 175, 80, 0.15);
}

.cap-summary-table tbody td {
  padding: 0.875rem 0.75rem;
  border: none;
  vertical-align: middle;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.cap-summary-table .category-col,
.cap-summary-table .player-col {
  min-width: 150px;
  font-weight: 600;
}

.cap-summary-table .money-value {
  color: #fff;
  font-weight: 600;
}

/* Player Info in Dead Cap Table */
.player-info-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.player-details-compact {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.player-name-link {
  background: none;
  border: none;
  padding: 0;
  color: #4FC3F7;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.player-name-link:hover {
  color: #81D4FA;
  text-decoration: underline;
}

.player-meta {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* No Data Message */
.no-data-message {
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.no-data-message p {
  margin: 0;
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (min-width: 576px) {
  .cap-overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cap-overview-value {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .cap-overview-card {
    padding: 1.25rem;
  }

  .cap-overview-label {
    font-size: 0.8125rem;
  }
}

@media (max-width: 575px) {
  .cap-overview-value {
    font-size: 1.25rem;
  }

  .cap-summary-table thead th {
    padding: 0.625rem 0.5rem;
    font-size: 0.6875rem;
  }

  .cap-summary-table tbody td {
    padding: 0.625rem 0.5rem;
    font-size: 0.75rem;
  }

  .cap-summary-table .category-col,
  .cap-summary-table .player-col {
    min-width: 120px;
  }

  .player-avatar-small {
    width: 32px;
    height: 32px;
  }

  .player-name-link {
    font-size: 0.75rem;
  }
}

/* ========================================
   CONTRACT TRANSACTIONS STYLES
   ======================================== */

/* Container */
.contract-transactions-container {
  border-radius: 16px;
  min-height: 500px;
}

/* Filter Section */
.filter-section {
  margin-bottom: 1.5rem;
}

.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
}

.filter-dropdown {
  flex: 0 1 auto;
}

.filter-dropdown .dropdown-menu {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.filter-dropdown .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.filter-dropdown .dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.filter-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: 3px;
}

.filter-dropdown .dropdown-item {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.filter-dropdown .dropdown-item:hover,
.filter-dropdown .dropdown-item:focus {
  background-color: transparent;
  transform: scale(1.05);
}

/* Filter Wrapper - Flex container for filters and search */
.filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
}

.filter-row {
  flex: 1 1 auto;
}

.search-box-wrapper {
  flex: 0 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  pointer-events: none;
}

.search-box .search-input {
  background: rgba(42, 48, 56, 0.8);
  border: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  font-size: 0.875rem;
  border-radius: 6px;
  min-width: 160px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-box .search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box .search-input:focus {
  outline: none;
  background: rgba(42, 48, 56, 1);
  border-color: var(--border-strong);
}

/* Desktop Table */
.contract-transactions-table {
  margin: 0;
  background: rgba(42, 48, 56, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.contract-transactions-table thead {
  background: var(--overlay-medium);
}

#league-teams-table-id thead th,
.contract-transactions-table thead th {
  text-align: left !important;
}

.btn-inverse-success:hover {
  background-color: rgba(52, 177, 170, 0.35);
  border-color: rgba(52, 177, 170, 0.2);
}

.contract-transactions-table thead th {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 0.875rem;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

.contract-transactions-table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contract-transactions-table tbody tr:hover {
  background: var(--bg-hover);
}

.contract-transactions-table tbody td {
  padding: 1rem 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  vertical-align: middle;
}

/* Transaction Badges */
.transaction-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transaction-badge.cut {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(211, 47, 47, 0.3));
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.transaction-badge.waiver,
.transaction-badge.free_agency {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.transaction-badge.poach {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(255, 87, 34, 0.3));
  border: 1px solid rgba(255, 152, 0, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.transaction-badge.re_sign,
.transaction-badge.extension {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(13, 71, 161, 0.3));
  border: 1px solid rgba(33, 150, 243, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.transaction-badge.restructure {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(123, 31, 162, 0.3));
  border: 1px solid rgba(156, 39, 176, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.transaction-badge.franchise_tag,
.transaction-badge.fifth_year {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 160, 0, 0.3));
  border: 1px solid rgba(255, 193, 7, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

/* Transaction Details Cell */
.transaction-details-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.detail-item strong {
  color: rgba(255, 255, 255, 0.95);
}

/* Scrollable Table Container */
.transactions-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  background: none;
}

#transactions-table-container > .dataTables_paginate,
#trades-table-container > .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0.5rem 0;
  position: sticky;
  bottom: 0;
}

.transactions-table-wrapper {
  min-width: 800px;
  width: 100%;
}

/* Sticky Column */
.contract-transactions-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 10;
  background: rgba(42, 48, 56, 0.95);
}

.contract-transactions-table thead .sticky-col {
  background: var(--overlay-medium);
}

.contract-transactions-table tbody tr:hover .sticky-col {
  background: var(--bg-hover);
}

/* Responsive */
@media (max-width: 991px) {
  .contract-transactions-container {
    padding: 1rem;
  }

  .filter-row {
    gap: 0.5rem;
  }

  .filter-dropdown .btn {
    min-width: 100px;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }

  .search-box .search-input {
    min-width: 140px;
  }

  .transactions-table-wrapper {
    min-width: 700px;
  }
}

@media (max-width: 575px) {
  .contract-transactions-container {
    padding: 0.75rem;
  }

  .filter-wrapper {
    flex-direction: column;
  }

  .filter-row {
    flex-direction: column;
    width: 100%;
    margin: 0;
  }

  .filter-dropdown {
    width: 100%;
  }

  .filter-dropdown .btn {
    width: 100%;
  }

  .search-box-wrapper {
    width: 100%;
    margin-left: 0;
  }

  .search-box {
    width: 100%;
  }

  .search-box .search-input {
    width: 100%;
    min-width: unset;
  }

  .transactions-table-wrapper {
    min-width: 600px;
  }

  .contract-transactions-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .contract-transactions-table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
  }
}

/* ========================================
   TRADE TRANSACTIONS STYLES
   ======================================== */

/* Container */
.trade-transactions-container {
  border-radius: 16px;
  min-height: 500px;
}

/* Scrollable Table Container */
.trades-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  background: none;
}

.trades-table-wrapper {
  min-width: 1000px;
  width: 100%;
}

/* Table Styles */
.trade-transactions-table {
  margin: 0;
  background: rgba(42, 48, 56, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.trade-transactions-table thead {
  background: var(--overlay-medium);
}

.trade-transactions-table thead th {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 0.875rem;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

.trade-transactions-table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trade-transactions-table tbody tr:hover {
  background: var(--bg-hover);
}

.trade-transactions-table tbody td {
  padding: 1rem 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  vertical-align: middle;
}

/* Sticky Column */
.trade-transactions-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 10;
  background: rgba(42, 48, 56, 0.95);
}

.trade-transactions-table thead .sticky-col {
  background: var(--overlay-medium);
}

.trade-transactions-table tbody tr:hover .sticky-col {
  background: var(--bg-hover);
}

/* Trade Assets */
.trade-assets {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trade-player-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-avatar-xs {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.player-name-xs {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.player-info-xs {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.trade-pick-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.pick-icon {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.pick-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
}

.no-assets {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
  padding: 0.5rem;
}

/* Team Display */
.team-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.team-abbr {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* Responsive */
@media (max-width: 991px) {
  .trade-transactions-container {
    padding: 1rem;
  }

  .trades-table-wrapper {
    min-width: 900px;
  }
}

@media (max-width: 575px) {
  .trade-transactions-container {
    padding: 0.75rem;
  }

  .trades-table-wrapper {
    min-width: 800px;
  }

  .trade-transactions-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .trade-transactions-table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
  }

  .trade-assets {
    max-width: 200px;
  }
}

/* ================================
   DEPTH CHART SPECIFIC STYLES
   ================================ */

/* Depth Chart Header with Formation Controls */
.depth-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.depth-chart-schemes {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.depth-chart-scheme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.depth-chart-scheme-btn:hover {
  background: var(--border-subtle);
  border-color: var(--border-medium);
  color: #fff;
}

.depth-chart-scheme-btn strong {
  font-weight: 600;
  color: #4FC3F7;
}

/* Depth Chart Tables */
.depth-chart-tables {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.depth-chart-section-header {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.depth-chart-section-header i {
  font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .depth-chart-controls {
    padding: 0.75rem;
  }
  
  .depth-chart-schemes {
    flex-direction: column;
  }
  
  .depth-chart-scheme-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================================
   Trade Center Styles
   ================================ */

.trade-center-container {
  min-height: 100vh;
}

.league-team-header {
  background: transparent;
  margin-bottom: 1rem;
}

.trade-center-team-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}


.league-team-header .build-trade-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.trade-center-nav .nav-tabs {
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trade-center-nav .nav-tabs::-webkit-scrollbar {
  display: none;
}

.trade-center-nav .nav-item {
  flex-shrink: 0;
}

.trade-center-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.trade-center-nav .nav-link i {
  font-size: 1.125rem;
}

.trade-center-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.trade-center-nav .nav-link.active {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.trade-center-nav .badge-count {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
}

/* Tab Content Background */
.trade-center-tab-content-dark {
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 400px;
}

/* Trade Card Styles */
.trade-center-container .trade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.trade-center-container .trade-card-header {
  background: var(--bg-header);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.trade-center-container .trade-card-body {
  padding: 1.25rem;
}

.trade-center-container .trade-card-footer {
  background: var(--overlay-light);
  padding: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
}

.trade-center-container .trade-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
}

.trade-center-container .trade-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.trade-center-container .trade-toggle-btn i {
  transition: transform 0.3s ease;
}

.trade-center-container .trade-card.expanded .trade-toggle-btn i.mdi-chevron-up {
  transform: rotate(0deg);
}

.trade-center-container .trade-card.collapsed .trade-toggle-btn i.mdi-chevron-down {
  transform: rotate(0deg);
}

/* Trade Participant Sections */
.trade-center-container .trade-participants {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .trade-center-container .trade-participants {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.trade-center-container .trade-participant {
  padding: 1rem;
}

.trade-center-container .trade-participant-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-subtle);
}

.trade-center-container .trade-participant-header .team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  object-fit: cover;
}

/* Athlete Item Styles */
.trade-center-container .trade-athlete {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.trade-center-container .athlete-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

@media (min-width: 576px) {
  .trade-center-container .athlete-avatar {
    width: 50px;
    height: 50px;
  }
}

.trade-center-container .athlete-info {
  flex: 1;
  min-width: 0;
}

.trade-center-container .athlete-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-center-container .athlete-name:hover {
  color: #fff;
  text-decoration: underline;
}

.trade-center-container .athlete-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Draft Pick Styles */
.trade-center-container .trade-pick {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.trade-center-container .trade-pick h6 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.trade-center-container .pick-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Cap Hit Styles */
.trade-center-container .trade-cap-hit {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.trade-center-container .cap-hit-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.trade-center-container .cap-hit-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

/* Compliance Alerts */
.trade-center-container .compliance-alert {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trade-center-container .compliance-alert i {
  font-size: 1.2rem;
}

/* Acceptance Alerts */
.trade-center-container .acceptance-alert {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trade-center-container .acceptance-alert i {
  font-size: 1.2rem;
}

/* Action Buttons */
.trade-center-container .trade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .trade-center-container .trade-actions {
    gap: 0.75rem;
  }
}

.trade-center-container .trade-actions .btn {
  flex: 1;
  min-width: 100px;
}

@media (min-width: 576px) {
  .trade-center-container .trade-actions .btn {
    flex: 0 0 auto;
  }
}

/* Trade Center Button Hover Overrides */
.trade-center-container .trade-actions .btn-inverse-primary:hover,
.trade-center-container .trade-actions .btn-inverse-primary:focus,
.league-team-header .build-trade-btn:hover,
.league-team-header .build-trade-btn:focus {
  background-color: rgba(58, 97, 246, 0.35);
  border-color: rgba(58, 97, 246, 0.4);
}

.trade-center-container .trade-actions .btn-inverse-secondary:hover,
.trade-center-container .trade-actions .btn-inverse-secondary:focus {
  background-color: rgba(163, 164, 165, 0.35);
  border-color: rgba(163, 164, 165, 0.4);
}

.trade-center-container .trade-actions .btn-inverse-info:hover,
.trade-center-container .trade-actions .btn-inverse-info:focus {
  background-color: rgba(137, 108, 0, 0.35);
  border-color: rgba(137, 108, 0, 0.4);
}

.trade-center-container .trade-actions .btn-inverse-danger:hover,
.trade-center-container .trade-actions .btn-inverse-danger:focus {
  background-color: rgba(249, 95, 83, 0.35);
  border-color: rgba(249, 95, 83, 0.4);
}

/* Empty State */
.trade-center-container .empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.trade-center-container .empty-state-icon {
  font-size: 4rem;
  color: var(--border-medium);
  margin-bottom: 1rem;
}

.trade-center-container .empty-state h5 {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.trade-center-container .empty-state p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Coming Soon State */
.coming-soon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.coming-soon-content {
  text-align: center;
  max-width: 450px;
}

.coming-soon-icon {
  margin-bottom: 1.5rem;
}

.coming-soon-icon i {
  font-size: 5rem;
  color: var(--border-medium);
}

.coming-soon-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.coming-soon-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.coming-soon-description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .trade-center-team-selector {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .trade-center-team-info {
    justify-content: center;
  }

  .league-team-header .build-trade-btn {
    width: 100%;
  }

  .trade-center-container .trade-card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .trade-center-container .trade-actions {
    width: 100%;
  }
}

/* Trade Builder Modal - Hide number input spinners */
#trade-builder-modal-id input[type="number"]::-webkit-outer-spin-button,
#trade-builder-modal-id input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#trade-builder-modal-id input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Matchup Collapsible Sections */
.matchup-collapsible-header {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.matchup-collapsible-header:hover {
  opacity: 0.8;
}

.matchup-collapsible-header h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.matchup-collapsible-header i {
  transition: transform 0.3s ease;
}

.matchup-collapsible-header[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Active tab color for horizontal nav tabs */
.nav-tabs-horizontal .nav-link.active,
.nav-tabs-horizontal .nav-link.active i {
  color: #1a2a4a !important;
}

.nav-tabs-horizontal .nav-link.active {
  background-color: var(--athlete-accent-blue-light) !important;
  border-color: var(--athlete-accent-blue-light) !important;
  border-radius: 0;
}

/* Full-width stretched tabs - League Home, My Team, Players, Trade Center, Settings */
#league-home-tabs-id,
#my-team-tabs-id,
#players-tab-id,
#trades-tabs-id,
#settings-tabs-id {
  display: flex;
  gap: 0.375rem;
}

#league-home-tabs-id .nav-item,
#my-team-tabs-id .nav-item,
#players-tab-id .nav-item,
#trades-tabs-id .nav-item,
#settings-tabs-id .nav-item {
  flex: 1;
  min-width: 0;
}

#league-home-tabs-id .nav-link,
#my-team-tabs-id .nav-link,
#players-tab-id .nav-link,
#trades-tabs-id .nav-link,
#settings-tabs-id .nav-link {
  width: 100%;
  text-align: center;
  justify-content: center;
  border-radius: 0;
}

/* Mobile - Icon-only tabs (League Home, My Team, Players, Trade Center, Settings) */
@media (max-width: 767px) {
  #league-home-tabs-id .nav-link,
  #my-team-tabs-id .nav-link,
  #players-tab-id .nav-link,
  #trades-tabs-id .nav-link,
  #settings-tabs-id .nav-link {
    font-size: 0;
    padding: 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #league-home-tabs-id .nav-link i,
  #my-team-tabs-id .nav-link i,
  #players-tab-id .nav-link i,
  #trades-tabs-id .nav-link i,
  #settings-tabs-id .nav-link i {
    font-size: 1.25rem;
    margin: 0 !important;
  }
}

/* ================================================
   Available Players Slider Panel
   ================================================ */

/* Floating Toggle Buttons - Bottom Right, left of chat button */
.available-players-toggle-btns {
  position: fixed;
  bottom: 20px;
  right: 90px; /* Position to the left of the chat button with spacing */
  display: flex;
  gap: 8px;
  z-index: 1060;
}

.slider-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 12px var(--overlay-medium);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-toggle-btn:hover {
  background-color: rgba(58, 97, 246);
  border-color: rgba(58, 97, 246, 0.4);
}

.slider-toggle-btn i {
  font-size: 1.5rem;
}

/* Slider Panel */
.available-players-slider {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background-color: #1a1a2e;
  border-top: 2px solid #3d3d5c;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 1050;
  transition: height 0.3s ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.available-players-slider.open {
  height: 66.67vh; /* 2/3 of the screen */
}

.available-players-slider.closed {
  height: 0;
}

/* Drag Handle */
.slider-drag-handle {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  flex-shrink: 0;
  background: transparent;
}

.slider-drag-handle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.drag-handle-bar {
  width: 48px;
  height: 5px;
  background-color: #6c757d;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.slider-drag-handle:hover .drag-handle-bar {
  background-color: #adb5bd;
}

/* Slider Header */
.slider-header {
  padding: 0 16px 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.slider-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Slider Body */
.slider-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Adjust toggle button position when slider is open */
.available-players-slider.open ~ .available-players-toggle-btns {
  bottom: calc(66.67vh + 20px);
}

/* Minimum height constraint during drag */
.available-players-slider.dragging {
  transition: none;
}

/* Remove cell padding from available players tables */

#position-filter-desktop .btn,
#position-filter-gm-desktop .btn {
  max-width: 90px;
}

#available-players-table-id td,
#available-players-table-mobile-id td,
#available-players-gm-table-id td,
#available-players-gm-table-mobile-id td {
  padding: 0 !important;
}

/* Center-align stat columns (columns 2–13, skipping player col) */
#available-players-table-id td:not(:first-child):not(:last-child),
#available-players-table-id thead tr:last-child th:not(:first-child):not(:last-child),
#available-players-gm-table-id td:not(:first-child):not(:last-child),
#available-players-gm-table-id thead tr:last-child th:not(:first-child):not(:last-child),
#available-players-gm-table-mobile-id td:not(:first-child):not(:last-child),
#available-players-gm-table-mobile-id thead tr:last-child th:not(:first-child):not(:last-child) {
  text-align: center;
}

/* Add x-axis padding to GM mode money/data cells */
#available-players-gm-table-id td:not(:first-child):not(:last-child),
#available-players-gm-table-mobile-id td:not(:first-child):not(:last-child) {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

/* Tighten group header row (Rushing / Receiving / Passing / contract years) */
#available-players-table-id thead tr:first-child th,
#available-players-gm-table-id thead tr:first-child th,
#available-players-gm-table-mobile-id thead tr:first-child th {
  padding: 0 !important;
  line-height: 1;
  border: none !important;
}

/* Mobile queue — larger, more comfortable cards */
#player-queue-mobile-id .card {
  margin-bottom: 0.5rem !important;
}
#player-queue-mobile-id .card-body {
  padding: 0.6rem !important;
}
#player-queue-mobile-id .athlete-avatar-wrapper,
#player-queue-mobile-id .athlete-avatar {
  width: 52px !important;
  height: 52px !important;
}
#player-queue-mobile-id .drag-handle i {
  font-size: 1.25rem !important;
}
#player-queue-mobile-id .drag-handle {
  padding: 0 0.5rem !important;
}
#player-queue-mobile-id .fw-semibold {
  font-size: 1rem !important;
}
#player-queue-mobile-id .text-muted {
  font-size: 0.85rem !important;
}
#player-queue-mobile-id .athlete-rating-badge {
  font-size: 10px !important;
  min-width: 20px !important;
  padding: 2px 5px !important;
}
#player-queue-mobile-id .d-flex.px-1.pb-1 {
  padding: 0 0.6rem 0.6rem !important;
  gap: 0.5rem !important;
}
#player-queue-mobile-id .queue-draft-btn,
#player-queue-mobile-id .queue-remove-btn {
  padding: 0.4rem 0.5rem !important;
  font-size: 0.9rem !important;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .available-players-toggle-btns {
    bottom: 80px; /* Just above mobile nav */
    left: 20px; /* Position on the left side to avoid chat button */
    right: auto; /* Override desktop right positioning */
  }

  .slider-toggle-btn {
    width: 40px;
    height: 40px;
  }

  .slider-toggle-btn i {
    font-size: 1.25rem;
  }

  /* Full-screen drawer on mobile */
  .available-players-slider.open {
    height: 100vh !important;
  }

  /* Hide drag handle — not needed for full-screen */
  .slider-drag-handle {
    display: none;
  }

  /* Hide the down/collapse button — the in-drawer close button replaces it */
  #slider-down-btn {
    display: none;
  }

  .slider-body {
    padding: 12px;
  }

  .slider-body .row.h-100 {
    height: auto !important;
  }
}

/* Slider body content adjustments */
.slider-body .row.h-100 {
  height: calc(100% - 20px) !important;
  min-height: 300px;
}

.slider-body .col-md-8,
.slider-body .col-md-4 {
  height: 100%;
  max-height: 100%;
}

/* Ensure tables are properly contained */
.slider-body .table-responsive {
  max-height: calc(100% - 60px);
  overflow-y: auto;
}

/* Queue section styling in slider */
.slider-body #player-queue-id,
.slider-body #player-queue-mobile-id {
  max-height: calc(100% - 60px);
  overflow-y: auto;
}

/* ==========================================
   Landing Page Styles
   ========================================== */
.landing-page {
  min-height: 100vh;
  background-color: #191B20;
}

.landing-page .landing-nav {
  padding: 1.5rem 3rem;
}

.landing-page .landing-nav .nav-logo {
  height: 40px;
}

.landing-page .hero-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 2rem 3rem;
}

.landing-page .brand-title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.landing-page .ball-icon {
  font-size: 0.85em;
  vertical-align: middle;
  margin: 0 -0.05em;
}

.landing-page .tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #808191;
  margin-top: 1.5rem;
}

@media (min-width: 1200px) {
  .landing-page .hero-section {
    padding-left: 15%;
  }
}

@media (min-width: 1600px) {
  .landing-page .hero-section {
    padding-left: 20%;
  }
}

@media (max-width: 768px) {
  .landing-page .landing-nav {
    padding: 1rem 1.5rem;
  }

  .landing-page .hero-section {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================
   Dropdown Styles (Player Stats & Matchups)
   ========================================== */
#player-stats-sorting-dropdowns-wrapper .dropdown-menu,
#weeks-dropdown-container .dropdown-menu,
#matchups-modal-weeks-dropdown .dropdown-menu {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

#player-stats-sorting-dropdowns-wrapper .dropdown-menu::-webkit-scrollbar,
#weeks-dropdown-container .dropdown-menu::-webkit-scrollbar,
#matchups-modal-weeks-dropdown .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

#player-stats-sorting-dropdowns-wrapper .dropdown-menu::-webkit-scrollbar-track,
#weeks-dropdown-container .dropdown-menu::-webkit-scrollbar-track,
#matchups-modal-weeks-dropdown .dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

#player-stats-sorting-dropdowns-wrapper .dropdown-menu::-webkit-scrollbar-thumb,
#weeks-dropdown-container .dropdown-menu::-webkit-scrollbar-thumb,
#matchups-modal-weeks-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: 3px;
}

#player-stats-sorting-dropdowns-wrapper .dropdown-item,
#weeks-dropdown-container .dropdown-item,
#matchups-modal-weeks-dropdown .dropdown-item {
  cursor: pointer;
  transition: transform 0.15s ease;
}

#player-stats-sorting-dropdowns-wrapper .dropdown-item:hover,
#player-stats-sorting-dropdowns-wrapper .dropdown-item:focus,
#matchups-modal-weeks-dropdown .dropdown-item:hover,
#matchups-modal-weeks-dropdown .dropdown-item:focus,
#weeks-dropdown-container .dropdown-item:hover,
#weeks-dropdown-container .dropdown-item:focus {
  background-color: transparent;
  transform: scale(1.05);
  color: inherit;
}

/* ==========================================
   Athlete Modal Styles
   ========================================== */

/* Global Athlete Link Styles
 * Use class="athlete-link" with data-athlete-id and data-league-id
 * to make any element clickable and open the athlete modal
 */
.mobile-position-item:active {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  transform: scale(0.97);
}

.mobile-position-item.active {
  background-color: var(--bs-primary);
  color: #fff;
}

.athlete-link {
  color: var(--athlete-accent-blue);
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: none !important;
}

.athlete-link:hover {
  color: var(--athlete-accent-blue-light);
  text-decoration: underline !important;
}

/* For athlete links inside tables or other dark backgrounds */
.table .athlete-link,
.stats-table .athlete-link {
  color: var(--athlete-accent-blue-light);
}

.table .athlete-link:hover,
.stats-table .athlete-link:hover {
  color: #93c5fd;
}

.athlete-modal .modal-content {
  background: var(--athlete-modal-bg);
  border: 1px solid var(--athlete-border-color);
  border-radius: 12px;
  overflow: hidden;
}

.athlete-modal .modal-header {
  background: var(--athlete-modal-bg-light);
  border-bottom: 1px solid var(--athlete-border-color);
  padding: 1rem 1.5rem;
}

.athlete-modal .modal-title {
  color: var(--athlete-text-primary);
}

.athlete-modal .btn-close {
  filter: invert(1);
  opacity: 0.6;
}

.athlete-modal .btn-close:hover {
  opacity: 1;
}

/* Player Header Card */
.player-header-card {
  background: var(--athlete-modal-bg-light);
  border: 1px solid var(--athlete-border-color);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.player-headshot {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--athlete-border-light);
  background: var(--athlete-modal-bg-lighter);
}

.player-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--athlete-text-primary);
  margin-bottom: 0.25rem;
}

.player-meta {
  color: var(--athlete-text-secondary);
  font-size: 0.9rem;
}

.player-team-badge {
  display: inline-flex;
  align-items: center;
  background: var(--athlete-modal-bg-lighter);
  border: 1px solid var(--athlete-border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--athlete-text-primary);
}

.player-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 42px;
  padding: 0 0.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.score-excellent { background: var(--athlete-accent-green); color: #fff; }
.score-good { background: var(--athlete-warning); color: #1a1a2e; }
.score-average { background: var(--athlete-danger); color: #fff; }

/* Action Buttons */
.player-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.player-actions.flex-column {
  flex-direction: column;
}

.player-actions.flex-column .btn {
  width: 100%;
  text-align: center;
}

.player-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-action-primary {
  background: var(--athlete-accent-blue);
  border: none;
  color: #fff;
}

.btn-action-primary:hover {
  background: var(--athlete-accent-blue-light);
  color: #fff;
}

.btn-action-secondary {
  background: var(--athlete-modal-bg-lighter);
  border: 1px solid var(--athlete-border-light);
  color: var(--athlete-text-primary);
}

.btn-action-secondary:hover {
  background: var(--athlete-border-light);
  color: var(--athlete-text-primary);
}

.btn-action-danger {
  background: transparent;
  border: 1px solid var(--athlete-danger);
  color: var(--athlete-danger);
}

.btn-action-danger:hover {
  background: var(--athlete-danger);
  color: #fff;
}

/* Tab Navigation */
.athlete-modal .nav-tabs {
  background: var(--athlete-modal-bg-light);
  border: 1px solid var(--athlete-border-color);
  border-radius: 8px;
  padding: 0.25rem;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.athlete-modal .nav-tabs::-webkit-scrollbar {
  display: none;
}

.athlete-modal .nav-tabs .nav-link {
  color: var(--athlete-text-muted);
  border: none;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.athlete-modal .nav-tabs .nav-link:hover {
  color: var(--athlete-text-primary);
  background: var(--athlete-modal-bg-lighter);
}

.athlete-modal .nav-tabs .nav-link.active {
  color: #fff;
  background: var(--athlete-accent-blue);
}

/* Tab Content */
.athlete-modal .tab-content {
  padding: 1rem 0;
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Info Cards */
.info-card {
  background: var(--athlete-modal-bg-light);
  border: 1px solid var(--athlete-border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.info-card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--athlete-text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-item label {
  display: block;
  font-size: 0.7rem;
  color: var(--athlete-text-muted);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.info-item span {
  font-size: 0.95rem;
  color: var(--athlete-text-primary);
  font-weight: 500;
}

/* Stats Tables */
.stats-table-container {
  overflow-x: auto;
  margin: -0.5rem;
  padding: 0.5rem;
}

.stats-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: separate;
  border-spacing: 0;
}

.stats-table thead th {
  background: var(--athlete-modal-bg-lighter);
  color: var(--athlete-text-secondary);
  font-weight: 600;
  padding: 0.6rem 0.5rem;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--athlete-border-color);
  position: sticky;
  top: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stats-table tbody td {
  padding: 0.5rem;
  text-align: center;
  color: var(--athlete-text-primary);
  border-bottom: 1px solid var(--athlete-border-color);
}

.stats-table tbody tr {
  transition: background 0.15s ease;
}

.stats-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.stats-table tbody tr:hover {
  background: var(--athlete-modal-bg-lighter) !important;
}

/* News Card */
.news-card {
  background: var(--athlete-modal-bg-light);
  border: 1px solid var(--athlete-border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--athlete-text-primary);
  margin-bottom: 0.5rem;
}

.news-card-content {
  font-size: 0.9rem;
  color: var(--athlete-text-secondary);
  line-height: 1.6;
}

.news-card-meta {
  font-size: 0.75rem;
  color: var(--athlete-text-muted);
  margin-top: 0.75rem;
}

.news-type-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.news-type-injury { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.news-type-status { background: rgba(16, 185, 129, 0.15); color: var(--athlete-accent-green-light); border: 1px solid rgba(16, 185, 129, 0.3); }

/* Contract Section */
.contract-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contract-stat {
  background: var(--athlete-modal-bg-light);
  border: 1px solid var(--athlete-border-color);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.contract-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--athlete-accent-green);
}

.contract-stat-label {
  font-size: 0.65rem;
  color: var(--athlete-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Loading State */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--athlete-text-muted);
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Stat Category Headers */
.stat-category-header {
  background: var(--athlete-modal-bg-lighter);
  border: 1px solid var(--athlete-border-color);
  border-bottom: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-category-header + .stats-table-container {
  border: 1px solid var(--athlete-border-color);
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-bottom: 1rem;
}

.stat-category-header + .stats-table-container .stats-table thead th {
  border-top: none;
}

.stat-category-header + .stats-table-container .stats-table tbody tr:last-child td {
  border-bottom: none;
}

.stat-category-header h6 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--athlete-text-primary);
}

.stat-category-header .badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
}

/* Season/Week Selector */
.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-row select {
  background: var(--athlete-modal-bg-lighter);
  border: 1px solid var(--athlete-border-color);
  color: var(--athlete-text-primary);
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  width: auto;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  cursor: pointer;
}

.filter-row select:focus {
  border-color: var(--athlete-accent-blue);
  outline: none;
}

.season-total-fpts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--athlete-modal-bg-lighter);
  border: 1px solid var(--athlete-border-color);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.season-total-fpts .fpts-label {
  color: var(--athlete-text-muted);
}

.season-total-fpts .fpts-value {
  color: var(--athlete-accent-green);
  font-weight: 600;
}

.filter-row select option {
  background: var(--athlete-modal-bg);
  color: var(--athlete-text-primary);
}

/* League Info Row Styling */
#league-info-row {
  border-top: 1px solid var(--athlete-border-color) !important;
}

/* Player Grades Row */
.player-grades-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grade-item {
  flex: 1;
  min-width: 100px;
  background: var(--athlete-modal-bg-lighter);
  border: 1px solid var(--athlete-border-color);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: left;
}

.grade-item label {
  display: block;
  font-size: 0.65rem;
  color: var(--athlete-text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.grade-item .grade-value {
  font-size: 1rem;
  color: var(--athlete-text-primary);
  font-weight: 600;
}

/* Athlete Modal Responsive Adjustments */
@media (max-width: 768px) {
  .athlete-modal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .player-header-card {
    padding: 1rem;
  }

  .player-headshot {
    width: 80px;
    height: 80px;
  }

  .player-name {
    font-size: 1.2rem;
  }

  .player-info-row {
    flex-wrap: wrap;
  }

  .player-info-row > div:first-child {
    width: 100%;
  }

  .player-actions.flex-column {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    width: 100%;
  }

  .player-actions.flex-column .btn {
    width: auto;
    flex: 1;
    min-width: calc(33% - 0.3rem);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .athlete-modal .nav-tabs .nav-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }

  .stats-table {
    font-size: 0.75rem;
  }

  .contract-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-grades-row {
    flex-wrap: wrap;
  }

  .grade-item {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
  }
}

@media (max-width: 576px) {
  .player-score-badge {
    min-width: 48px;
    height: 36px;
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .contract-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .grade-item {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: calc(50% - 0.375rem);
  }
}

/* No Contract Display */
.no-contract-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--athlete-modal-bg-light);
  border: 1px dashed var(--athlete-border-color);
  border-radius: 12px;
  margin: 1rem 0;
}

.no-contract-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--athlete-modal-bg-lighter);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.no-contract-icon i {
  font-size: 2rem;
  color: var(--athlete-text-muted);
}

.no-contract-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--athlete-text-primary);
  margin-bottom: 0.5rem;
}

.no-contract-message {
  font-size: 0.9rem;
  color: var(--athlete-text-secondary);
  max-width: 300px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ==========================================
   Matchup Loading Spinner
   ========================================== */
.matchup-loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 300px;
}

