/* =================================================
   Match Header Box (Figma style)
   BEM: .match-header-box
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-05-10)
   ================================================= */

/* --- ĐỒNG BỘ STYLE VỚI WEB CHÍNH --- */
.match-header-box {
  background: #fff;
  border: 1px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-family: "Montserrat", sans-serif;
  color: #1A1A1A;
  font-size: 1.6rem;
  width: 100%;
  box-shadow: 1.1rem 0.4rem 0.4rem 0 rgba(0, 0, 0, 0.25);
  border-radius: .8rem;
  overflow: hidden;
}

.match-header-box--general {
  padding: 1.6rem;
}

.match-header-box__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.match-tabs-content .match-header-box__value {
  width: 100%;
}

.match-header-box__label {
  font-weight: 600;
  color: #1A1A1A;
  margin-right: 0.4rem;
  font-size: 1.4rem;
  min-width: 6.5rem;
  display: flex;
  align-items: center;
}

.match-header-box__value {
  color: #1A1A1A;
  font-size: 1.4rem;
  font-weight: 400;
  min-width: 1.2rem;
  position: relative;
}

/* =============================
   Custom select for match-header-box (Special Status, Status, ...)
   ============================= */
.match-header-box__value select,
select.match-header-box__value,
select#match-special-status {
  width: 100%;
  min-width: 10rem;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  border: 1px solid #e5e7eb;
  border-radius: .3rem;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.match-header-box__value select:focus,
select.match-header-box__value:focus,
select#match-special-status:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

/* =============================
   Custom input for match-header-box
   ============================= */
.match-header-box__input,
.js-datetime-picker {
  width: 100%;
  min-width: 10rem;
  padding: 1rem 1.8rem;
  font-size: 1.6rem;
  border: 2px solid #e9ecef;
  border-radius: .3rem;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  appearance: none;
  box-sizing: border-box;
  cursor: pointer;
}

.js-datetime-picker {
  padding-left: 4.4rem;
}

.js-datetime-picker+.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.match-header-box__input:focus,
.js-datetime-picker:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 4px rgba(241, 91, 46, 0.10);
}

.match-header-box__input:hover,
.js-datetime-picker:hover {
  border-color: #adb5bd;
}

.match-header-box__icon--calendar {
  position: absolute;
  left: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5C5B5B;
  pointer-events: none;
  z-index: 1;
}

.match-header-box__input:focus+.match-header-box__icon--calendar,
.js-datetime-picker:focus+.match-header-box__icon--calendar {
  color: #f15b2e;
}

.match-header-box__row {
  position: relative;
}

.match-header-box__divider {
  color: #94a3b8;
  font-size: 1.2rem;
  margin: 0 0.8rem;
}

.match-header-box__link {
  color: #dc2626;
  font-weight: 600;
  margin-left: auto;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1.4rem;
}

.match-header-box__link:hover {
  color: #b91c1c;
}

.match-header-box__edit-link {
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1.6rem;
}

.match-header-box__edit-link:hover {
  color: #1d4ed8;
}

.match-header-box__score {
  color: #64748b;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 1.6rem;
  min-width: 3.2rem;
  text-align: center;
}

.match-header-box__title {
  font-size: 1.8rem;
  line-height: 2;
  font-weight: bold;
}

@media (max-width: 991px) {
  .match-header-box {
    padding: 1.6rem 1.2rem;
    border-radius: 1.2rem;
    gap: 1rem;
    font-size: 1.4rem;
  }

  .match-header-box__score {
    font-size: 1.3rem;
    margin: 0 0.8rem;
  }

  .match-header-box__label,
  .match-header-box__value,
  .match-header-box__edit-link,
  .match-header-box__link {
    font-size: 1.2rem;
  }

  .match-header-box__value select,
  select.match-header-box__value,
  select#match-special-status {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
  }

  .match-header-box__input,
  .js-datetime-picker {
    font-size: 1.2rem;
    padding: 1.2rem 1.4rem 1.2rem 3.6rem;
  }

  .match-header-box__icon--calendar {
    left: 1.2rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .match-header-box__label {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .match-header-box {
    padding: 1rem 0.4rem;
    border-radius: 0.8rem;
    gap: 0.6rem;
    font-size: 1.2rem;
  }

  .match-header-box__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .match-header-box__score {
    font-size: 1.2rem;
    margin: 0 0.4rem;
  }

  .match-header-box__label,
  .match-header-box__value,
  .match-header-box__edit-link,
  .match-header-box__link {
    font-size: 1.2rem;
  }

  .match-header-box__value select,
  select.match-header-box__value,
  select#match-special-status {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
  }

  .match-header-box__input,
  .js-datetime-picker {
    font-size: 1rem;
    padding: 1rem 1rem 1rem 2.8rem;
  }

  .match-header-box__icon--calendar {
    left: 0.8rem;
    width: 1.4rem;
    height: 1.4rem;
  }

  .match-header-box__label {
    font-size: 1rem;
  }
}

/* =================================================
   Match Tabs Sidebar (Figma style)
   BEM: .match-tabs
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-05-10)
   ================================================= */

.match-edit-layout {
  display: flex;
  gap: 1.2rem;
  width: 100%;
  margin-top: 2.4rem;
}

.match-tabs {
  background: #3A3A44;
  border-radius: 0.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  color: #fff;
  font-size: .6rem;
  height: fit-content;
  width: 100%;
  max-width: 20rem;
}

.match-tabs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.match-tabs__item {
  margin: 0;
  border-bottom: 1px solid #f3f4f6;
}

.match-tabs__item:last-child {
  border-bottom: none;
}

.match-tabs__link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.8rem 1rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  outline: none;
}

.match-tabs__link:hover {
  background: #F15B2E;
  color: #fff;
}

.match-tabs__link.is-active {
  background: #F15B2E;
  color: #fff;
}

.match-tabs__icon {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  color: inherit;
}

.match-tabs__label {
  flex: 1 1 auto;
  font-size: 1.4rem;
  white-space: nowrap;
}

.match-tabs-content {
  flex: 1 1 0%;
  min-width: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.match-tabs__panel {
  display: none;
  width: 100%;
}

.match-tabs__panel.is-active {
  display: block;
}

/* Sidebar collapsed state */
.match-tabs.is-collapsed {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  transition: all 0.2s;
}

.match-tabs.is-collapsed .match-tabs__label {
  display: none;
}

.match-tabs.is-collapsed .match-tabs__icon {
  margin-right: 0;
  margin-left: 0;
  display: block;
}

.match-tabs.is-collapsed .match-tabs__link {
  justify-content: center;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

.match-tabs.is-collapsed {
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}

@media (max-width: 991px) {
  .match-tabs.is-collapsed {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
  }
}

@media (max-width: 991px) {
  .match-edit-layout {
    flex-direction: column;
    gap: 1.2rem;
  }

  .match-tabs {
    flex-direction: row;
    min-width: 0;
    max-width: 100%;
    border-radius: 0.8rem;
    padding: 0.8rem 0.4rem;
    font-size: 1.2rem;
    overflow-x: auto;
  }

  .match-tabs__list {
    flex-direction: row;
    width: 100%;
  }

  .match-tabs__item {
    border-bottom: none;
    border-right: 1px solid #f3f4f6;
  }

  .match-tabs__item:last-child {
    border-right: none;
  }

  .match-tabs__link {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
  }

  .match-tabs-content {
    padding: 1.2rem 0.6rem;
    border-radius: 0.8rem;
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .match-tabs {
    font-size: 1rem;
    padding: 0.4rem 0.2rem;
    border-radius: 0.4rem;
  }

  .match-tabs__link {
    padding: 0.6rem 0.6rem;
    font-size: 1rem;
  }

  .match-tabs-content {
    padding: 0.6rem 0.2rem;
    border-radius: 0.4rem;
  }
}


.single-match .page-body {
  flex-direction: column;
}

/* =================================================
   Match Stats Box (Figma style)
   BEM: .match-stats-box
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-12-19)
   ================================================= */

/* Main Container */
.match-stats-box {
  background: #fff;
  border: 1px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
  border-radius: 0.8rem;
  font-family: "Montserrat", sans-serif;
  color: #1A1A1A;
  font-size: 1.6rem;
  width: 100%;
  overflow: hidden;
}

/* Header Section */
.match-stats-box__header {
  background: #fff;
  border-bottom: 1px solid #F15B2E;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: #1A1A1A;
}

.match-stats-box__icon {
  width: 1.6rem;
  height: 1.6rem;
  color: #F15B2E;
  flex-shrink: 0;
}

.match-stats-box__title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}

/* Content Container */
.match-stats-box__content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Options Section (Extra Time & Penalty) */
.match-stats-box__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.6rem;
}

.match-stats-box__option {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 15rem;
}

.match-stats-box__label {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.4rem;
}

.match-stats-box__select {
  width: 100%;
  min-width: 15rem;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.3rem;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.match-stats-box__select:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

/* Table Styles */
.match-stats-box__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.match-stats-box__table th,
.match-stats-box__table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.match-stats-box__table th {
  font-weight: 600;
  color: #1A1A1A;
  background: #f9fafb;
}

.match-stats-box__empty {
  width: 2rem;
  background: transparent;
  border: none;
}

.match-stats-box__team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  border-radius: 0.3rem;
  min-height: 4rem;
}

.match-stats-box__team-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  text-align: center;
  word-break: break-word;
  max-width: 15rem;
}

.match-stats-box__section-header {
  background: #6b7280 !important;
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  font-size: 1.4rem;
  padding: 1.2rem 1rem;
}

/* Input Styles */
.match-stats-box__input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  border: 1px solid #8c8f94;
  border-radius: 0.3rem;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  text-align: center;
  box-sizing: border-box;
}

.match-stats-box__input:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

.match-stats-box__input:hover {
  border-color: #d1d5db;
}

.match-stats-box__input--final-score {
  font-size: 3.2rem;
  font-weight: 700;
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
  padding: 1.2rem;
  text-align: center;
}

.match-stats-box__input--small {
  width: 7rem;
  min-width: 7rem;
  padding: 0.6rem 1rem;
  font-size: 1.4rem;
}

/* Final Score Row */
.match-stats-box__row--final-score {
  background: #f0fdf4;
}

.match-stats-box__row--final-score th {
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
  font-size: 1.6rem;
}

/* Full Time & Extra Time Rows */
.match-stats-box__row--full-time {
  background: #fef3c7;
}

.match-stats-box__row--full-time th {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  font-size: 1.4rem;
}

.match-stats-box__row--extra-time {
  background: #fce7f3;
}

