@charset "utf-8";
@font-face {
  font-family: "Montserrat";
  src: url("../../../../modules/modules/lineup/skins/default/less/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
.lineup-builder {
  max-width: 1200px;
}
h2 {
  font-size: 1.2em;
  line-height: 1.4;
  margin-bottom: 24px;
}
.lineup-container {
  display: flex;
  gap: 20px;
  min-height: 660px;
}
.pitch-area {
  flex: 2;
  display: flex;
  flex-direction: column;
}
.controls-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.formation-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}
.formation-selector .select-wrapper {
  position: relative;
  display: inline-block;
  color: #333;
  transition: color 0.3s ease;
}
.formation-selector .select-wrapper:hover {
  color: #d2d2d2;
}
.formation-selector select {
  padding: 12px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #FFF;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  min-width: 160px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  font-family: "Montserrat", monospace;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.formation-selector select:hover {
  border-color: #c2c2c2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.formation-selector select:focus {
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(18,89,189,0.1), 0 2px 8px rgba(0,0,0,0.15);
}
.formation-selector select:focus ~ .dropdown-icon,
.formation-selector select:focus + .dropdown-icon {
  color: #333;
}
.formation-selector select:disabled {
  background: #f7f7f7;
  color: #adadad;
  cursor: not-allowed;
  border-color: #e7e7e7;
  box-shadow: none;
}
.formation-selector select:disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #e7e7e7;
}
.formation-selector select:disabled ~ .dropdown-icon,
.formation-selector select:disabled + .dropdown-icon {
  color: #adadad;
}
.formation-selector select option {
  padding: 8px 12px;
  background: #FFF;
  color: #333;
}
.formation-selector select option:hover {
  background: #fbfbfb;
}
.formation-selector select option:checked {
  background: #d2d2d2;
  color: #333;
}
.formation-selector .dropdown-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: currentColor;
  transition: color 0.3s ease;
}
.control-actions {
  display: flex;
  align-items: center;
}
.btn-reset {
  background: none;
  border: none;
  cursor: pointer;
  color: #999999;
  font-size: 14px;
}
.btn-reset:hover {
  text-decoration: underline;
}
.lineup-management-panel {
  margin-top: 20px;
  padding: 16px;
  background: #fbfbfb;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
}
.lineup-management-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.lineup-management-panel .panel-header h4 {
  margin: 0;
  color: #333;
  font-size: 16px;
}
.lineup-count {
  background: #64a0eb;
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
}
.lineup-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.load-section,
.save-section {
  display: flex;
  gap: 12px;
  align-items: center;
}
.load-section select,
.save-section select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  min-width: 200px;
  outline: none;
  transition: border-color 0.3s ease;
}
.load-section select:focus,
.save-section select:focus {
  border-color: #64a0eb;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.load-section select::placeholder,
.save-section select::placeholder {
  color: #c2c2c2;
}
.login-notice-panel {
  text-align: center;
  padding: 20px;
}
.login-notice-panel p {
  margin: 0;
  color: #999999;
  font-size: 14px;
}
.login-notice-panel a {
  color: #64a0eb;
  text-decoration: none;
  font-weight: bold;
}
.login-notice-panel a:hover {
  text-decoration: underline;
}
.action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-load {
  padding: 8px 16px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #17a2b8;
  color: #64a0eb;
}
.btn-load:hover {
  background: #138496;
}
.btn-load:disabled {
  background: #d2d2d2;
  cursor: not-allowed;
}
.btn-save,
.btn-confirm {
  padding: 8px 16px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #28a745;
  color: #64a0eb;
}
.btn-save:hover,
.btn-confirm:hover {
  background: #218838;
}
.btn-save:disabled,
.btn-confirm:disabled {
  background: #d2d2d2;
  cursor: not-allowed;
}
.btn-list {
  padding: 8px 16px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #64a0eb;
  color: #64a0eb;
}
.btn-list:hover {
  background: #e0ecfb;
}
.btn-list:disabled {
  background: #d2d2d2;
  cursor: not-allowed;
}
.btn-cancel {
  padding: 8px 16px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #adadad;
  color: #64a0eb;
}
.btn-cancel:hover {
  background: #999999;
}
.btn-cancel:disabled {
  background: #d2d2d2;
  cursor: not-allowed;
}
.btn-delete {
  padding: 8px 16px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #dc3545;
  color: #64a0eb;
  padding: 4px 12px;
  font-size: 10px;
  margin-left: 4px;
}
.btn-delete:hover {
  background: #c82333;
}
.btn-delete:disabled {
  background: #d2d2d2;
  cursor: not-allowed;
}
.btn-export-preview,
.btn-export-download {
  font-size: 14px;
  padding: 12px 16px;
  min-width: 168px;
  min-height: 48px;
}
.btn-export-preview:disabled,
.btn-export-download:disabled {
  background-color: #d2d2d2;
  border-color: #d2d2d2;
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-export-preview {
  padding: 8px 16px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #f7f7f7;
  color: #64a0eb;
  color: #707070;
}
.btn-export-preview:hover {
  background: #e7e7e7;
}
.btn-export-preview:disabled {
  background: #d2d2d2;
  cursor: not-allowed;
}
.btn-export-download {
  padding: 8px 16px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #f0f6fd;
  color: #64a0eb;
}
.btn-export-download:hover {
  background: #e0ecfb;
}
.btn-export-download:disabled {
  background: #d2d2d2;
  cursor: not-allowed;
}
.lineup-title-section {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.title-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.title-input-group label {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}
.title-input-group input {
  padding: 12px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  background: #f7f7f7;
  min-width: 320px;
  outline: none;
  transition: border-color 0.3s ease;
}
.title-input-group input:focus {
  border-color: #64a0eb;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.title-input-group input::placeholder {
  color: #c2c2c2;
}
.image-export-section {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.image-capture-container {
  width: 600px !important;
  height: auto !important;
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  background: #fff !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px;
  padding-top: 0;
}
.image-capture-container .capture-info-header {
  width: 100%;
  color: #000;
  padding: 16px 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.image-capture-container .capture-info-header .info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.image-capture-container .capture-info-header .info-left .lineup-title-info {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}
.image-capture-container .capture-info-header .info-left .formation-info {
  font-size: 18px;
  font-family: "Montserrat", monospace;
  color: #64a0eb;
}
.image-capture-container .capture-info-header .info-right {
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.image-capture-container .capture-info-header .info-right img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.image-capture-container .pitch-content {
  aspect-ratio: 0.8;
  width: 100%;
  background: #019B5C;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.image-capture-container .pitch-content .player-slot {
  width: 64px;
  height: 64px;
}
.image-capture-container .pitch-content .player-slot .player-avatar {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  shape-rendering: crispEdges;
}
.image-capture-container .pitch-content .slot-indicator {
  font-size: 14px;
}
.image-capture-container .pitch-content .slot-indicator.has-player {
  font-size: 18px;
}
.image-capture-container .pitch-content .player-name {
  font-size: 22px;
}
.image-capture-container .pitch-content .goal-lines.outer-line {
  width: 50%;
  height: 20%;
}
.image-capture-container .pitch-content .goal-lines.inner-line {
  width: 20%;
  height: 8%;
}
.player-selection-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: 660px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  overflow: hidden;
}
.player-selection-panel .panel-header {
  padding: 16px;
  background: #fbfbfb;
  border-bottom: 1px solid #e7e7e7;
}
.player-selection-panel .panel-header h3,
.player-selection-panel .panel-header h4 {
  margin: 0;
  color: #333;
}
.position-tabs {
  display: flex;
  border-bottom: 1px solid #e7e7e7;
}
.tab-btn {
  flex: 1;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-family: "Montserrat", monospace !important;
}
.tab-btn:hover {
  background: #fbfbfb;
}
.tab-btn.active {
  background: #efefef;
  color: #333;
  border-bottom-color: #333;
  font-weight: bold;
}
.tab-btn .plus-icon {
  width: 14px;
  height: 14px;
}
.player-list {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.position-players[data-position] {
  display: none;
}
.position-players[data-position]:first-child {
  display: block;
}
.player-card {
  padding: 12px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.player-card:hover {
  background-color: #e7e7e7;
}
.player-card.selected {
  background-color: #f0f6fd;
  border-color: #64a0eb;
}
.player-card.custom {
  position: relative;
}
.card-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  background: #003f98;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5b913;
  font-weight: bold;
  font-size: 10px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .card-avatar {
    width: 40px;
    height: 40px;
  }
}
.card-number {
  font-size: 14px;
  font-family: "Montserrat", monospace;
}
.card-info {
  flex: 1;
}
.card-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
  font-size: 14px;
}
.custom-input-section {
  margin-bottom: 12px;
}
.input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-group input {
  background-color: #FFF;
  color: #333;
}
.custom-name-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}
.custom-name-input:focus {
  border-color: #64a0eb;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.custom-name-input::placeholder {
  color: #c2c2c2;
}
.btn-add-custom {
  width: 36px;
  height: 36px;
  background: #f0f6fd;
  border: none;
  border-radius: 50%;
  color: #64a0eb;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-add-custom:hover {
  background: #e0ecfb;
}
.btn-add-custom .plus-icon {
  width: 16px;
  height: 16px;
}
.btn-remove-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  color: #adadad;
  width: 18px;
  height: 18px;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s ease;
}
.btn-remove-custom:hover {
  transform: translateY(-50%) scale(1.1);
}
.custom-players-list {
  overflow-y: auto;
}
.custom-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  opacity: 0.7;
}
.custom-empty-state p {
  color: #999999;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
  font-size: 14px;
}
@media (max-width: 767px) {
  .custom-empty-state p {
    font-size: 16px;
  }
}
.custom-players-list:empty + .custom-empty-state {
  display: flex;
}
.mobile-custom-players-list:empty + .custom-empty-state {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
}
.pitch-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  background: #019B5C;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  user-select: none;
  transition: all 0.3s ease;
}
.pitch-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.goal-lines {
  display: inline-block;
  position: absolute;
  border: 4px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  transform: translate(-50%,0%);
  left: 50%;
  bottom: -1%;
  z-index: 1;
}
.goal-lines.outer-line {
  width: 50%;
  height: 20%;
}
.goal-lines.inner-line {
  width: 20%;
  height: 8%;
}
.outer-circle {
  width: 100px;
  height: 20px;
  position: absolute;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
}
.outer-circle svg {
  display: block;
  width: 100%;
  height: 100%;
}
.outer-circle svg circle {
  stroke: rgba(255,255,255,0.1);
}
.watermark-logo img {
  width: 80px;
  position: absolute;
  right: 5%;
  bottom: 3%;
  opacity: 0.3;
}
.players-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.player-slot {
  position: absolute;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.2s ease;
  transform: translate(-50%,-50%);
  z-index: 5;
}
@media (min-width: 768px) {
  .player-slot {
    width: 64px;
    height: 64px;
  }
}
.player-slot:hover {
  transform: translate(-50%,-50%) scale(1.1);
}
.player-slot.selected {
  filter: drop-shadow(0 0 2px #fff);
}
@media (min-width: 768px) {
  .player-slot.selected {
    filter: drop-shadow(0 0 4px #fff);
  }
}
.player-slot .player-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  color: #f5b913;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}
.player-slot .player-avatar .uniform-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.player-slot .player-avatar .slot-indicator {
  position: relative;
  z-index: 2;
}
.player-slot .player-avatar.gk-uniform {
  position: relative;
  color: #71002c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}
.player-slot .player-avatar.gk-uniform .uniform-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.player-slot .player-avatar.gk-uniform .slot-indicator {
  position: relative;
  z-index: 2;
}
.player-slot.filled .player-avatar {
  position: relative;
  color: #f5b913;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}
.player-slot.filled .player-avatar .uniform-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.player-slot.filled .player-avatar .slot-indicator {
  position: relative;
  z-index: 2;
}
.player-slot.filled .player-avatar.gk-uniform {
  position: relative;
  color: #71002c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}
.player-slot.filled .player-avatar.gk-uniform .uniform-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.player-slot.filled .player-avatar.gk-uniform .slot-indicator {
  position: relative;
  z-index: 2;
}
.player-slot.selected .player-avatar {
  overflow: visible;
}
.player-name {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 4px;
  font-size: 16px;
  white-space: nowrap;
  pointer-events: none;
}
.slot-indicator {
  font-family: "Montserrat", monospace;
  font-size: 14px;
  font-weight: bold;
  color: #f5b913;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.slot-indicator .plus-icon {
  width: 18px;
  height: 18px;
}
.slot-indicator.has-player {
  font-size: 14px;
}
@media (min-width: 768px) {
  .slot-indicator.has-player {
    font-size: 18px;
  }
}
.slot-indicator.has-player:empty {
  border-radius: 3px;
  min-width: 16px;
  min-height: 16px;
}
.gk-uniform .slot-indicator {
  color: #71002c;
}
.player-slot:not(.filled) .slot-indicator {
  opacity: 0.8;
}
.plus-icon {
  display: inline-block;
  vertical-align: middle;
}
.tab-btn .plus-icon,
.mobile-tab-btn .plus-icon {
  width: 14px;
  height: 14px;
}
.btn-add-custom .plus-icon {
  width: 16px;
  height: 16px;
}
.floating-btn-add .plus-icon {
  width: 20px;
  height: 20px;
}
.player-slot.dragging {
  opacity: 0.5;
  transform: translate(-50%,-50%) scale(1.1);
  z-index: 999;
  pointer-events: none;
}
@media (max-width: 767px) {
  h2 {
    margin-bottom: 20px;
  }
  .lineup-builder {
    padding: 0 20px;
    margin-bottom: 8em;
  }
  .lineup-container {
    flex-direction: column;
    gap: 20px;
  }
  .player-selection-panel.desktop-only {
    display: none;
  }
  .pitch-container {
    aspect-ratio: 0.75;
    max-width: 100%;
  }
  .goal-lines.outer-line {
    width: 60%;
    height: 20%;
  }
  .goal-lines.inner-line {
    width: 25%;
    height: 8%;
  }
  .watermark-logo img {
    width: 72px;
    position: absolute;
    right: 6%;
    bottom: 3%;
    opacity: 0.3;
  }
  .controls-panel {
    margin-bottom: 16px;
  }
  .lineup-management-panel {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
  }
  .lineup-actions {
    gap: 20px;
  }
  .load-section,
  .save-section {
    flex-direction: column;
    gap: 12px;
  }
  .load-section select,
  .save-section select {
    min-width: auto;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
  }
  .btn-load,
  .btn-save,
  .btn-delete {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    text-align: center;
  }
  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .action-buttons .btn-save,
  .action-buttons .btn-list {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    text-align: center;
  }
  .lineup-title-section {
    flex-direction: column;
  }
  .title-input-group {
    width: 100%;
  }
  .image-export-section {
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }
  .title-input-group input {
    font-size: 16px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .btn-export-preview,
  .btn-export-download {
    flex: 1;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
  }
  .formation-selector .select-wrapper {
    width: 100%;
  }
  .formation-selector select {
    min-width: 100%;
    font-size: 16px;
    padding-right: 60px;
  }
  .formation-selector .dropdown-icon {
    right: 20px;
    width: 18px;
    height: 18px;
  }
  .player-name {
    font-size: 14px;
  }
  .position-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  .tab-btn {
    min-width: 64px;
    min-height: 40px;
    font-size: 14px;
    padding: 12px 16px;
  }
  .player-card {
    padding: 16px;
    margin-bottom: 12px;
    min-height: 60px;
  }
  .btn-reset {
    min-height: 44px;
    padding: 8px 0;
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .mobile-player-panel-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: #FFF;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 21;
    border-radius: 20px 20px 0 0;
    transition: all 0.5s ease;
  }
  .mobile-player-panel-fixed.keyboard-hidden {
    transform: translateY(100%);
  }
  .mobile-player-panel-fixed.keyboard-resized {
    max-height: 40vh;
  }
}
@media (min-width: 768px) {
  .mobile-player-panel-fixed {
    display: none;
  }
}
.mobile-position-tabs-container {
  overflow-x: auto;
  padding: 16px 0;
  border-bottom: 1px solid #efefef;
  -webkit-overflow-scrolling: touch;
}
.mobile-position-tabs-container::-webkit-scrollbar {
  display: none;
}
.mobile-position-tabs {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  min-width: min-content;
}
.mobile-tab-btn {
  padding: 4px 8px;
  background: #fbfbfb;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
  min-width: 60px;
  min-height: 40px;
  color: #999999;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  text-align: center;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-tab-btn:hover,
.mobile-tab-btn:active {
  background: #efefef;
}
.mobile-tab-btn.active {
  background: #e7e7e7;
  color: #333;
  font-weight: bold;
}
.mobile-tab-btn .plus-icon {
  width: 16px;
  height: 16px;
}
.mobile-player-sections {
  overflow: hidden;
  flex: 1;
}
.mobile-position-section {
  display: none;
  flex-direction: column;
  height: 100%;
}
.mobile-position-section[data-position="FW"] {
  display: flex;
}
.mobile-player-list {
  display: flex;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-player-list::-webkit-scrollbar {
  display: none;
}
.mobile-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  padding: 8px;
  border: 1px solid transparent;
}
.mobile-player-card.selected {
  background-color: #f0f6fd;
  border: 1px solid #64a0eb;
}
.mobile-card-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  background: #003f98;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5b913;
  font-weight: bold;
  font-size: 10px;
  flex-shrink: 0;
}
.mobile-card-info {
  text-align: center;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.mobile-card-name {
  font-size: 14px;
  color: #333;
  line-height: 1.2;
  word-break: keep-all;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mobile-custom-players-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 120px;
  position: relative;
}
.mobile-custom-players-list {
  display: flex;
  padding: 8px 16px;
  overflow-x: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.mobile-custom-players-list::-webkit-scrollbar {
  display: none;
}
.mobile-remove-custom {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #999999;
  color: #FFF;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.mobile-custom-floating-input {
  padding: 12px;
  border-top: 1px solid #efefef;
  background: #fbfbfb;
}
.floating-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}
.floating-custom-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  font-size: 16px;
  background: #FFF;
  outline: none;
  transition: border-color 0.3s ease;
}
.floating-custom-input:focus {
  border-color: #64a0eb;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.floating-custom-input::placeholder {
  color: #c2c2c2;
}
.floating-btn-add {
  width: 40px;
  height: 40px;
  background: #64a0eb;
  border: none;
  border-radius: 50%;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.floating-btn-add:disabled {
  background: #d2d2d2;
  cursor: not-allowed;
  transform: none;
}
.floating-btn-add .plus-icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 320px) {
  .mobile-tab-btn {
    min-width: 60px;
    padding: 8px 12px;
    font-size: 10px;
  }
  .mobile-card-avatar {
    width: 40px;
    height: 40px;
    font-size: 8px;
  }
  .mobile-custom-player-card,
  .mobile-player-card {
    min-width: 68px;
  }
}