.match-stats-box__row--extra-time th {
  background: #fce7f3;
  color: #be185d;
  font-weight: 600;
  font-size: 1.4rem;
}

.match-stats-box__row--full-time .match-stats-box__input,
.match-stats-box__row--extra-time .match-stats-box__input {
  background: #fff;
  border-color: #d1d5db;
  font-weight: 600;
}

.match-stats-box__row--full-time .match-stats-box__input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.match-stats-box__row--extra-time .match-stats-box__input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.15);
}

/* Penalty Row */
.match-stats-box__row--penalty {
  background: #f3e8ff;
}

.match-stats-box__row--penalty th {
  background: #f3e8ff;
  color: #7c3aed;
  font-weight: 600;
  font-size: 1.4rem;
}

.match-stats-box__row--penalty .match-stats-box__input {
  background: #fff;
  border-color: #d1d5db;
  font-weight: 600;
}

.match-stats-box__row--penalty .match-stats-box__input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

/* JavaScript Enhanced States */
.match-stats-box__input--calculated {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  animation: match-stats-calculated 1s ease-in-out;
}

.match-stats-box__input--error {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
}

.match-stats-box__input--success {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #166534 !important;
}

/* Feedback Messages */
.match-stats-box__feedback {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 0.3rem;
  font-size: 1.4rem;
  font-weight: 500;
  animation: match-stats-feedback 0.3s ease-in-out;
}

.match-stats-box__feedback--info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.match-stats-box__feedback--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.match-stats-box__feedback--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

/* Animations */
@keyframes match-stats-calculated {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes match-stats-feedback {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth transitions for show/hide */
.match-stats-box__row--full-time,
.match-stats-box__row--extra-time {
  transition: opacity 0.3s ease-in-out;
}

/* Hidden state for rows */
.match-stats-box__row--hidden {
  display: none !important;
  opacity: 0;
}

/* Additional Time Section */
.match-stats-box__additional-time {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid #f3f4f6;
}

.match-stats-box__subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0 0 1.2rem 0;
  background: #f9fafb;
  padding: 0.8rem 1.2rem;
  border-radius: 0.3rem;
}

.match-stats-box__additional-time-inputs {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.match-stats-box__additional-time-input {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Info Message */
.match-stats-box__info {
  background: #dbeafe;
  color: #1e40af;
  padding: 1.2rem;
  border-radius: 0.3rem;
  font-size: 1.4rem;
  text-align: center;
  border: 1px solid #93c5fd;
}

/* Responsive Design */
@media (max-width: 991px) {
  .match-stats-box {
    font-size: 1.4rem;
    border-radius: 0.6rem;
  }

  .match-stats-box__header {
    padding: 1rem 1.2rem;
  }

  .match-stats-box__title {
    font-size: 1.4rem;
  }

  .match-stats-box__content {
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .match-stats-box__options {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .match-stats-box__option {
    min-width: auto;
  }

  .match-stats-box__select {
    min-width: auto;
  }

  .match-stats-box__table {
    font-size: 1.3rem;
  }

  .match-stats-box__table th,
  .match-stats-box__table td {
    padding: 0.8rem 0.6rem;
  }

  .match-stats-box__team-name {
    font-size: 1.3rem;
    max-width: 12rem;
  }

  .match-stats-box__input {
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
  }

  .match-stats-box__input--final-score {
    font-size: 2.4rem;
    padding: 1rem;
  }

  .match-stats-box__input--small {
    width: 6rem;
    min-width: 6rem;
  }

  .match-stats-box__additional-time-inputs {
    flex-direction: column;
    gap: 1.2rem;
  }

  /* Full Time & Extra Time responsive */
  .match-stats-box__row--full-time th,
  .match-stats-box__row--extra-time th {
    font-size: 1.3rem;
  }

  /* Penalty responsive */
  .match-stats-box__row--penalty th {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .match-stats-box {
    font-size: 1.2rem;
    border-radius: 0.4rem;
  }

  .match-stats-box__header {
    padding: 0.8rem 1rem;
  }

  .match-stats-box__title {
    font-size: 1.3rem;
  }

  .match-stats-box__content {
    padding: 1rem;
    gap: 1rem;
  }

  .match-stats-box__table {
    font-size: 1.2rem;
  }

  .match-stats-box__table th,
  .match-stats-box__table td {
    padding: 0.6rem 0.4rem;
  }

  .match-stats-box__team-name {
    font-size: 1.2rem;
    max-width: 10rem;
  }

  .match-stats-box__input {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
  }

  .match-stats-box__input--final-score {
    font-size: 2rem;
    padding: 0.8rem;
  }

  .match-stats-box__input--small {
    width: 5rem;
    min-width: 5rem;
  }

  .match-stats-box__label {
    font-size: 1.2rem;
  }

  .match-stats-box__select {
    font-size: 1.2rem;
    padding: 0.8rem 1.2rem;
  }

  .match-stats-box__subtitle {
    font-size: 1.4rem;
    padding: 0.6rem 1rem;
  }

  .match-stats-box__info {
    font-size: 1.2rem;
    padding: 1rem;
  }

  /* Full Time & Extra Time mobile responsive */
  .match-stats-box__row--full-time th,
  .match-stats-box__row--extra-time th {
    font-size: 1.2rem;
  }

  /* Penalty mobile responsive */
  .match-stats-box__row--penalty th {
    font-size: 1.2rem;
  }

  /* JavaScript states mobile responsive */
  .match-stats-box__feedback {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
  }
}

/* =================================================
   Match Lineups Box (Figma style)
   BEM: .match-lineups-box
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-12-19)
   ================================================= */

/* Main Container */
#anwp-fl-players-metabox {
  background: #fff;
  border: 1px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
  border-radius: 0.8rem;
  font-family: "Montserrat", sans-serif;
  color: #1A1A1A;
  font-size: 1.6rem;
  width: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
}

#anwp-fl-players-metabox:hover {
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12);
}

/* Header Section */
#anwp-fl-players-metabox .anwp-border-bottom {
  background: #fff;
  border-bottom: 1px solid #F15B2E;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: #1A1A1A;
}

#anwp-fl-players-metabox .anwp-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: #F15B2E;
  flex-shrink: 0;
}

/* Content Container */
#anwp-fl-players-metabox .px-3 {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Team Sections */
#anwp-fl-players-metabox .anwp-col-xl-6 {
  background: #f9fafb;
  border-radius: 0.6rem;
  padding: 1.6rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

#anwp-fl-players-metabox .anwp-col-xl-6:hover {
  background: #f3f4f6;
  border-color: #F15B2E;
  box-shadow: 0 2px 8px rgba(241, 91, 46, 0.1);
}

/* Team Header */
#anwp-fl-players-metabox .anwp-bg-gray-100 {
  background: #F15B2E !important;
  border: 1px solid #F15B2E !important;
  border-radius: 0.4rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
}

#anwp-fl-players-metabox .anwp-text-gray-800 {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.6rem;
  text-align: center;
  width: 100%;
}

/* Add Player Button */
#anwp-fl-players-metabox .button {
  background: #F15B2E;
  color: #fff;
  border: 2px solid #F15B2E;
  border-radius: 0.4rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.6rem auto;
}

#anwp-fl-players-metabox .button:hover {
  background: #d94a1f;
  border-color: #d94a1f;
  box-shadow: 0 4px 12px rgba(241, 91, 46, 0.3);
}

#anwp-fl-players-metabox .button:active {
  transform: translateY(0);
}

/* Section Headers */
#anwp-fl-players-metabox .anwp-bg-gray-300 {
  background: #F15B2E !important;
  border: 1px solid #F15B2E !important;
  border-radius: 0.4rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  color: #fff !important;
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Player Tables */
#anwp-fl-players-metabox .table-responsive {
  background: #fff;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.6rem;
}

#anwp-fl-players-metabox .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

#anwp-fl-players-metabox .table tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

#anwp-fl-players-metabox .table tr:hover {
  background: #f8fafc;
}

#anwp-fl-players-metabox .table tr:last-child {
  border-bottom: none;
}

#anwp-fl-players-metabox .table td {
  padding: 1rem 0.8rem;
  vertical-align: middle;
  border: none;
}

/* Player Row Styling */
#anwp-fl-players-metabox .anwp-bg-gray-100 {
  background: #fff !important;
}

#anwp-fl-players-metabox .anwp-border-gray-400 {
  border: none !important;
}

/* Drag Handler */
#anwp-fl-players-metabox .anwp-drag-handler {
  cursor: grab;
  transition: all 0.2s ease;
}

#anwp-fl-players-metabox .anwp-drag-handler:hover {
  background: #f3f4f6;
  border-radius: 0.3rem;
}

#anwp-fl-players-metabox .anwp-drag-handler:active {
  cursor: grabbing;
}

/* Position Indicators */
#anwp-fl-players-metabox .anwp-bg-red-400 {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff;
  border-radius: 0.3rem;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#anwp-fl-players-metabox .anwp-bg-orange-400 {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff;
  border-radius: 0.3rem;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#anwp-fl-players-metabox .anwp-bg-green-400 {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #fff;
  border-radius: 0.3rem;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#anwp-fl-players-metabox .anwp-bg-blue-400 {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff;
  border-radius: 0.3rem;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Player Shirt Icon */
#anwp-fl-players-metabox .anwp-fl-icon--shirt {
  width: 4rem;
  height: 4rem;
  fill: #F15B2E;
  transition: all 0.3s ease;
}

#anwp-fl-players-metabox .anwp-fl-icon--shirt:hover {
  fill: #d94a1f;
}

#anwp-fl-players-metabox .anwp-fl-icon--shirt-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1A1A1A;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Player Photos */
#anwp-fl-players-metabox .anwp-h-45 {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F15B2E;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#anwp-fl-players-metabox .anwp-h-45:hover {
  border-color: #d94a1f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Player Names */
#anwp-fl-players-metabox .anwp-text-base {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.4rem;
}

#anwp-fl-players-metabox .anwp-text-xs {
  font-size: 1.2rem;
  color: #6b7280;
}

/* Flags */
#anwp-fl-players-metabox .options__flag {
  display: inline-block;
  width: 1.6rem;
  height: 1.2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0.2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Delete Buttons */
#anwp-fl-players-metabox .anwp-hide-sortable-drag {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#anwp-fl-players-metabox .anwp-hide-sortable-drag:hover {
  background: #dc2626;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

#anwp-fl-players-metabox .anwp-hide-sortable-drag .anwp-icon {
  width: 1.8rem;
  height: 1.8rem;
  color: #fff;
}

/* Coach & Captain Sections */
#anwp-fl-players-metabox .my-3 {
  background: #fff;
  border-radius: 0.4rem;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.6rem;
}

#anwp-fl-players-metabox .d-flex.align-items-center {
  background: #f9fafb;
  border-radius: 0.4rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

#anwp-fl-players-metabox .d-flex.align-items-center:hover {
  background: #f3f4f6;
  border-color: #F15B2E;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 991px) {
  #anwp-fl-players-metabox {
    font-size: 1.4rem;
    border-radius: 0.6rem;
  }

  #anwp-fl-players-metabox .anwp-border-bottom {
    padding: 1rem 1.2rem;
  }

  #anwp-fl-players-metabox .px-3 {
    padding: 1.2rem;
    gap: 1.2rem;
  }

  #anwp-fl-players-metabox .anwp-col-xl-6 {
    padding: 1.2rem;
  }

  #anwp-fl-players-metabox .anwp-text-gray-800 {
    font-size: 1.4rem;
  }

  #anwp-fl-players-metabox .button {
    font-size: 1.3rem;
    padding: 0.8rem 1.6rem;
  }

  #anwp-fl-players-metabox .anwp-bg-gray-300 {
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
  }

  #anwp-fl-players-metabox .table {
    font-size: 1.3rem;
  }

  #anwp-fl-players-metabox .table td {
    padding: 0.8rem 0.6rem;
  }

  #anwp-fl-players-metabox .anwp-h-45 {
    width: 4rem;
    height: 4rem;
  }

  #anwp-fl-players-metabox .anwp-text-base {
    font-size: 1.3rem;
  }

  #anwp-fl-players-metabox .anwp-text-xs {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  #anwp-fl-players-metabox {
    font-size: 1.2rem;
    border-radius: 0.4rem;
  }

  #anwp-fl-players-metabox .anwp-border-bottom {
    padding: 0.8rem 1rem;
  }

  #anwp-fl-players-metabox .px-3 {
    padding: 1rem;
    gap: 1rem;
  }

  #anwp-fl-players-metabox .anwp-col-xl-6 {
    padding: 1rem;
  }

  #anwp-fl-players-metabox .anwp-text-gray-800 {
    font-size: 1.3rem;
  }

  #anwp-fl-players-metabox .button {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }

  #anwp-fl-players-metabox .anwp-bg-gray-300 {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
  }

  #anwp-fl-players-metabox .table {
    font-size: 1.2rem;
  }

  #anwp-fl-players-metabox .table td {
    padding: 0.6rem 0.4rem;
  }

  #anwp-fl-players-metabox .anwp-h-45 {
    width: 3.5rem;
    height: 3.5rem;
  }

  #anwp-fl-players-metabox .anwp-text-base {
    font-size: 1.2rem;
  }

  #anwp-fl-players-metabox .anwp-text-xs {
    font-size: 1rem;
  }

  #anwp-fl-players-metabox .anwp-fl-icon--shirt {
    width: 3.5rem;
    height: 3.5rem;
  }

  #anwp-fl-players-metabox .anwp-fl-icon--shirt-number {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes lineup-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#anwp-fl-players-metabox .anwp-col-xl-6 {
  animation: lineup-fade-in 0.6s ease-out;
}

#anwp-fl-players-metabox .anwp-col-xl-6:nth-child(2) {
  animation-delay: 0.2s;
}

/* Loading States */
#anwp-fl-players-metabox.loading {
  opacity: 0.7;
  pointer-events: none;
}

#anwp-fl-players-metabox.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  border: 2px solid #F15B2E;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* =================================================
   Match Lineups Box (Figma style)
   BEM: .match-lineups-box
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-12-19)
   ================================================= */

/* Teams Container */
.match-lineups-box__teams-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  width: 100%;
}

/* Team Section */
.match-lineups-box__team-section {
  background: #f9fafb;
  border-radius: 0.6rem;
  padding: 1.6rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.match-lineups-box__team-section:hover {
  background: #f3f4f6;
  border-color: #F15B2E;
  box-shadow: 0 2px 8px rgba(241, 91, 46, 0.1);
}

/* Team Header */
.match-lineups-box__team-header {
  background: #F15B2E;
  border: 1px solid #F15B2E;
  border-radius: 0.4rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.match-lineups-box__team-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  width: 100%;
}

/* Add Player Button */
.match-lineups-box__add-player-btn {
  background: #F15B2E;
  color: #fff;
  border: 2px solid #F15B2E;
  border-radius: 0.4rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.6rem auto;
}

.match-lineups-box__add-player-btn:hover {
  background: #d94a1f;
  border-color: #d94a1f;
  box-shadow: 0 4px 12px rgba(241, 91, 46, 0.3);
}

.match-lineups-box__add-player-btn:active {
  transform: translateY(0);
}

.match-lineups-box__add-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: #fff;
}

/* Section Headers */
.match-lineups-box__section-header {
  background: #F15B2E;
  border: 1px solid #F15B2E;
  border-radius: 0.4rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-lineups-box__player-count {
  font-weight: 400;
  opacity: 0.9;
}

/* Table Wrapper */
.match-lineups-box__table-wrapper {
  background: #fff;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.6rem;
}

/* Players Table */
.match-lineups-box__players-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.match-lineups-box__player-row {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
  background: #fff;
}
.match-lineups-box__player-row a {
  text-decoration: none;
}

.match-lineups-box__player-row:hover {
  background: #f8fafc;
}

.match-lineups-box__player-row:last-child {
  border-bottom: none;
}

.match-lineups-box__player-row td {
  padding: 1rem 0.8rem;
  vertical-align: middle;
  border: none;
}

/* Drag Handler */
.match-lineups-box__drag-handler {
  cursor: grab;
  transition: all 0.2s ease;
  text-align: center;
  width: 3rem;
}

.match-lineups-box__drag-handler:hover {
  background: #f3f4f6;
  border-radius: 0.3rem;
}

.match-lineups-box__drag-handler:active {
  cursor: grabbing;
}

.match-lineups-box__drag-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: #6b7280;
}

/* Position Indicators */
.match-lineups-box__position {
  text-align: center;
  width: 1.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.match-lineups-box__position--normal {
  background: linear-gradient(135deg, #656565, #565656);
}

.match-lineups-box__position--goalkeeper {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.match-lineups-box__position--defender {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.match-lineups-box__position--midfielder {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.match-lineups-box__position--forward {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Shirt Cell */
.match-lineups-box__shirt-cell {
  text-align: center;
  width: 5rem;
}

.match-lineups-box__shirt-wrapper {
  position: relative;
  cursor: pointer;
  width: 5rem;
  margin: 0 auto;
}

.match-lineups-box__shirt-icon {
  width: 5rem;
  height: 5rem;
  fill: #F15B2E;
  transition: all 0.3s ease;
}

.match-lineups-box__shirt-wrapper:hover .match-lineups-box__shirt-icon {
  fill: #d94a1f;
}

.match-lineups-box__shirt-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Photo Cell */
.match-lineups-box__photo-cell {
  width: 4.5rem;
  text-align: center;
}

.match-lineups-box__player-photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F15B2E;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-lineups-box__player-photo:hover {
  border-color: #d94a1f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Player Info */
.match-lineups-box__player-info {
  padding: 1rem 0.8rem;
}

.match-lineups-box__player-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.4rem;
}

.match-lineups-box__player-details {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.match-lineups-box__birth-date {
  font-size: 1.2rem;
  color: #6b7280;
}

/* Actions */
.match-lineups-box__actions {
  width: 1rem;
  text-align: center;
}

.match-lineups-box__delete-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-lineups-box__delete-btn:hover {
  background: #dc2626;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.match-lineups-box__delete-icon {
  width: 1.8rem;
  height: 1.8rem;
  color: #fff;
}

/* Coach Section */
.match-lineups-box__coach-section {
  margin-bottom: 1.6rem;
}

.match-lineups-box__coach-wrapper {
  background: #fff;
  border-radius: 0.4rem;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.match-lineups-box__coach-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
}

.match-lineups-box__coach-photo {
  flex-shrink: 0;
}

.match-lineups-box__coach-photo img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F15B2E;
  transition: all 0.3s ease;
}

.match-lineups-box__coach-photo img:hover {
  border-color: #d94a1f;
}

.match-lineups-box__coach-details {
  flex: 1;
}

.match-lineups-box__coach-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.4rem;
}

.match-lineups-box__coach-job {
  font-size: 1.2rem;
  color: #F15B2E;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.match-lineups-box__coach-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Captain Section */
.match-lineups-box__captain-section {
  margin-bottom: 1.6rem;
}

.match-lineups-box__captain-wrapper {
  background: #fff;
  border-radius: 0.4rem;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.match-lineups-box__captain-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
}

.match-lineups-box__captain-shirt {
  position: relative;
  flex-shrink: 0;
}

.match-lineups-box__captain-shirt .match-lineups-box__shirt-icon {
  width: 5rem;
  height: 5rem;
  fill: #F15B2E;
}

.match-lineups-box__captain-shirt .match-lineups-box__shirt-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1A1A1A;
}

.match-lineups-box__captain-photo {
  flex-shrink: 0;
}

.match-lineups-box__captain-photo img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F15B2E;
  transition: all 0.3s ease;
}

.match-lineups-box__captain-photo img:hover {
  border-color: #d94a1f;
}

.match-lineups-box__captain-details {
  flex: 1;
}

.match-lineups-box__captain-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.4rem;
}

.match-lineups-box__captain-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Flags */
.match-lineups-box__flag {
  display: inline-block;
  width: 1.6rem;
  height: 1.2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0.2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Flag styles */
.flag.fr {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="1" height="2" fill="%2300247E"/><rect x="1" width="1" height="2" fill="white"/><rect x="2" width="1" height="2" fill="%23ED2939"/></svg>');
}

.flag.nl {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="3" height="1" fill="%23AE1C28"/><rect y="1" width="3" height="1" fill="white"/><rect y="2" width="3" height="1" fill="%2321468B"/></svg>');
}

.flag.de {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 5 3"><rect width="5" height="1" fill="%23000"/><rect y="1" width="5" height="1" fill="%23DD0000"/><rect y="2" width="5" height="1" fill="%23FFCE00"/></svg>');
}

.flag.it {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="1" height="2" fill="%23009246"/><rect x="1" width="1" height="2" fill="white"/><rect x="2" width="1" height="2" fill="%23CE2B37"/></svg>');
}

.flag.ma {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="3" height="2" fill="%23C1272D"/><polygon points="1.5,0.5 1.8,1.2 1.2,0.8 1.8,0.8 1.2,1.2" fill="%23006233"/></svg>');
}

.flag.sk {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="3" height="1" fill="white"/><rect y="1" width="3" height="1" fill="%2300418E"/><polygon points="0,0 1,0 0.5,1" fill="%23EE1C25"/></svg>');
}

.flag.hn {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="3" height="1" fill="%23007A3D"/><rect y="1" width="3" height="1" fill="white"/><rect y="2" width="3" height="1" fill="%23D21034"/><polygon points="0,0 1,0 0.5,1" fill="%23007A3D"/></svg>');
}

.flag.ru {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="3" height="1" fill="white"/><rect y="1" width="3" height="1" fill="%23003DA5"/><rect y="2" width="3" height="1" fill="%23D52B1E"/></svg>');
}

.flag.gp {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="3" height="2" fill="%23ED2939"/><rect width="1.5" height="2" fill="%2300247E"/><polygon points="0.75,0.5 1.1,0.8 0.9,0.8 1.1,1.1 0.9,1.1 0.75,1.4 0.6,1.1 0.4,1.1 0.6,0.8 0.4,0.8" fill="%23FFD700"/></svg>');
}

/* Responsive Design */
@media (max-width: 991px) {
  .match-lineups-box__teams-container {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .match-lineups-box__team-section {
    padding: 1.2rem;
  }

  .match-lineups-box__team-name {
    font-size: 1.4rem;
  }

  .match-lineups-box__add-player-btn {
    font-size: 1.3rem;
    padding: 0.8rem 1.6rem;
  }

  .match-lineups-box__section-header {
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
  }

  .match-lineups-box__players-table {
    font-size: 1.3rem;
  }

  .match-lineups-box__player-row td {
    padding: 0.8rem 0.6rem;
  }

  .match-lineups-box__player-photo {
    width: 4rem;
    height: 4rem;
  }

  .match-lineups-box__player-name {
    font-size: 1.3rem;
  }

  .match-lineups-box__shirt-icon {
    width: 4rem;
    height: 4rem;
  }

  .match-lineups-box__shirt-number {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .match-lineups-box__teams-container {
    gap: 1.2rem;
  }

  .match-lineups-box__team-section {
    padding: 1rem;
  }

  .match-lineups-box__team-name {
    font-size: 1.3rem;
  }

  .match-lineups-box__add-player-btn {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }

  .match-lineups-box__section-header {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
  }

  .match-lineups-box__players-table {
    font-size: 1.2rem;
  }

  .match-lineups-box__player-row td {
    padding: 0.6rem 0.4rem;
  }

  .match-lineups-box__player-photo {
    width: 3.5rem;
    height: 3.5rem;
  }

  .match-lineups-box__player-name {
    font-size: 1.2rem;
  }

  .match-lineups-box__shirt-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .match-lineups-box__shirt-number {
    font-size: 0.9rem;
  }

  .match-lineups-box__birth-date {
    font-size: 1rem;
  }

  .match-lineups-box__coach-wrapper,
  .match-lineups-box__captain-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .match-lineups-box__coach-info,
  .match-lineups-box__captain-info {
    width: 100%;
  }
}

/* Animations */
@keyframes lineup-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-lineups-box__team-section {
  animation: lineup-fade-in 0.6s ease-out;
}

.match-lineups-box__team-section:nth-child(2) {
  animation-delay: 0.2s;
}

/* Loading States */
.match-lineups-box__teams-container.loading {
  opacity: 0.7;
  pointer-events: none;
}

.match-lineups-box__teams-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  border: 2px solid #F15B2E;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* =================================================
   Add Player Modal (Figma style)
   BEM: .vfm__content, .anwp-vfm-admin-modal__wrapper
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-12-19)
   ================================================= */

/* Modal Overlay */
#add-player-modal.anwp-vfm-admin-modal__wrapper--top {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: modal-fade-in 0.3s ease-out;
  flex-direction: column;
  align-items: stretch;
  padding: 0 10%;
}


/* Modal Header */
.anwp-vfm-admin-modal__title {
  background: #fff;
  border-bottom: 1px solid #F15B2E;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.anwp-vfm-admin-modal__title h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

/* Sort Select */
#player-sort-select {
  padding: 0.6rem 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  background: #fff;
  color: #1A1A1A;
  cursor: pointer;
  transition: border-color 0.2s;
}

#player-sort-select:focus {
  border-color: #F15B2E;
  outline: none;
}

/* Close Button */
.anwp-vfm-admin-modal__close {
  background: #000;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 999;
}

.anwp-vfm-admin-modal__close:hover {
  background: #f3f4f6;
}

.anwp-vfm-admin-modal__close .anwp-icon {
  width: 1.8rem;
  height: 1.8rem;
  color: #6b7280;
  transition: color 0.2s;
}

.anwp-vfm-admin-modal__close:hover .anwp-icon {
  color: #F15B2E;
}

/* Modal Content */
.anwp-vfm-admin-modal__content {
  padding: 2rem;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  background: #fff;
}

/* Two Column Layout */
.d-md-flex {
  display: flex;
  gap: 2rem;
}

.col-md-6 {
  flex: 1;
}

.col-md-6.bg-light {
  background: #f9fafb;
  border-radius: 0.6rem;
  padding: 1.6rem;
  border: 1px solid #e5e7eb;
}

/* Current Lineup Section */
.anwp-bg-gray-200 {
  background: #F15B2E !important;
  color: #fff !important;
  border: 1px solid #F15B2E !important;
  border-radius: 0.4rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Player Lists */
#starting-lineup-list,
#substitutes-list {
  margin-bottom: 1.6rem;
}

/* Player Items */
.py-1.px-2.mb-1 {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.py-1.px-2.mb-1:hover {
  border-color: #F15B2E;
  box-shadow: 0 2px 4px rgba(241, 91, 46, 0.1);
}

/* Position Badges */
.anwp-w-30 {
  width: 3rem;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 0.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  height: -webkit-fill-available;
}

.anwp-bg-red-400 {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.anwp-bg-orange-400 {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
}

.anwp-bg-green-400 {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.anwp-bg-blue-400 {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

/* Player Names */
.px-3.anwp-text-base {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  flex: 1;
}

/* Tab System */
.anwp-fl-tabs-wrapper {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.anwp-tab-item {
  flex: 1;
  padding: 1.2rem 1.6rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 0.4rem 0.4rem 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.anwp-tab-item:hover {
  background: #f3f4f6;
  border-color: #F15B2E;
}

.anwp-tab-item.anwp-tab-item--active {
  background: #F15B2E;
  border-color: #F15B2E;
  color: #fff;
}

.anwp-tab-item .anwp-text-base {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.anwp-tab-item .anwp-text-xs {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Player Source Dropdown */
.v-select.vs--single.vs--unsearchable {
  margin-bottom: 2rem;
}

.vs__dropdown-toggle {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vs__dropdown-toggle:hover {
  border-color: #F15B2E;
}

.vs__selected-options {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vs__selected {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
}

.vs__search {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.4rem;
  color: #1A1A1A;
  width: 100%;
}

.vs__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vs__open-indicator {
  font-size: 1.2rem;
  color: #6b7280;
  transition: transform 0.2s;
}

.vs__dropdown-toggle:hover .vs__open-indicator {
  color: #F15B2E;
}

/* Player Source Dropdown Content */
#player-source-dropdown {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  margin-top: 0.4rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#player-source-dropdown hr {
  margin: 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

#player-source-select-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.4rem;
  color: #1A1A1A;
  cursor: pointer;
}

#player-source-select-input:focus {
  background: #f9fafb;
}

/* Temp Player Form */
#temp-player-tab {
  padding: 1.6rem;
  background: #f9fafb;
  border-radius: 0.6rem;
  border: 1px solid #e5e7eb;
}

.form-group {
  margin-bottom: 1.6rem;
}

.form-group label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.8rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  color: #1A1A1A;
  background: #fff;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #F15B2E;
  outline: none;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.1);
}

/* Modal Actions */
.anwp-vfm-admin-modal__actions {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anwp-vfm-admin-modal__actions .mr-2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
}

#append-to-select {
  padding: 0.6rem 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  background: #fff;
  color: #1A1A1A;
  cursor: pointer;
  transition: border-color 0.2s;
}

#append-to-select:focus {
  border-color: #F15B2E;
  outline: none;
}

/* Close Button in Actions */
#close-add-player-btn,
#save-add-player-btn {
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
  margin: 0 5px !important;
}

#close-add-player-btn:hover {
  background: #4b5563;
}

/* Animations */
@keyframes modal-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes modal-slide-in {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  #add-player-modal.vfm__content {
    width: 95%;
    max-width: none;
  }

  .anwp-vfm-admin-modal__content {
    padding: 1.6rem;
  }

  .d-md-flex {
    flex-direction: column;
    gap: 1.6rem;
  }

  .col-md-6.bg-light {
    padding: 1.2rem;
  }

  .anwp-vfm-admin-modal__title {
    padding: 1.2rem 1.6rem;
  }

  .anwp-vfm-admin-modal__title h4 {
    font-size: 1.6rem;
  }

  .anwp-fl-tabs-wrapper {
    flex-direction: column;
    gap: 0.2rem;
  }

  .anwp-tab-item {
    border-radius: 0.4rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .anwp-tab-item:last-child {
    border-bottom: 1px solid #e5e7eb;
  }

  .anwp-vfm-admin-modal__actions {
    padding: 1.2rem 1.6rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .anwp-vfm-admin-modal__actions>div {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  #add-player-modal.vfm__content {
    width: 98%;
    margin: 1rem;
  }

  .anwp-vfm-admin-modal__content {
    padding: 1.2rem;
    max-height: calc(90vh - 150px);
  }

  .anwp-vfm-admin-modal__title {
    padding: 1rem 1.2rem;
  }

  .anwp-vfm-admin-modal__title h4 {
    font-size: 1.4rem;
  }

  .col-md-6.bg-light {
    padding: 1rem;
  }

  .anwp-bg-gray-200 {
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
  }

  .py-1.px-2.mb-1 {
    padding: 0.6rem 1rem;
  }

  .anwp-w-30 {
    width: 2.5rem;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
  }

  .px-3.anwp-text-base {
    font-size: 1.3rem;
  }

  .anwp-tab-item {
    padding: 1rem 1.2rem;
  }

  .anwp-tab-item .anwp-text-base {
    font-size: 1.3rem;
  }

  .anwp-tab-item .anwp-text-xs {
    font-size: 1.1rem;
  }

  .vs__dropdown-toggle {
    padding: 0.8rem 1rem;
  }

  .vs__selected {
    font-size: 1.3rem;
  }

  .form-group label {
    font-size: 1.3rem;
  }

  .form-control {
    font-size: 1.3rem;
    padding: 0.8rem 1rem;
  }

  .anwp-vfm-admin-modal__actions {
    padding: 1rem 1.2rem;
  }

  .anwp-vfm-admin-modal__actions .mr-2 {
    font-size: 1.3rem;
  }

  #append-to-select {
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
  }

  #close-add-player-btn {
    font-size: 1.3rem;
    padding: 0.6rem 1.2rem;
  }
}

/* =================================================
   Select Captain Modal (Figma style)
   BEM: #select-captain-modal
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-12-19)
   ================================================= */

/* Modal Overlay */
#select-captain-modal.anwp-vfm-admin-modal__wrapper--top {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: modal-fade-in 0.3s ease-out;
  flex-direction: column;
  align-items: stretch;
  padding: 0 15%;
}

/* Captain Player Items */
.captain-player-item {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.captain-player-item:hover {
  border-color: #F15B2E;
  box-shadow: 0 4px 12px rgba(241, 91, 46, 0.15);
}

.captain-player-item.selected {
  border-color: #F15B2E;
  background: linear-gradient(135deg, #fff5f2, #ffe8e0);
  box-shadow: 0 6px 16px rgba(241, 91, 46, 0.2);
}

/* Captain Player Position */
.captain-player-position {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Captain Player Photo */
.captain-player-photo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.captain-player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.captain-player-item:hover .captain-player-photo {
  border-color: #d94a1f;
}

.captain-player-item:hover .captain-player-photo img {
}

/* Captain Player Info */
.captain-player-info {
  flex: 1;
  min-width: 0;
}

.captain-player-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.captain-player-details {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  color: #6b7280;
}

/* Captain Player Shirt */
.captain-player-shirt {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.captain-player-shirt svg {
  width: 4rem;
  height: 3.5rem;
  fill: #F15B2E;
  transition: all 0.3s ease;
}

.captain-player-item:hover .captain-player-shirt svg {
  fill: #d94a1f;
}

.captain-player-shirt-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1A1A1A;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* =================================================
   Select Coach Modal (Figma style)
   BEM: #select-coach-modal
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-12-19)
   ================================================= */

/* Modal Overlay */
#select-coach-modal.anwp-vfm-admin-modal__wrapper--top {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: modal-fade-in 0.3s ease-out;
  flex-direction: column;
  align-items: stretch;
  padding: 0 10%;
}

/* Coach Source Tabs */
.coach-source-tabs {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0.6rem 0.6rem 0 0;
  overflow: hidden;
  flex-wrap: wrap;
}

.coach-tab-item {
  flex: 1;
  min-width: 200px;
  padding: 1.2rem 1.4rem;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.coach-tab-item:hover {
  background: #f3f4f6;
}

.coach-tab-item.coach-tab-item--active {
  background: #F15B2E;
  color: #fff;
  box-shadow: 0 2px 8px rgba(241, 91, 46, 0.3);
}
.coach-tab-item.coach-tab-item--active .coach-tab-subtitle
 {
    color: #fff;
}


.coach-tab-item.coach-tab-item--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #F15B2E;
}

.coach-tab-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.coach-tab-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  line-height: 1.3;
}

/* Coach Tab Content */
.coach-tab-content {
  display: none;
  animation: tab-fade-in 0.3s ease-out;
}

.coach-tab-content.active {
  display: block;
}

/* Coach Items */
.coach-item {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 0.8rem;
  padding: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.coach-item:hover {
  border-color: #F15B2E;
  box-shadow: 0 4px 12px rgba(241, 91, 46, 0.15);
}

.coach-item.selected {
  border-color: #F15B2E;
  background: linear-gradient(135deg, #fff5f2, #ffe8e0);
  box-shadow: 0 6px 16px rgba(241, 91, 46, 0.2);
}

/* Coach Photo */
.coach-photo {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.coach-item:hover .coach-photo {
  border-color: #d94a1f;
}

.coach-item:hover .coach-photo img {
}

/* Coach Info */
.coach-info {
  flex: 1;
  min-width: 0;
}

.coach-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.coach-job {
  font-size: 1.4rem;
  color: #F15B2E;
  font-weight: 600;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coach-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  color: #6b7280;
}

/* Temp Coach Form */
#temp-coach-tab {
  padding: 2rem;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border-radius: 0.8rem;
  border: 1px solid #e5e7eb;
}

#temp-coach-tab .form-group {
  margin-bottom: 2rem;
}

#temp-coach-tab .form-group label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 1rem;
  display: block;
}

#temp-coach-tab .form-control {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.6rem;
  font-size: 1.5rem;
  color: #1A1A1A;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#temp-coach-tab .form-control:focus {
  border-color: #F15B2E;
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 91, 46, 0.1);
}

#temp-coach-tab .form-control:hover {
  border-color: #d1d5db;
}

#add-temp-coach-btn {
  background: linear-gradient(135deg, #F15B2E, #d94a1f);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  padding: 1.4rem 2rem;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(241, 91, 46, 0.3);
}

#add-temp-coach-btn:hover {
  background: linear-gradient(135deg, #d94a1f, #b83a1a);
  box-shadow: 0 6px 12px rgba(241, 91, 46, 0.4);
}

#add-temp-coach-btn:active {
  transform: translateY(0);
}

/* Select Container */
.select-captain-container,
.select-coach-container {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.6rem;
  border: 1px solid #e5e7eb;
}

/* No Players/Coaches Message */
.no-players-message,
.no-coaches-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
  font-size: 1.6rem;
  font-weight: 500;
}

.no-players-message p,
.no-coaches-message p {
  margin: 0;
  line-height: 1.5;
}

/* Animations */
@keyframes tab-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes item-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.captain-player-item:hover,
.coach-item:hover {
  animation: item-bounce 0.6s ease-in-out;
}

/* Responsive Design */
@media (max-width: 991px) {
  #select-captain-modal.anwp-vfm-admin-modal__wrapper--top,
  #select-coach-modal.anwp-vfm-admin-modal__wrapper--top {
    padding: 0 5%;
  }

  .captain-player-item,
  .coach-item {
    padding: 1rem;
    gap: 1rem;
  }

  .captain-player-photo {
    width: 4rem;
    height: 4rem;
  }

  .coach-photo {
    width: 5rem;
    height: 5rem;
  }

  .captain-player-name,
  .coach-name {
    font-size: 1.4rem;
  }

  .coach-job {
    font-size: 1.2rem;
  }

  .captain-player-details,
  .coach-details {
    font-size: 1.2rem;
    gap: 0.6rem;
  }

  .coach-source-tabs {
    flex-direction: column;
    gap: 0.2rem;
  }

  .coach-tab-item {
    border-radius: 0.4rem;
    margin-bottom: 0.2rem;
    min-width: auto;
  }

  .coach-tab-item.coach-tab-item--active::after {
    display: none;
  }

  #temp-coach-tab {
    padding: 1.5rem;
  }

  #temp-coach-tab .form-control {
    font-size: 1.4rem;
    padding: 1rem 1.4rem;
  }

  #add-temp-coach-btn {
    font-size: 1.4rem;
    padding: 1.2rem 1.8rem;
  }
}

@media (max-width: 600px) {
  #select-captain-modal.anwp-vfm-admin-modal__wrapper--top,
  #select-coach-modal.anwp-vfm-admin-modal__wrapper--top {
    padding: 0 2%;
  }

  .captain-player-item,
  .coach-item {
    padding: 0.8rem;
    gap: 0.8rem;
    flex-direction: column;
    text-align: center;
  }

  .captain-player-photo {
    width: 3.5rem;
    height: 3.5rem;
  }

  .coach-photo {
    width: 4.5rem;
    height: 4.5rem;
  }

  .captain-player-name,
  .coach-name {
    font-size: 1.3rem;
  }

  .coach-job {
    font-size: 1.1rem;
  }

  .captain-player-details,
  .coach-details {
    font-size: 1.1rem;
    justify-content: center;
  }

  .captain-player-shirt {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .captain-player-shirt svg {
    width: 3.5rem;
    height: 3rem;
  }

  .coach-source-tabs {
    margin-bottom: 1.5rem;
  }

  .coach-tab-item {
    padding: 1rem 1.2rem;
  }

  .coach-tab-title {
    font-size: 1.3rem;
  }

  .coach-tab-subtitle {
    font-size: 1.1rem;
  }

  #temp-coach-tab {
    padding: 1.2rem;
  }

  #temp-coach-tab .form-group {
    margin-bottom: 1.5rem;
  }

  #temp-coach-tab .form-group label {
    font-size: 1.3rem;
  }

  #temp-coach-tab .form-control {
    font-size: 1.3rem;
    padding: 0.8rem 1.2rem;
  }

  #add-temp-coach-btn {
    font-size: 1.3rem;
    padding: 1rem 1.6rem;
  }

  .select-captain-container,
  .select-coach-container {
    max-height: 50vh;
    padding: 0.8rem;
  }

  .no-players-message,
  .no-coaches-message {
    padding: 2rem 1.5rem;
    font-size: 1.4rem;
  }
}

/* Loading Message */
.loading-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #F15B2E;
  font-size: 1.6rem;
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* =================================================
   Media Tab Styles
   ================================================= */

/* Media preview styles */
.media-preview {
  margin-top: 1rem;
}

.media-item {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 1rem;
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 0.3rem;
  padding: 0.5rem;
  background: #f9fafb;
}

.media-item img {
  display: block;
  border-radius: 0.2rem;
}

.media-item .btn {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0;
}

/* Gallery preview styles */
.gallery-preview {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 0.3rem;
  padding: 0.5rem;
  background: #f9fafb;
  max-width: 200px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0.2rem;
}

.gallery-item .btn {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0;
}

/* Additional videos styles */
.additional-video-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  background: #f9fafb;
  overflow: hidden;
}

.additional-video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.additional-video-header h4 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
}

.additional-video-content {
  padding: 1.5rem;
}

/* Helper text styles */
.match-header-box__helper {
  display: block;
  font-size: 1.2rem;
  color: #6b7280;
  margin-top: 0.3rem;
  font-style: italic;
}

/* Textarea styles */
.match-header-box__textarea {
  width: 100%;
  min-width: 10rem;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  border: 2px solid #e9ecef;
  border-radius: 0.3rem;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  resize: vertical;
  min-height: 8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.match-header-box__textarea:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

.match-header-box__textarea:hover {
  border-color: #F15B2E;
}

/* Button styles for media upload */
.btn-secondary {
  background: #6b7280;
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 0.3rem;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: #4b5563;
  color: #fff;
}

.btn-secondary:active {
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

/* Responsive styles for media tab */
@media (max-width: 991px) {
  .media-item,
  .gallery-item {
    max-width: 150px;
  }
  
  .additional-video-header {
    padding: 0.8rem 1rem;
  }
  
  .additional-video-header h4 {
    font-size: 1.3rem;
  }
  
  .additional-video-content {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  .media-item,
  .gallery-item {
    max-width: 120px;
  }
  
  .gallery-preview {
    gap: 0.5rem;
  }
  
  .additional-video-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .additional-video-header h4 {
    font-size: 1.2rem;
  }
  
  .additional-video-content {
    padding: 0.8rem;
  }
  
  .match-header-box__textarea {
    font-size: 1.3rem;
    padding: 0.8rem 1.2rem;
  }
}

/* ========================================
   MISSING PLAYERS TAB STYLES
   ======================================== */

/* Missing Players Container */
#anwp-fl-missing-match-metabox {
  background: #fff;
  border: 1px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
  border-radius: 0.8rem;
  font-family: "Montserrat", sans-serif;
  color: #1A1A1A;
  font-size: 1.6rem;
  width: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
}

#anwp-fl-missing-match-metabox:hover {
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12);
}

/* Header Section */
#anwp-fl-missing-match-metabox .match-stats-box__header {
  background: #fff;
  border-bottom: 1px solid #F15B2E;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: #1A1A1A;
}

#anwp-fl-missing-match-metabox .match-stats-box__icon {
  width: 1.6rem;
  height: 1.6rem;
  color: #F15B2E;
  flex-shrink: 0;
}

#anwp-fl-missing-match-metabox .match-stats-box__title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}

/* Content Container */
#anwp-fl-missing-match-metabox .match-stats-box__content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Team Sections */
#anwp-fl-missing-match-metabox .anwp-col-xl-6 {
  background: #f9fafb;
  border-radius: 0.6rem;
  padding: 1.2rem;
  transition: all 0.3s ease;
  animation: lineup-fade-in 0.6s ease-out;
}

#anwp-fl-missing-match-metabox .anwp-col-xl-6:nth-child(2) {
  animation-delay: 0.1s;
}

#anwp-fl-missing-match-metabox .anwp-col-xl-6:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Team Header */
#anwp-fl-missing-match-metabox .anwp-bg-gray-100 {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
  text-align: center;
}

#anwp-fl-missing-match-metabox .anwp-bg-gray-100:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#anwp-fl-missing-match-metabox .anwp-text-gray-800 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  text-align: center;
}

/* Add Player Button */
#anwp-fl-missing-match-metabox .button {
  background: linear-gradient(135deg, #F15B2E 0%, #e53e3e 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 2px 4px rgba(241, 91, 46, 0.2);
  text-decoration: none;
  font-family: inherit;
}

#anwp-fl-missing-match-metabox .button:hover {
  background: linear-gradient(135deg, #e53e3e 0%, #dc2626 100%);
  box-shadow: 0 4px 8px rgba(241, 91, 46, 0.3);
  color: white;
  text-decoration: none;
}

#anwp-fl-missing-match-metabox .button:active {
  box-shadow: 0 2px 4px rgba(241, 91, 46, 0.2);
}

/* Table Styles */
#anwp-fl-missing-match-metabox .table-responsive {
  background: white;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 1.2rem;
}

#anwp-fl-missing-match-metabox .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  background: white;
}

#anwp-fl-missing-match-metabox .table tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

#anwp-fl-missing-match-metabox .table tr:hover {
  background: #f8fafc;
}

#anwp-fl-missing-match-metabox .table tr:last-child {
  border-bottom: none;
}

#anwp-fl-missing-match-metabox .table td {
  padding: 1.2rem 0.8rem;
  vertical-align: middle;
  border: none;
}

/* Table Header */
#anwp-fl-missing-match-metabox .anwp-bg-gray-300 {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  font-weight: 600;
  color: #1e293b;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Drag Handler */
#anwp-fl-missing-match-metabox .anwp-drag-handler {
  cursor: grab;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 0.4rem;
  transition: all 0.3s ease;
  padding: 0.4rem;
}

#anwp-fl-missing-match-metabox .anwp-drag-handler:hover {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

#anwp-fl-missing-match-metabox .anwp-drag-handler:active {
  cursor: grabbing;
}

/* Position Badge */
#anwp-fl-missing-match-metabox .anwp-bg-blue-400 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white;
  font-weight: 700;
  border-radius: 0.4rem;
  padding: 0.6rem 0.8rem;
  font-size: 1.2rem;
  text-align: center;
  min-width: 3rem;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

#anwp-fl-missing-match-metabox .anwp-bg-blue-400:hover {
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

/* Player Info */
#anwp-fl-missing-match-metabox .anwp-text-base {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

#anwp-fl-missing-match-metabox .anwp-text-xs {
  font-size: 1.2rem;
  color: #64748b;
  margin-top: 0.4rem;
}

/* Form Controls */
#anwp-fl-missing-match-metabox .missing-reason {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1.3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  background: white;
  color: #1e293b;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.anwp-icon path {
  fill: #fff;
}

#anwp-fl-missing-match-metabox .missing-reason:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

#anwp-fl-missing-match-metabox .missing-reason:hover {
  border-color: #9ca3af;
}

#anwp-fl-missing-match-metabox .missing-comment {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  background: white;
  color: #1e293b;
  font-family: inherit;
  resize: vertical;
  min-height: 6rem;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#anwp-fl-missing-match-metabox .missing-comment:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

#anwp-fl-missing-match-metabox .missing-comment:hover {
  border-color: #9ca3af;
}

/* Delete Button */
#anwp-fl-missing-match-metabox .delete-missing-player {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

#anwp-fl-missing-match-metabox .delete-missing-player:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

#anwp-fl-missing-match-metabox .delete-missing-player .anwp-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: white;
  transition: all 0.3s ease;
}

/* Modal Styles */
#missing-player-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: modal-fade-in 0.3s ease-out;
}

#missing-player-modal .modal-content {
  background: white;
  border-radius: 0.8rem;
  max-width: 60rem;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modal-slide-in 0.3s ease-out;
}

#missing-player-modal .modal-header {
  background: linear-gradient(135deg, #F15B2E 0%, #e53e3e 100%);
  color: white;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e53e3e;
}

#missing-player-modal .modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

#missing-player-modal .modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

#missing-player-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#missing-player-modal .modal-body {
  padding: 2rem;
  max-height: 64vh;
  overflow-y: auto;
}

#missing-player-modal .modal-footer {
  background: #f8fafc;
  padding: 1.6rem 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Search Input */
#missing-player-search {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.4rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: white;
  color: #1e293b;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#missing-player-search:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

#missing-player-search:hover {
  border-color: #9ca3af;
}

/* Players List */
#missing-players-list {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: white;
  max-height: 30rem;
  overflow-y: auto;
  margin-top: 1rem;
}

.player-item {
  padding: 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.player-item:hover {
  background: #f8fafc;
  transform: translateX(4px);
}

.player-item:last-child {
  border-bottom: none;
}

.player-position {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 3rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.player-item:hover .player-position {
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.player-info {
  flex: 1;
}

.player-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.4;
}

.player-position-name {
  font-size: 1.2rem;
  color: #64748b;
  margin-top: 0.2rem;
}

/* No Players Message */
#missing-players-list .p-4 {
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-style: italic;
  font-size: 1.4rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  #anwp-fl-missing-match-metabox {
    font-size: 1.4rem;
  }
  
  #anwp-fl-missing-match-metabox .match-stats-box__header {
    padding: 1rem 1.2rem;
  }
  
  #anwp-fl-missing-match-metabox .match-stats-box__title {
    font-size: 1.4rem;
  }
  
  #anwp-fl-missing-match-metabox .match-stats-box__content {
    padding: 1.2rem;
  }
  
  #anwp-fl-missing-match-metabox .anwp-col-xl-6 {
    padding: 1rem;
  }
  
  #anwp-fl-missing-match-metabox .anwp-text-gray-800 {
    font-size: 1.3rem;
  }
  
  #anwp-fl-missing-match-metabox .button {
    font-size: 1.3rem;
    padding: 0.8rem 1.6rem;
  }
  
  #anwp-fl-missing-match-metabox .table {
    font-size: 1.3rem;
  }
  
  #anwp-fl-missing-match-metabox .table td {
    padding: 1rem 0.6rem;
  }
  
  #anwp-fl-missing-match-metabox .anwp-text-base {
    font-size: 1.3rem;
  }
  
  #anwp-fl-missing-match-metabox .anwp-text-xs {
    font-size: 1.1rem;
  }
  
  #missing-player-modal .modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  #missing-player-modal .modal-header {
    padding: 1.2rem 1.6rem;
  }
  
  #missing-player-modal .modal-title {
    font-size: 1.6rem;
  }
  
  #missing-player-modal .modal-body {
    padding: 1.6rem;
    max-height: 45vh;
  }
  
  #missing-player-modal .modal-footer {
    padding: 1.2rem 1.6rem;
  }
  
  .player-item {
    padding: 1rem;
    gap: 1rem;
  }
  
  .player-name {
    font-size: 1.3rem;
  }
  
  .player-position-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  #anwp-fl-missing-match-metabox {
    font-size: 1.3rem;
  }
  
  #anwp-fl-missing-match-metabox .match-stats-box__header {
    padding: 0.8rem 1rem;
  }
  
  #anwp-fl-missing-match-metabox .match-stats-box__title {
    font-size: 1.3rem;
  }
  
  #anwp-fl-missing-match-metabox .match-stats-box__content {
    padding: 1rem;
  }
  
  #anwp-fl-missing-match-metabox .anwp-col-xl-6 {
    padding: 0.8rem;
  }
  
  #anwp-fl-missing-match-metabox .anwp-text-gray-800 {
    font-size: 1.2rem;
  }
  
  #anwp-fl-missing-match-metabox .button {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }
  
  #anwp-fl-missing-match-metabox .table {
    font-size: 1.2rem;
  }
  
  #anwp-fl-missing-match-metabox .table td {
    padding: 0.8rem 0.4rem;
  }
  
  #anwp-fl-missing-match-metabox .anwp-text-base {
    font-size: 1.2rem;
  }
  
  #anwp-fl-missing-match-metabox .anwp-text-xs {
    font-size: 1rem;
  }
  
  #anwp-fl-missing-match-metabox .missing-reason,
  #anwp-fl-missing-match-metabox .missing-comment {
    font-size: 1.2rem;
    padding: 0.6rem;
  }
  
  #missing-player-modal .modal-content {
    width: 98%;
    max-height: 90vh;
  }
  
  #missing-player-modal .modal-header {
    padding: 1rem 1.2rem;
  }
  
  #missing-player-modal .modal-title {
    font-size: 1.4rem;
  }
  
  #missing-player-modal .modal-body {
    padding: 1.2rem;
    max-height: 40vh;
  }
  
  #missing-player-modal .modal-footer {
    padding: 1rem 1.2rem;
  }
  
  #missing-player-search {
    font-size: 1.3rem;
    padding: 0.8rem 1rem;
  }
  
  .player-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .player-name {
    font-size: 1.2rem;
  }
  
  .player-position-name {
    font-size: 1rem;
  }
  
  .player-position {
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    min-width: 2.5rem;
  }
}

/* Animation for Missing Players */
@keyframes missing-players-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#anwp-fl-missing-match-metabox {
  animation: missing-players-fade-in 0.6s ease-out;
}

#anwp-fl-missing-match-metabox .anwp-col-xl-6:nth-child(2) {
  animation-delay: 0.1s;
}

/* Loading State */
#anwp-fl-missing-match-metabox.loading {
  position: relative;
  pointer-events: none;
}

#anwp-fl-missing-match-metabox.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  z-index: 10;
}

#anwp-fl-missing-match-metabox.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 3rem;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #F15B2E;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
  transform: translate(-50%, -50%);
}

/* Player Statistics Box - BEM Pattern */
.match-player-stats-box {
  background: #fff;
  border: 1px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
  border-radius: 0.8rem;
  font-family: "Montserrat", sans-serif;
  color: #1A1A1A;
  font-size: 1.6rem;
  width: 100%;
  overflow: hidden;
  margin: 1.6rem 0;
}

.match-player-stats-box__header {
  background: #fff;
  border-bottom: 1px solid #F15B2E;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: #1A1A1A;
}

.match-player-stats-box__icon {
  width: 1.6rem;
  height: 1.6rem;
  color: #F15B2E;
  flex-shrink: 0;
}

.match-player-stats-box__title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}

.match-player-stats-box__content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.match-player-stats-box__team-section {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.match-player-stats-box__team-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  border-radius: 0.6rem;
  min-height: 5rem;
}

.match-player-stats-box__team-logo {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.match-player-stats-box__team-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1A1A1A;
  word-break: break-word;
  max-width: 20rem;
}

.match-player-stats-box__section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.match-player-stats-box__section-header {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1A1A1A;
  padding: 0.8rem 0;
  border-bottom: 2px solid #F15B2E;
  margin: 0;
}

.match-player-stats-box__table-wrapper {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
}

.match-player-stats-box__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  background: #fff;
}

.match-player-stats-box__table th,
.match-player-stats-box__table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  min-height: 5.8rem;
}
.match-player-stats-box__player-row td.match-player-stats-box__player-cell:first-child {
  position: sticky;
  left: 0;
  background: #fff;
}
th.match-player-stats-box__player-header:first-child {
  position: sticky;
  left: 0;
}

.match-player-stats-box__table th {
  font-weight: 600;
  color: #1A1A1A;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.match-player-stats-box__player-header {
  min-width: 20rem;
  font-weight: 600;
  color: #1A1A1A;
}

.match-player-stats-box__stat-header {
  min-width: 8rem;
  max-width: 10rem;
  text-align: center;
}

.match-player-stats-box__stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1A1A1A;
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
}

.match-player-stats-box__player-row {
  transition: background-color 0.2s ease;
}

.match-player-stats-box__player-row:hover {
  background-color: #f9fafb;
}

.match-player-stats-box__player-row:last-child td {
  border-bottom: none;
}

.match-player-stats-box__player-cell {
  padding: 1rem;
  font-weight: 500;
  color: #1A1A1A;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.match-player-stats-box__player-spacer {
  width: 3rem;
  height: 1px;
  background: transparent;
}

.match-player-stats-box__stat-cell {
  padding: 0.8rem;
  text-align: center;
}

.match-player-stats-box__input {
  width: 100%;
  min-width: 6rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  border: 1px solid #8c8f94;
  border-radius: 0.3rem;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  text-align: center;
  box-sizing: border-box;
}

.match-player-stats-box__input:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

.match-player-stats-box__input:hover {
  border-color: #F15B2E;
}

.match-player-stats-box__empty {
  text-align: center;
  padding: 3.2rem 1.6rem;
  color: #6b7280;
  font-size: 1.4rem;
}

.match-player-stats-box__empty p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
  .match-player-stats-box {
    margin: 1.2rem 0;
  }

  .match-player-stats-box__header {
    padding: 1rem 1.2rem;
  }

  .match-player-stats-box__title {
    font-size: 1.4rem;
  }

  .match-player-stats-box__content {
    padding: 1.2rem;
    gap: 1.6rem;
  }

  .match-player-stats-box__team-header {
    padding: 1rem;
    min-height: 4rem;
  }

  .match-player-stats-box__team-logo {
    width: 4rem;
    height: 4rem;
  }

  .match-player-stats-box__team-name {
    font-size: 1.4rem;
    max-width: 15rem;
  }

  .match-player-stats-box__section-header {
    font-size: 1.3rem;
  }

  .match-player-stats-box__table {
    font-size: 1.3rem;
  }

  .match-player-stats-box__table th,
  .match-player-stats-box__table td {
    padding: 0.8rem;
  }

  .match-player-stats-box__player-header {
    min-width: 15rem;
  }

  .match-player-stats-box__stat-header {
    min-width: 6rem;
    max-width: 8rem;
  }

  .match-player-stats-box__stat-label {
    font-size: 1.1rem;
  }

  .match-player-stats-box__input {
    padding: 0.6rem 1rem;
    font-size: 1.3rem;
    min-width: 5rem;
  }
}

@media (max-width: 600px) {
  .match-player-stats-box {
    margin: 0.8rem 0;
  }

  .match-player-stats-box__header {
    padding: 0.8rem 1rem;
  }

  .match-player-stats-box__title {
    font-size: 1.3rem;
  }

  .match-player-stats-box__content {
    padding: 1rem;
    gap: 1.2rem;
  }

  .match-player-stats-box__team-header {
    padding: 0.8rem;
    min-height: 3.5rem;
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .match-player-stats-box__team-logo {
    width: 3.5rem;
    height: 3.5rem;
  }

  .match-player-stats-box__team-name {
    font-size: 1.3rem;
    max-width: none;
  }

  .match-player-stats-box__section-header {
    font-size: 1.2rem;
  }

  .match-player-stats-box__table {
    font-size: 1.2rem;
  }

  .match-player-stats-box__table th,
  .match-player-stats-box__table td {
    padding: 0.6rem;
  }

  .match-player-stats-box__player-header {
    min-width: 12rem;
  }

  .match-player-stats-box__stat-header {
    min-width: 5rem;
    max-width: 6rem;
  }

  .match-player-stats-box__stat-label {
    font-size: 1rem;
  }

  .match-player-stats-box__player-cell {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .match-player-stats-box__player-spacer {
    width: 2rem;
  }

  .match-player-stats-box__input {
    padding: 0.5rem 0.8rem;
    font-size: 1.2rem;
    min-width: 4rem;
  }

  .match-player-stats-box__empty {
    padding: 2.4rem 1rem;
    font-size: 1.3rem;
  }
}

/* =================================================
   Match Formations Box
   BEM: .match-formations-box
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-12-19)
   ================================================= */

.match-formations-box {
  background: #fff;
  border: 1px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-family: "Montserrat", sans-serif;
  color: #1A1A1A;
  font-size: 1.6rem;
  width: 100%;
  box-shadow: 1.1rem 0.4rem 0.4rem 0 rgba(0, 0, 0, 0.25);
  border-radius: .8rem;
  overflow: hidden;
}

.match-formations-box__header {
  background: #fff;
  border-bottom: 1px solid #F15B2E;
  display: flex;
  align-items: center;
  padding: 1.2rem 1.6rem;
  font-weight: 600;
  color: #1A1A1A;
  font-size: 1.4rem;
  position: relative;
}

.match-formations-box__icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.8rem;
  color: #F15B2E;
}

.match-formations-box__title {
  font-weight: 600;
  color: #1A1A1A;
  font-size: 1.4rem;
}

.match-formations-box__content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.match-formations-box__team-section {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  background: #f9fafb;
}

.match-formations-box__team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e5e7eb;
}

.match-formations-box__team-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.match-formations-box__team-name {
  font-weight: 600;
  color: #1A1A1A;
  font-size: 1.6rem;
}

.match-formations-box__section-title {
  font-weight: 600;
  color: #1A1A1A;
  font-size: 1.4rem;
  margin: 0 0 1.2rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e5e7eb;
}

.match-formations-box__colors-section {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.match-formations-box__color-controls {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.match-formations-box__control-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.match-formations-box__label {
  font-weight: 500;
  color: #1A1A1A;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.match-formations-box__select {
  width: 100%;
  min-width: 15rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.3rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.3rem;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.match-formations-box__select:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

.match-formations-box__color-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: flex-start;
}

.match-formations-box__color-input {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 12rem;
}

.match-formations-box__color-input input[type="color"] {
  width: 4rem;
  height: 3rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.3rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.match-formations-box__color-input input[type="color"]:focus {
  border-color: #F15B2E;
  outline: none;
}

.match-formations-box__players-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.match-formations-box__players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  background: #f9fafb;
  min-height: 8rem;
}

.match-formations-box__player-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  background: #fff;
  width: 15rem;
  cursor: grab;
  transition: all 0.2s ease;
  position: relative;
}

.match-formations-box__player-item:hover {
  border-color: #F15B2E;
  box-shadow: 0 2px 8px rgba(241, 91, 46, 0.15);
  transform: translateY(-2px);
}

.match-formations-box__player-item:active {
  cursor: grabbing;
}

.match-formations-box__player-drag {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.match-formations-box__player-item:hover .match-formations-box__player-drag {
  opacity: 1;
}

.match-formations-box__drag-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: #6b7280;
}

.match-formations-box__player-shirt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
}

.match-formations-box__shirt-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: #F15B2E;
}

.match-formations-box__shirt-number {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #F15B2E;
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.match-formations-box__player-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1A1A1A;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

.match-formations-box__field {
  position: relative;
  min-height: 40rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.match-formations-box__field-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 1.2rem;
  position: relative;
  z-index: 1;
  gap: 1rem;
  flex: 1;
}

.match-formations-box__field-line {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  min-height: 6rem;
  padding: 0.8rem;
  border-right: 1px solid #28a745;
  flex: 1;
}

.match-formations-box__field-line:last-child {
  border-right: none;
}

.match-formations-box__field-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  background: #fff;
  width: 15rem;
  cursor: grab;
  transition: all 0.2s ease;
  position: relative;
}

.match-formations-box__field-player:hover {
  border-color: #F15B2E;
  box-shadow: 0 2px 8px rgba(241, 91, 46, 0.15);
}

.match-formations-box__field-player:active {
  cursor: grabbing;
}

.match-formations-box__field-player--empty {
  opacity: 0.6;
  background: #f3f4f6;
}

.match-formations-box__remove-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.match-formations-box__field-player:hover .match-formations-box__remove-btn {
  opacity: 1;
}

.match-formations-box__remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.match-formations-box__remove-icon {
  width: 1.8rem;
  height: 1.8rem;
  color: #fff;
}

.match-formations-box__field-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  max-height: 100%;
}

/* Responsive Design */
@media (max-width: 991px) {
  .match-formations-box {
    font-size: 1.4rem;
  }
  
  .match-formations-box__header {
    padding: 1rem 1.2rem;
  }
  
  .match-formations-box__title {
    font-size: 1.3rem;
  }
  
  .match-formations-box__content {
    padding: 1.2rem;
    gap: 1.8rem;
  }
  
  .match-formations-box__team-section {
    padding: 1.2rem;
    gap: 1.2rem;
  }
  
  .match-formations-box__team-name {
    font-size: 1.4rem;
  }
  
  .match-formations-box__section-title {
    font-size: 1.3rem;
  }
  
  .match-formations-box__color-inputs {
    gap: 1.2rem;
  }
  
  .match-formations-box__color-input {
    min-width: 10rem;
  }
  
  .match-formations-box__players-list {
    gap: 1rem;
    padding: 1rem;
  }
  
  .match-formations-box__player-item {
    width: 12rem;
    padding: 1rem;
  }
  
  .match-formations-box__field {
    min-height: 32rem;
  }
  
  .match-formations-box__field-line {
    min-height: 5rem;
    padding: 0.6rem;
  }
  
  .match-formations-box__field-player {
    width: 12rem;
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  .match-formations-box {
    font-size: 1.3rem;
  }
  
  .match-formations-box__header {
    padding: 0.8rem 1rem;
  }
  
  .match-formations-box__title {
    font-size: 1.2rem;
  }
  
  .match-formations-box__content {
    padding: 1rem;
    gap: 1.4rem;
  }
  
  .match-formations-box__team-section {
    padding: 1rem;
    gap: 1rem;
  }
  
  .match-formations-box__team-name {
    font-size: 1.3rem;
  }
  
  .match-formations-box__section-title {
    font-size: 1.2rem;
  }
  
  .match-formations-box__color-inputs {
    flex-direction: column;
    gap: 1rem;
  }
  
  .match-formations-box__color-input {
    min-width: 100%;
  }
  
  .match-formations-box__players-list {
    gap: 0.8rem;
    padding: 0.8rem;
  }
  
  .match-formations-box__player-item {
    width: 10rem;
    padding: 0.8rem;
  }
  
  .match-formations-box__player-name {
    font-size: 1.1rem;
  }
  
  .match-formations-box__field {
    min-height: 28rem;
  }
  
  .match-formations-box__field-line {
    min-height: 4rem;
    padding: 0.4rem;
  }
  
  .match-formations-box__field-player {
    width: 10rem;
    padding: 0.8rem;
  }
  
  .match-formations-box__remove-btn {
    width: 2rem;
    height: 2rem;
  }
  
  .match-formations-box__remove-icon {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* Loading States */
.match-formations-box.loading {
  position: relative;
  pointer-events: none;
}

.match-formations-box.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.match-formations-box.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #F15B2E;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes formations-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-formations-box {
  animation: formations-fade-in 0.3s ease-out;
}

.match-formations-box__team-section:nth-child(2) {
  animation-delay: 0.1s;
}

/* =================================================
   Match Premium Box (Premium Options Tab)
   BEM: .match-premium-box
   Responsive: PC, Tablet, Mobile
   Author: AI (2024-12-19)
   ================================================= */

.match-premium-box {
  background: #fff;
  border: 1px solid #F15B2E;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-family: "Montserrat", sans-serif;
  color: #1A1A1A;
  font-size: 1.6rem;
  width: 100%;
  box-shadow: 1.1rem 0.4rem 0.4rem 0 rgba(0, 0, 0, 0.25);
  border-radius: .8rem;
  overflow: hidden;
}

.match-premium-box__header {
  background: #fff;
  border-bottom: 1px solid #F15B2E;
  display: flex;
  align-items: center;
  padding: 1.2rem 1.6rem;
  font-weight: 600;
  color: #1A1A1A;
  font-size: 1.4rem;
}

.match-premium-box__icon {
  margin-right: 0.8rem;
  color: #F15B2E;
}

.match-premium-box__title {
  font-weight: 600;
  color: #1A1A1A;
}

.match-premium-box__content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.match-premium-box__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}

.match-premium-box__label {
  font-weight: 600;
  color: #1A1A1A;
  margin-right: 0.4rem;
  font-size: 1.4rem;
  min-width: 12rem;
  display: flex;
  align-items: center;
}

.match-premium-box__select,
.match-premium-box__input {
  width: 100%;
  min-width: 15rem;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  border: 1px solid #e5e7eb;
  border-radius: .3rem;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.match-premium-box__select:focus,
.match-premium-box__input:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

.match-premium-box__select:hover,
.match-premium-box__input:hover {
  border-color: #F15B2E;
}

/* User Search Styles */
.match-premium-box__user-search {
  width: 100%;
  min-width: 15rem;
  position: relative;
}

.match-premium-box__user-input {
  width: 100%;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  border: 1px solid #e5e7eb;
  border-radius: .3rem;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.match-premium-box__user-input:focus {
  border-color: #F15B2E;
  box-shadow: 0 0 0 2px rgba(241, 91, 46, 0.15);
}

.match-premium-box__user-input:hover {
  border-color: #F15B2E;
}

.match-premium-box__spinner {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #F15B2E;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

.match-premium-box__description {
  margin: 0.8rem 0 0 0;
  font-size: 1.2rem;
  color: #6b7280;
  font-style: italic;
}

.match-premium-box__user-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 .3rem .3rem;
  background: #fff;
  max-height: 20rem;
  overflow-y: auto;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.match-premium-box__user-option {
  padding: 1rem 1.6rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.match-premium-box__user-option:hover {
  background: #f9fafb;
}

.match-premium-box__user-option:last-child {
  border-bottom: none;
}

.match-premium-box__user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: #f3f4f6;
  border-radius: .3rem;
  margin-bottom: 0.8rem;
  border: 1px solid #e5e7eb;
}

.match-premium-box__user-name {
  font-weight: 500;
  color: #1A1A1A;
  font-size: 1.3rem;
}

.match-premium-box__user-email {
  font-size: 1.2rem;
  color: #6b7280;
}

.match-premium-box__user-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: .2rem;
  transition: background-color 0.2s;
}

.match-premium-box__user-remove:hover {
  background: #fee2e2;
}

.match-premium-box__no-results,
.match-premium-box__error {
  padding: 1rem 1.6rem;
  color: #6b7280;
  font-style: italic;
  text-align: center;
}

.match-premium-box__error {
  color: #ef4444;
}

/* File Upload Styles */
.match-premium-box__file-upload {
  width: 100%;
  min-width: 15rem;
}

.match-premium-box__upload-btn {
  background: #F15B2E;
  color: #fff;
  border: none;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  border-radius: .3rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
  font-weight: 500;
}

.match-premium-box__upload-btn:hover {
  background: #d1451e;
}

.match-premium-box__upload-btn:active {
  background: #b83d1a;
}

.match-premium-box__file-status {
  margin-top: 1rem;
}

.match-premium-box__file-preview {
  position: relative;
  display: inline-block;
  border: 1px solid #e5e7eb;
  border-radius: .3rem;
  overflow: hidden;
}

.match-premium-box__preview-img {
  max-width: 20rem;
  max-height: 15rem;
  display: block;
  object-fit: cover;
}

.match-premium-box__file-remove {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.match-premium-box__file-remove:hover {
  background: rgba(239, 68, 68, 1);
}

.match-premium-box__loading {
  padding: 1rem;
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 991px) {
  .match-premium-box {
    font-size: 1.4rem;
  }
  
  .match-premium-box__header {
    padding: 1rem 1.2rem;
    font-size: 1.3rem;
  }
  
  .match-premium-box__content {
    padding: 1.2rem;
    gap: 1.6rem;
  }
  
  .match-premium-box__row {
    gap: 1.6rem;
  }
  
  .match-premium-box__label {
    min-width: 10rem;
    font-size: 1.3rem;
  }
  
  .match-premium-box__select,
  .match-premium-box__input,
  .match-premium-box__user-input {
    min-width: 12rem;
    font-size: 1.3rem;
  }
  
  .match-premium-box__preview-img {
    max-width: 15rem;
    max-height: 12rem;
  }
}

@media (max-width: 600px) {
  .match-premium-box {
    font-size: 1.3rem;
  }
  
  .match-premium-box__header {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
  }
  
  .match-premium-box__content {
    padding: 1rem;
    gap: 1.4rem;
  }
  
  .match-premium-box__row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .match-premium-box__label {
    min-width: auto;
    font-size: 1.2rem;
  }
  
  .match-premium-box__select,
  .match-premium-box__input,
  .match-premium-box__user-input {
    min-width: auto;
    font-size: 1.2rem;
  }
  
  .match-premium-box__user-item {
    padding: 0.6rem 1rem;
  }
  
  .match-premium-box__user-name {
    font-size: 1.2rem;
  }
  
  .match-premium-box__user-email {
    font-size: 1.1rem;
  }
  
  .match-premium-box__preview-img {
    max-width: 12rem;
    max-height: 10rem;
  }
  
  .match-premium-box__description {
    font-size: 1.1rem;
  }
}