@charset "UTF-8";
@import "bootstrap-icons/bootstrap-icons.min-5BD67CJ.css";
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900; /* Soporta todos los grosores */
  font-display: swap;
  src: url("../fonts/inter-variable-poxsSdI.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-condensed-v31-latin-regular-ICBUjc0.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-condensed-v31-latin-700-0X36eQZ.woff2") format("woff2");
}
:root {
  --basket-orange: #f59e0b;
  --basket-orange-dark: #ea580c;
  --basket-dark: #111827;
  --basket-light: #fff7ed;
}

#trophy_feature_translations[data-prototype],
#edition_event_translations[data-prototype],
#game_translations[data-prototype],
#photo_translations[data-prototype],
#calendar_model_translations[data-prototype],
#calendar_game_translations[data-prototype],
#calendar_event_translations[data-prototype] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #d97706;
  background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 30%), radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.18), transparent 35%), repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 2px, transparent 3px, transparent 8px), linear-gradient(115deg, transparent 48%, rgba(60, 25, 10, 0.18) 49%, rgba(60, 25, 10, 0.18) 51%, transparent 52%), linear-gradient(-115deg, transparent 48%, rgba(60, 25, 10, 0.12) 49%, rgba(60, 25, 10, 0.12) 51%, transparent 52%), linear-gradient(135deg, #ffb347 0%, #f59e0b 30%, #ea580c 65%, #c2410c 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 12px 12px;
  mix-blend-mode: multiply;
}

/*
|--------------------------------------------------------------------------
| NAVBAR
|--------------------------------------------------------------------------
*/
.main-navbar {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
.main-navbar .navbar-logo {
  height: 64px;
  width: auto;
}
.main-navbar .brand-text {
  color: white;
  font-weight: 700;
  line-height: 1.1;
  font-size: 1.2rem;
}
.main-navbar .navbar-collapse {
  flex-grow: 0;
}
.main-navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.main-navbar .navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
}
.main-navbar .nav-item-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.7rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}
.main-navbar .nav-item-link::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: linear-gradient(90deg, var(--basket-orange), var(--basket-orange-dark));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.main-navbar .nav-item-link:hover, .main-navbar .nav-item-link:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  text-decoration: none;
}
.main-navbar .nav-item-link:hover::before, .main-navbar .nav-item-link:focus-visible::before {
  transform: scaleX(1);
}
.main-navbar .nav-item-link.dropdown-toggle {
  padding-right: 0.85rem;
}
.main-navbar .nav-item-link.dropdown-toggle::after {
  margin-left: 0.2em;
  vertical-align: 0.12em;
  border-top-width: 0.32em;
  border-right-width: 0.22em;
  border-left-width: 0.22em;
  opacity: 0.6;
  transition: opacity 0.18s ease, transform 0.2s ease;
}
.main-navbar .nav-item-link.dropdown-toggle:hover::after, .main-navbar .nav-item-link.dropdown-toggle[aria-expanded=true]::after {
  opacity: 1;
}
.main-navbar .nav-item-link.dropdown-toggle[aria-expanded=true]::after {
  transform: rotate(-180deg);
}
.main-navbar .nav-item-admin {
  color: var(--basket-orange);
}
.main-navbar .nav-item-admin::before {
  background: linear-gradient(90deg, var(--basket-orange), #fbbf24);
}
.main-navbar .nav-item-admin:hover, .main-navbar .nav-item-admin:focus-visible {
  color: var(--basket-orange);
  background: rgba(245, 158, 11, 0.09);
}
.main-navbar .nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 1.05rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  background: linear-gradient(135deg, var(--basket-orange), var(--basket-orange-dark));
  color: white;
}
.main-navbar .nav-auth-btn:hover {
  opacity: 0.85;
  color: white;
}
.main-navbar .nav-auth-btn.nav-auth-btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}
.main-navbar .nav-auth-btn.nav-auth-btn--ghost:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.65);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.main-navbar .navbar-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 180px;
  padding-left: 1.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.main-navbar .user-email {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.main-navbar .lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.main-navbar .lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.2s ease;
}
.main-navbar .lang-btn img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.main-navbar .lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}
.main-navbar .lang-btn.active-lang {
  background: rgba(255, 255, 255, 0.22);
}
.main-navbar .dropdown-menu {
  border-radius: 14px;
  border: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 0.4rem;
  min-width: 13rem;
}
.main-navbar .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: #1f2937;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-navbar .dropdown-item i {
  color: var(--basket-orange-dark);
  font-size: 0.85rem;
}
.main-navbar .dropdown-item:hover {
  background: rgba(234, 88, 12, 0.07);
  color: var(--basket-orange-dark);
}
.main-navbar .dropdown-menu-admin {
  background: rgba(17, 24, 39, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.18);
}
.main-navbar .dropdown-menu-admin .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
}
.main-navbar .dropdown-menu-admin .dropdown-item i {
  color: var(--basket-orange);
}
.main-navbar .dropdown-menu-admin .dropdown-item:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--basket-orange);
}
@media (max-width: 1199.98px) {
  .main-navbar .navbar-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0;
  }
  .main-navbar .navbar-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    padding-bottom: 0.85rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-navbar .nav-item-link {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.92rem;
    justify-content: flex-start;
  }
  .main-navbar .nav-item-link::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: auto;
    width: 3px;
    height: 55%;
    border-radius: 0 2px 2px 0;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
  }
  .main-navbar .nav-item-link:hover::before, .main-navbar .nav-item-link:focus-visible::before {
    transform: translateY(-50%) scaleY(1);
  }
  .main-navbar .nav-item-link.dropdown-toggle[aria-expanded=true]::before {
    transform: translateY(-50%) scaleY(1);
  }
  .main-navbar .nav-auth-btn {
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-top: 0.35rem;
    padding: 0.6rem 1.05rem;
  }
  .main-navbar .dropdown {
    width: 100%;
  }
  .main-navbar .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    border-radius: 10px;
    margin-top: 0.2rem;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
  .main-navbar .dropdown-menu-admin {
    border: 1px solid rgba(245, 158, 11, 0.18);
  }
  .main-navbar .navbar-extra {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    min-width: auto;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
  }
  .main-navbar .user-email {
    max-width: 200px;
  }
}
@media (max-width: 767.98px) {
  .main-navbar .navbar-brand {
    max-width: 100%;
  }
  .main-navbar .brand-text {
    font-size: 1rem;
  }
  .main-navbar .navbar-extra {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .main-navbar .user-email {
    max-width: 220px;
  }
}

/*
|--------------------------------------------------------------------------
| HOME
|--------------------------------------------------------------------------
*/
.home-title {
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.home-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.poster-card {
  overflow: hidden;
  transition: transform 0.25s ease;
}

.edition-poster {
  width: 100%;
  aspect-ratio: 210/297;
  object-fit: cover;
  border-radius: 1rem;
}

.poster-placeholder {
  width: 100%;
  aspect-ratio: 210/297;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--basket-orange), var(--basket-orange-dark));
  color: white;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
}

.home-logo {
  width: 100%;
  max-width: 300px;
  max-height: 260px;
  object-fit: contain;
}

.btn-home {
  background: linear-gradient(135deg, var(--basket-orange), var(--basket-orange-dark));
  color: white;
  border: none;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-home:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  color: white;
}

.btn-home-disabled {
  opacity: 0.75;
}

.btn-home-disabled:hover {
  opacity: 0.9;
}

.countdown-wrapper {
  padding: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-box {
  min-width: 90px;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.countdown-box span {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: #212529;
}
.countdown-box small {
  margin-top: 0.5rem;
  font-size: 0.5rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
}

@media (max-width: 576px) {
  .countdown {
    gap: 0.5rem !important;
  }
  .countdown-box {
    min-width: 70px;
    padding: 0.5rem;
  }
  .countdown-box span {
    font-size: 1rem;
  }
}
.block-penya-la-merla {
  /* LOGO PRINCIPAL */
  /* TEXTO CENTRAL */
  /* BLOQUE PATROCINADORES */
  /* RESPONSIVE */
}
.block-penya-la-merla .penya-card {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 2.5rem;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.block-penya-la-merla .penya-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.block-penya-la-merla .penya-logo img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}
.block-penya-la-merla .penya-content {
  text-align: center;
}
.block-penya-la-merla .penya-content h2 {
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}
.block-penya-la-merla .penya-content .description {
  font-size: 1.05rem;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.5;
}
.block-penya-la-merla .penya-content .years {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #111827;
}
.block-penya-la-merla .penya-partners {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}
.block-penya-la-merla .penya-partners .block h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.75rem;
}
.block-penya-la-merla .penya-partners .divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #d1d5db, transparent);
  margin: 0.5rem 0;
}
.block-penya-la-merla .penya-partners .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.block-penya-la-merla .penya-partners .logos img {
  max-width: 75px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}
.block-penya-la-merla .penya-partners .logos img:hover {
  transform: scale(1.08);
  opacity: 1;
  filter: grayscale(0%);
}
@media (max-width: 992px) {
  .block-penya-la-merla .penya-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }
  .block-penya-la-merla .penya-logo img {
    max-width: 180px;
  }
}
@media (max-width: 576px) {
  .block-penya-la-merla .penya-card {
    padding: 1.5rem;
  }
  .block-penya-la-merla .penya-content h2 {
    font-size: 1.4rem;
  }
  .block-penya-la-merla .penya-partners .logos img {
    max-width: 65px;
  }
}

/*
|--------------------------------------------------------------------------
| CONTENT
|--------------------------------------------------------------------------
*/
.page-wrapper {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.content-card {
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: visible;
}

.content-inner {
  padding: 2rem;
}

/*
|--------------------------------------------------------------------------
| ALERTS
|--------------------------------------------------------------------------
*/
.alert {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/*
|--------------------------------------------------------------------------
| TABLES
|--------------------------------------------------------------------------
*/
.table-responsive {
  border-radius: 1rem;
}
.table-responsive .table {
  border-radius: 1rem;
  overflow: hidden;
}
.table-responsive .table thead {
  background: var(--basket-dark);
  color: white;
  border: none;
}

.table-sort-link {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.table-sort-link:hover {
  color: #fde68a;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

/*
|--------------------------------------------------------------------------
| GAMES
|--------------------------------------------------------------------------
*/
.game-result .bi-info-circle-fill {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}
@media (max-width: 767.98px) {
  .game-team-name {
    font-size: 0.85rem;
  }
  .game-result {
    font-size: 1.15rem;
  }
}
/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/
.btn {
  border-radius: 0.8rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--basket-orange-dark);
  border-color: var(--basket-orange-dark);
}
.btn-primary:hover {
  background: var(--basket-orange);
  border-color: var(--basket-orange);
}

/*
|--------------------------------------------------------------------------
| FORMS
|--------------------------------------------------------------------------
*/
.form-control,
.form-select {
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 0.2rem rgba(251, 146, 60, 0.2);
}

/*
|--------------------------------------------------------------------------
| CARDS
|--------------------------------------------------------------------------
*/
.card {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
  border-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| PAGINATION
|--------------------------------------------------------------------------
*/
.pagination .page-link {
  border-radius: 0.75rem;
  margin: 0 0.15rem;
  border: 0;
  color: var(--basket-dark);
  font-weight: 600;
}
.pagination .active .page-link {
  background: var(--basket-orange);
  border-color: var(--basket-orange);
}

/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/
.navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.navbar-brand span {
  color: #fdba74;
}
.navbar-brand .navbar-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}
.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}
.navbar-brand .brand-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/*
|--------------------------------------------------------------------------
| MODAL
|--------------------------------------------------------------------------
*/
.modal.modal-delete .modal-header {
  background-color: var(--basket-orange-dark);
}

/*
|--------------------------------------------------------------------------
| TOM-SELECT
|--------------------------------------------------------------------------
*/
.ts-wrapper {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
  display: block;
  width: 100%;
}
.ts-wrapper.focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.ts-control {
  border: none !important;
  box-shadow: none !important;
  padding: 0.375rem 0.75rem;
  min-height: calc(1.5em + 0.75rem + 2px);
}

.ts-dropdown {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  z-index: 2000 !important;
}
.ts-dropdown .option {
  padding: 0.5rem 0.75rem;
}

/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/
.site-footer {
  background: #111827;
  color: #e5e7eb;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer .row {
  --bs-gutter-x: 0;
}
.site-footer .footer-brand .footer-logo {
  width: 192px;
  height: 192px;
  object-fit: contain;
}
.site-footer .footer-description {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
}
.site-footer .footer-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li {
  margin-bottom: 0.75rem;
}
.site-footer .footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: 0.2s ease;
}
.site-footer .footer-links a:hover {
  color: white;
}
.site-footer .footer-contact a {
  color: #d1d5db;
  text-decoration: none;
  transition: 0.2s ease;
}
.site-footer .footer-contact a:hover {
  color: white;
}
.site-footer .footer-contact i {
  color: #fbbf24;
}
.site-footer .footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
}
.site-footer .footer-copy {
  color: #9ca3af;
  font-size: 0.9rem;
}
.site-footer .legal-page {
  max-width: 900px;
  line-height: 1.8;
  font-size: 1rem;
}
.site-footer .legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.site-footer .legal-page p {
  color: #374151;
}
.site-footer .legal-page li {
  color: #374151;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {
  .content-card .content-inner .bg-danger .small {
    font-size: 0.6rem;
  }
}
@media (max-width: 991px) {
  .navbar-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .navbar-actions .btn {
    width: 100%;
  }
  .content-inner {
    padding: 0.5rem 0.25rem;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
  .navbar-brand .navbar-logo {
    width: 42px;
    height: 42px;
  }
  .navbar-brand .brand-text {
    font-size: 1rem;
  }
}
/* =========================
   FILTRO ALFABÉTICO
   ========================= */
.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.alpha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 7px;
  background: white;
  color: #374151;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.alpha-btn:hover {
  border-color: var(--basket-orange);
  color: var(--basket-orange);
}
.alpha-btn.alpha-btn--active {
  background: var(--basket-orange);
  border-color: var(--basket-orange);
  color: white;
}

/* =========================
   GALERÍA DE FOTOS
   ========================= */
.photo-gallery-grid .gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(145deg, #ea580c, #f7f9fc);
  transition: all 0.25s ease;
  overflow: hidden;
}
.photo-gallery-grid .gallery-card::before {
  content: "📷";
  position: absolute;
  font-size: 4rem;
  opacity: 0.3;
  transform: rotate(-10deg);
  left: 10px;
  bottom: 5px;
  pointer-events: none;
}
.photo-gallery-grid .gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.1);
}
.photo-gallery-grid .gallery-card .title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.5rem;
}
.photo-gallery-grid .gallery-card .subtitle {
  font-size: 0.85rem;
  color: #6b7280;
}
.photo-gallery-grid .gallery-card .badge-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.2);
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}
.photo-gallery-grid .gallery-card--success::before {
  content: "👥";
}
.photo-gallery-grid .gallery-card--success .badge-count {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  border-color: rgba(25, 135, 84, 0.2);
}
.photo-gallery-grid .gallery-card--secondary::before {
  content: "🗂️";
}
.photo-gallery-grid .gallery-card--secondary .badge-count {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border-color: rgba(108, 117, 125, 0.2);
}

.photo-unpublished {
  opacity: 0.55;
  filter: grayscale(0.6);
  border: 2px dashed #ffc107;
  position: relative;
}

.photo-unpublished:hover {
  opacity: 1;
  filter: none;
}

/* Partit de prova: només el veu la taula, i ha de distingir-se d'un partit de veritat. */
.game-sample {
  opacity: 0.7;
  background-image: repeating-linear-gradient(45deg, rgba(255, 193, 7, 0.08) 0, rgba(255, 193, 7, 0.08) 10px, transparent 10px, transparent 20px);
}

.game-sample:hover {
  opacity: 1;
}

/* =========================
   RESPONSIVE TABLE SYSTEM
   ========================= */
/*
 * Un único sistema para todas las tablas de pantalla del proyecto.
 *
 * En escritorio una tabla es una tabla. Por debajo de 768 px cada fila se convierte en una
 * ficha: la primera celda la titula y las demás ponen la etiqueta a la izquierda y el valor
 * a la derecha, en la misma línea.
 *
 * Antes convivían cuatro sistemas y el genérico daba a cada celda un bloque de 72 px de alto
 * con la etiqueta encima, así que una fila de cinco columnas ocupaba media pantalla de móvil.
 *
 * La fila es un flex que envuelve, y de ahí salen las dos disposiciones sin depender de la
 * posición de cada celda: una celda normal ocupa el ancho completo y salta de línea; las
 * marcadas como `cell--tile` comparten línea y quedan en cuadritos. Los `nth-child` que
 * hacían esto antes se rompían en cuanto una columna era condicional.
 *
 * Modificadores de celda:
 *   .cell--wide    ancho completo con la etiqueta encima (resultados, marcadores)
 *   .cell--tile    cifra en cuadrito, para clasificaciones
 *   .actions-cell  botones, al pie de la ficha
 */
@media (min-width: 768px) {
  .responsive-table-wrapper {
    overflow-x: auto;
    border-radius: 1rem;
  }
}

.responsive-table {
  width: 100%;
}
@media (max-width: 767.98px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table,
  .responsive-table tbody {
    display: block;
    width: 100%;
  }
  .responsive-table tr {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
  .responsive-table > tbody > tr > td {
    --bs-table-bg-type: transparent !important;
    --bs-table-accent-bg: transparent !important;
  }
  .responsive-table td {
    display: flex;
    flex: 1 1 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    min-height: 0;
    min-width: 0;
    padding: 0.4rem 0.85rem;
    border: 0 !important;
    text-align: left !important;
  }
  .responsive-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
  }
  .responsive-table td .cell-content {
    min-width: 0;
    color: #212529;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
  }
  .responsive-table td + td {
    border-top: 1px solid #f1f3f5 !important;
  }
  .responsive-table td:first-child {
    padding: 0.55rem 0.85rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb !important;
  }
  .responsive-table td:first-child::before {
    display: none;
  }
  .responsive-table td:first-child .cell-content {
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
  }
  .responsive-table td.cell--optional:not(:has(> .cell-content)) {
    display: none;
  }
  .responsive-table td.cell--wide {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .responsive-table td.cell--wide .cell-content {
    text-align: center;
  }
  .responsive-table td.cell--rank {
    flex: 0 0 3rem;
    padding: 0.55rem 0.3rem 0.55rem 0.85rem;
  }
  .responsive-table td.cell--rank + td {
    flex: 1 1 calc(100% - 3rem);
    padding: 0.55rem 0.85rem 0.55rem 0.3rem;
    background: #f8f9fa;
    border-top: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
  .responsive-table td.cell--rank + td::before {
    display: none;
  }
  .responsive-table td.cell--rank + td .cell-content {
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
  }
  .responsive-table td.cell--tile {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.1rem;
    min-width: 2.4rem;
    padding: 0.5rem 0.2rem;
  }
  .responsive-table td.cell--tile::before {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .responsive-table td.cell--tile .cell-content {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
  }
  .responsive-table td.cell--tile + td.cell--tile {
    border-left: 1px solid #f1f3f5 !important;
  }
  .responsive-table td.actions-cell {
    padding: 0.55rem 0.85rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb !important;
  }
  .responsive-table td.actions-cell::before {
    display: none;
  }
  .responsive-table td.actions-cell .cell-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
  }
  .responsive-table tr > td[colspan] {
    background: #fff;
    border: 0 !important;
    text-align: center !important;
  }
  .responsive-table tr > td[colspan]::before {
    display: none;
  }
}

/* =========================
   EQUIPACIONS
   ========================= */
/*
 * La muestra lleva borde propio porque sin él una equipación blanca desaparece sobre el fondo
 * de la tabla. Es la misma razón por la que el acta pinta un borde tenue en sus badges.
 */
.kit-swatch {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--kit-color, transparent);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0.35rem;
  vertical-align: middle;
}

.kit-swatch--undeclared {
  position: relative;
  background: #fff;
}
.kit-swatch--undeclared::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(0, 0, 0, 0.35) calc(50% - 1px), rgba(0, 0, 0, 0.35) calc(50% + 1px), transparent calc(50% + 1px));
}

.kit-swatches {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
}

.kit-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.kit-field .form-check {
  margin-bottom: 0;
}
.kit-field .kit-field__color {
  flex: 0 0 auto;
  width: 3rem;
  height: 2.25rem;
  padding: 0.15rem;
}

.kit-field--undeclared .kit-field__color {
  opacity: 0.35;
  filter: grayscale(1);
}

@media (min-width: 768px) {
  .header-actions {
    width: auto !important;
  }
}
/*
|--------------------------------------------------------------------------
| ON LIVE
|--------------------------------------------------------------------------
*/
html.on_live, body.on_live {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--basket-dark);
}

body.on_live {
  color: white;
  font-family: sans-serif;
}

.live-page {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--basket-dark);
}
.live-page__header {
  flex: 0 0 auto;
  background: var(--basket-orange-dark);
  padding: 0.5rem 1rem;
  border-bottom: 2px solid var(--basket-orange);
}
.live-page__header h1 {
  margin: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}
.live-page__content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
@media (max-width: 767px) {
  .live-page__content {
    flex-direction: column;
  }
}
.live-page__left, .live-page__right {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0.5rem;
}
.live-page__left {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0.5rem;
}
.live-page__right {
  width: 60%;
  display: flex;
}
@media (max-width: 767px) {
  .live-page__left, .live-page__right {
    width: 100%;
  }
}

.group-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.group-card__header {
  flex: 0 0 auto;
  background: var(--basket-orange-dark);
  color: white;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem;
}

.group-table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: clamp(0.7rem, 0.75vw, 1.4rem);
}
.group-table .col-pos {
  width: 5%;
}
.group-table .col-team {
  width: 39%;
}
.group-table .col-small {
  width: 8%;
}
.group-table th, .group-table td {
  text-align: center;
  padding: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.group-table th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--basket-orange);
  font-weight: 700;
}
.group-table td {
  color: black;
  background: white;
}
.group-table .team-name {
  text-align: left;
  padding-left: 0.4rem;
}

.timeline {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 0.35rem;
}

.timeline__item {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 90px 200px 1fr;
  align-items: center;
  position: relative;
  gap: 0.5rem;
  padding: clamp(1px, 0.3vh, 0.35rem) clamp(2px, 0.4vw, 0.5rem);
  border-radius: 0.6rem;
  background: white;
  color: black;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: clamp(0.7rem, 0.75vw, 1.4rem);
}
.timeline__item--event {
  grid-template-columns: 90px 1fr;
  background: rgba(245, 158, 11, 0.62);
  border-color: rgba(245, 158, 11, 0.25);
}
.timeline__item--event .timeline__time {
  color: white;
}

.timeline__time {
  font-weight: 700;
  color: var(--basket-orange-dark);
  text-align: center;
}

.timeline__phase {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: black;
  text-align: center;
  border-left: 1px solid black;
  border-right: 1px solid black;
  padding: 0 5px;
}
@media (max-width: 767px) {
  .timeline__phase {
    border-left: none;
    border-right: none;
  }
}

.timeline__teams {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.timeline__team {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: black;
}
.timeline__team--local {
  text-align: right;
}
.timeline__team--visitor {
  text-align: left;
  padding-right: 1.9em;
}
@media (max-width: 767px) {
  .timeline__team--visitor {
    padding-right: 0;
  }
}
.timeline__team--winner {
  font-weight: 800;
}

.timeline__score {
  text-align: center;
  font-weight: 700;
  color: var(--basket-orange-dark);
  white-space: nowrap;
}
.timeline__score--winner {
  font-weight: 900;
  color: darkblue;
}
.timeline__score .bi-info-circle-fill {
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

.timeline__event {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
  color: white;
  text-align: center;
}

/*
 * El acceso al jugada a jugada.
 *
 * Esta pantalla se mira de lejos y lo que importa es el marcador, así que el enlace va
 * apagado. A cambio está siempre en el mismo sitio: en escritorio, un icono flotando sobre el
 * borde derecho de la fila, y en móvil, centrado bajo el partido.
 *
 * En escritorio va fuera del flujo a propósito. Dándole una columna propia le robaba espacio
 * a los equipos, y como el marcador va centrado dentro de esa columna, se desplazaba en todas
 * las filas. Con alto fijo, además, levantaba la altura mínima de las filas que sí tienen
 * seguimiento y las dejaba más altas que el resto.
 *
 * Se mide en `em` para que acompañe al `clamp()` del tamaño de letra de la fila.
 */
.timeline__play_by_play {
  position: absolute;
  top: 50%;
  right: 0.3em;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  padding: 0.28em;
  border-radius: 50%;
  color: rgba(30, 58, 138, 0.55);
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.timeline__play_by_play:hover, .timeline__play_by_play:focus-visible {
  color: #1e3a8a;
  background: rgba(30, 58, 138, 0.12);
}
.timeline__play_by_play .timeline__play_by_play-label {
  display: none;
}

.timeline__item--current {
  border: 4px solid #1e3a8a !important;
  animation: liveBlink 1s infinite;
}

.timeline__item--event.timeline__item--blinking {
  animation: eventBlink 1s infinite;
}

@keyframes liveBlink {
  0%, 100% {
    background: #dbeafe;
    border-color: #1e3a8a;
  }
  50% {
    background: #60a5fa;
    border-color: #172554;
  }
}
@keyframes eventBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@media (max-width: 767px) {
  html.on_live,
  body.on_live {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }
  .live-page {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
  .live-page__content {
    overflow-y: visible;
  }
  .live-page__left,
  .live-page__right {
    height: auto;
    overflow: visible;
  }
  .timeline__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "time phase" "teams teams";
    gap: 0.5rem;
  }
  .timeline__time {
    grid-area: time;
    text-align: center;
  }
  .timeline__phase {
    grid-area: phase;
    text-align: center;
    border-left: none;
    border-right: none;
  }
  .timeline__teams {
    grid-area: teams;
  }
  .timeline__play_by_play {
    position: static;
    transform: none;
    grid-column: 1/-1;
    justify-self: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
  }
  .timeline__play_by_play .timeline__play_by_play-label {
    display: inline;
  }
  .timeline__item--event {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "time event";
  }
  .timeline__item--event .timeline__time {
    grid-area: time;
  }
  .timeline__item--event .timeline__event {
    grid-area: event;
  }
}
/*
|--------------------------------------------------------------------------
| STATISTICS
|--------------------------------------------------------------------------
*/
.statistics-page {
  --basket-orange: #f59e0b;
  --basket-orange-dark: #ea580c;
  --basket-dark: #111827;
  --basket-light: #fff7ed;
}
.statistics-page .statistics-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(17, 24, 39, 0.75);
  font-size: 1.05rem;
}
.statistics-page .statistics-hero-ball {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--basket-orange), var(--basket-orange-dark));
  color: white;
  font-size: 3rem;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.35);
}
.statistics-page .stats-card {
  display: block;
  height: 100%;
  transition: transform 0.25s ease;
}
.statistics-page .stats-card:hover {
  transform: translateY(-6px);
}
.statistics-page .stats-card-inner {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 220px;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
  border: 2px solid transparent;
}
.statistics-page .stats-card-inner h5 {
  font-weight: 800;
  margin-bottom: 0;
  line-height: 1.35;
}
.statistics-page .stats-card-inner::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  top: -60px;
  right: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.statistics-page .stats-card-inner:hover {
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.18);
}
.statistics-page .stats-icon {
  position: relative;
  z-index: 2;
  font-size: 3.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.statistics-page .stats-icon-secondary {
  font-size: 2rem;
  opacity: 0.9;
}
.statistics-page .stats-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 1.4rem;
  opacity: 0.45;
  transition: all 0.2s ease;
}
.statistics-page .stats-card:hover .stats-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.statistics-page .theme-orange {
  background: var(--basket-light);
  border-color: var(--basket-orange);
  color: var(--basket-dark);
}
.statistics-page .theme-orange .stats-icon,
.statistics-page .theme-orange .stats-arrow {
  color: var(--basket-orange);
}
.statistics-page .theme-dark {
  background: var(--basket-dark);
  border-color: var(--basket-orange);
  color: var(--basket-light);
}
.statistics-page .theme-dark .stats-icon,
.statistics-page .theme-dark .stats-arrow {
  color: var(--basket-orange);
}
.statistics-page .theme-orange-dark {
  background: linear-gradient(135deg, var(--basket-orange), var(--basket-orange-dark));
  color: white;
}
.statistics-page .theme-orange-dark .stats-icon,
.statistics-page .theme-orange-dark .stats-arrow {
  color: white;
}
.statistics-page .theme-light {
  background: white;
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--basket-dark);
}
.statistics-page .theme-light .stats-icon,
.statistics-page .theme-light .stats-arrow {
  color: var(--basket-orange-dark);
}
@media (max-width: 767px) {
  .statistics-page .stats-card-inner {
    min-height: 190px;
    padding: 1.5rem 1rem;
  }
  .statistics-page .stats-icon {
    font-size: 2.6rem;
  }
  .statistics-page .stats-icon-secondary {
    font-size: 1.6rem;
  }
  .statistics-page .statistics-hero-ball {
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
  }
}

.repeated-games-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.repeated-games-card {
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
}

.repeated-games-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.68), rgba(234, 88, 12, 0.78));
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}
.repeated-games-header .teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.repeated-games-header .teams .team {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}
.repeated-games-header .teams .team small {
  display: block;
  margin-top: 0.2rem;
  color: rgba(17, 24, 39, 0.65);
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .repeated-games-header .teams .team {
    width: 100%;
    text-align: center;
  }
}
.repeated-games-header .teams .versus {
  font-weight: 800;
  color: #ea580c;
}
@media (max-width: 768px) {
  .repeated-games-header .teams .versus {
    width: 100%;
    text-align: center;
  }
}
.repeated-games-header .summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.repeated-games-header .summary .summary-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.repeated-games-header .summary .summary-item .label {
  font-size: 0.8rem;
  font-weight: 600;
}
.repeated-games-header .summary .summary-item .value {
  font-weight: 800;
}

.repeated-games-table {
  margin-bottom: 0;
}
.repeated-games-table thead {
  background: #111827;
}
.repeated-games-table thead th {
  color: #fff7ed;
  border-color: rgba(255, 247, 237, 0.1);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.repeated-games-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.05);
}
.repeated-games-table tbody tr td {
  vertical-align: middle;
}

.btn-basket-outline {
  border: 1px solid #f59e0b;
  color: #ea580c;
  background: transparent;
  transition: 0.2s ease;
}
.btn-basket-outline:hover, .btn-basket-outline:focus {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #111827;
}

@media (max-width: 768px) {
  .repeated-games-header .teams {
    flex-direction: column;
    align-items: flex-start;
  }
  .repeated-games-header .summary {
    flex-direction: column;
  }
}
.team-page .team-header {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}
.team-page .team-header h1 {
  font-size: 2rem;
  font-weight: 700;
}
.team-page .team-section {
  margin-bottom: 2.5rem;
}
.team-page .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-left: 4px solid #0d6efd;
  padding-left: 0.5rem;
}
.team-page .empty-box {
  padding: 1rem;
  background: #f1f3f5;
  border-radius: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}
.team-page .trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.team-page .trophy-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.team-page .trophy-card .trophy-feature {
  font-weight: 600;
  font-size: 0.9rem;
}
.team-page .trophy-card .trophy-edition {
  font-size: 0.8rem;
  color: #6c757d;
}
.team-page .trophy-card .trophy-owner {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.team-page .edition-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.team-page .edition-badge {
  background: #e9ecef;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.team-page .games-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.team-page .game-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  background: #fff;
}
.team-page .game-date {
  font-size: 0.85rem;
  color: #6c757d;
}
.team-page .game-teams {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.team-page .game-teams .team {
  font-weight: 500;
}
.team-page .game-teams .vs {
  color: #adb5bd;
  font-size: 0.85rem;
}
.team-page .game-teams .is-home {
  font-weight: 700;
}
.team-page .game-teams .is-away {
  opacity: 0.85;
}
.team-page .game-score {
  text-align: right;
}
.team-page .game-score .score {
  font-weight: 700;
}
.team-page .game-score .no-score {
  font-size: 0.85rem;
  color: #adb5bd;
}

/*
|--------------------------------------------------------------------------
| ERROR PAGES
|--------------------------------------------------------------------------
*/
.error-page {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error-card {
  width: 100%;
  max-width: 720px;
  padding: 4rem 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.error-score {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--basket-orange), var(--basket-orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.error-icon {
  font-size: 4rem;
  margin: 1rem 0;
}

.error-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--basket-dark);
  margin-bottom: 1rem;
}

.error-text {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 540px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .error-card {
    padding: 3rem 1.5rem;
  }
  .error-icon {
    font-size: 3rem;
  }
  .error-text {
    font-size: 1rem;
  }
}
/*
|--------------------------------------------------------------------------
| SCORESHEET DIGITAL
|--------------------------------------------------------------------------
*/
.scoresheet-wrapper {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  background: #eef2f5;
  min-height: 100vh;
  padding-bottom: 5px;
  /* GRID DE 3 COLUMNAS */
}
.scoresheet-wrapper .team-panel--local {
  --team-color: var(--team-local-color, #2c3e50);
  --team-text: var(--team-local-text, #2c3e50);
  --team-ink: var(--team-local-ink, #fff);
}
.scoresheet-wrapper .team-panel--visitor {
  --team-color: var(--team-visitor-color, #2c3e50);
  --team-text: var(--team-visitor-text, #2c3e50);
  --team-ink: var(--team-visitor-ink, #fff);
}
.scoresheet-wrapper .log-team {
  color: var(--team-text, #2c3e50);
  font-weight: 600;
}
.scoresheet-wrapper .log-badge {
  background: var(--team-color, #2c3e50) !important;
  color: var(--team-ink, #fff) !important;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.scoresheet-wrapper .log-team--local {
  --team-color: var(--team-local-color, #2c3e50);
  --team-text: var(--team-local-text, #2c3e50);
  --team-ink: var(--team-local-ink, #fff);
}
.scoresheet-wrapper .log-team--visitor {
  --team-color: var(--team-visitor-color, #2c3e50);
  --team-text: var(--team-visitor-text, #2c3e50);
  --team-ink: var(--team-visitor-ink, #fff);
}
.scoresheet-wrapper button:disabled,
.scoresheet-wrapper input:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}
.scoresheet-wrapper .scoresheet-header {
  background: #fff;
  text-align: center;
  border-bottom: 2px solid #ddd;
  padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1020;
}
.scoresheet-wrapper .scoresheet-header .offline-warning {
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  font-weight: bold;
  text-align: center;
  padding: 6px;
  font-size: 1.1rem;
  border-top: 2px solid #dc3545;
  border-bottom: 2px solid #dc3545;
  width: 100%;
}
.scoresheet-wrapper .scoresheet-header .offline-warning .title {
  font-size: 2rem;
  animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0.3;
  }
}
.scoresheet-wrapper .scoresheet-header .header-actions {
  position: absolute;
  top: 15px;
  right: 20px;
}
.scoresheet-wrapper .scoresheet-header .scoreboard {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.scoresheet-wrapper .scoresheet-header .scoreboard .team-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px;
  border-radius: 8px;
  border-bottom: 5px solid var(--team-color, #2c3e50);
  box-shadow: inset 0 -6px 0 -5px rgba(0, 0, 0, 0.25);
}
.scoresheet-wrapper .scoresheet-header .scoreboard .team-chip--local {
  --team-color: var(--team-local-color, #2c3e50);
}
.scoresheet-wrapper .scoresheet-header .scoreboard .team-chip--visitor {
  --team-color: var(--team-visitor-color, #2c3e50);
}
.scoresheet-wrapper .scoresheet-header .scoreboard .team-color-picker {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.scoresheet-wrapper .scoresheet-header .scoreboard .team-color-picker::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.scoresheet-wrapper .scoresheet-header .scoreboard .team-color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}
.scoresheet-wrapper .scoresheet-header .scoreboard .team-color-picker::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}
.scoresheet-wrapper .scoresheet-header .scoreboard .score {
  background: #2c3e50;
  color: white;
  padding: 2px 25px;
  border-radius: 8px;
  border: 2px solid rgb(34.9516129032, 49.25, 63.5483870968);
  min-width: 50px;
}
.scoresheet-wrapper .scoresheet-header .scoreboard .score-divider {
  color: #7f8c8d;
}
.scoresheet-wrapper .scoresheet-header .period-tabs {
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.scoresheet-wrapper .scoresheet-header .period-tabs .btn-period, .scoresheet-wrapper .scoresheet-header .period-tabs .btn-period-add {
  background: white;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
}
.scoresheet-wrapper .scoresheet-header .period-tabs .btn-period.active, .scoresheet-wrapper .scoresheet-header .period-tabs .btn-period-add.active {
  background: #2c3e50;
  color: white;
}
.scoresheet-wrapper .scoresheet-header .period-tabs .btn-period:hover:not(:disabled), .scoresheet-wrapper .scoresheet-header .period-tabs .btn-period-add:hover:not(:disabled) {
  background: rgba(44, 62, 80, 0.1);
}
.scoresheet-wrapper .scoresheet-header .period-tabs .btn-period-add {
  border-style: dashed;
  color: #7f8c8d;
  border-color: #7f8c8d;
}
.scoresheet-wrapper .scoresheet-header .period-tabs .btn-period-ot {
  position: relative;
  padding-right: 25px !important;
}
.scoresheet-wrapper .scoresheet-header .period-tabs .btn-period-ot .btn-delete-ot {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #c0392b;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.scoresheet-wrapper .scoresheet-header .period-tabs .btn-period-ot .btn-delete-ot:hover {
  color: rgb(108.6638297872, 32.2595744681, 24.3361702128);
}
.scoresheet-wrapper .main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: 10px;
  padding: 10px;
  margin: 0 auto;
}
@media (max-width: 1550px) {
  .scoresheet-wrapper .main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .scoresheet-wrapper .main-grid .event-log-container {
    grid-column: span 2;
  }
}
@media (max-width: 768px) {
  .scoresheet-wrapper .main-grid {
    grid-template-columns: 1fr;
  }
  .scoresheet-wrapper .main-grid .event-log-container {
    grid-column: span 1;
  }
}
.scoresheet-wrapper .team-panel {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.scoresheet-wrapper .team-panel .team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--team-color, #2c3e50);
  padding-bottom: 5px;
  margin-bottom: 5px;
}
.scoresheet-wrapper .team-panel .team-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--team-text, #2c3e50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scoresheet-wrapper .team-panel .team-header .team-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scoresheet-wrapper .team-panel .team-header .team-stats .stat-badge {
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  border: 1px solid #ddd;
}
.scoresheet-wrapper .team-panel .team-header .team-stats .stat-badge strong {
  color: #2c3e50;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}
.scoresheet-wrapper .team-panel .team-header .team-stats .stat-badge.team-danger {
  border-color: #c0392b !important;
  background-color: rgba(192, 57, 43, 0.1) !important;
  color: #c0392b !important;
}
.scoresheet-wrapper .team-panel .team-header .team-stats .stat-badge.team-danger strong {
  color: #c0392b !important;
}
.scoresheet-wrapper .team-panel .team-header .team-stats .btn-tm {
  background: #f39c12;
  color: white;
  border: none;
  padding: 5px 12px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
.scoresheet-wrapper .team-panel .team-header .team-stats .btn-tm:hover:not(:disabled) {
  background: rgb(199.8795180723, 126.5060240964, 10.1204819277);
}
.scoresheet-wrapper .team-panel .player-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.scoresheet-wrapper .team-panel .player-list .player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}
.scoresheet-wrapper .team-panel .player-list .player-row.ghost-row {
  background: rgba(0, 0, 0, 0.02);
  border: 1px dashed #ccc;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.scoresheet-wrapper .team-panel .player-list .player-row.coach-row {
  background: rgba(243, 156, 18, 0.1);
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.scoresheet-wrapper .team-panel .player-list .player-row.coach-row .coach-fouls-container .coach-foul-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-weight: bold;
  font-size: 0.85rem;
  border-radius: 4px;
  color: white;
  margin-left: 4px;
  /* Oscuro para Técnicas */
  /* Rojo para Descalificantes */
}
.scoresheet-wrapper .team-panel .player-list .player-row.coach-row .coach-fouls-container .coach-foul-badge.foul-c, .scoresheet-wrapper .team-panel .player-list .player-row.coach-row .coach-fouls-container .coach-foul-badge.foul-b {
  background-color: #343a40;
  border-radius: 50%;
}
.scoresheet-wrapper .team-panel .player-list .player-row.coach-row .coach-fouls-container .coach-foul-badge.foul-d {
  background-color: #c0392b;
}
.scoresheet-wrapper .team-panel .player-list .player-row.coach-row .coach-fouls-container .coach-foul-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 5px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #6c757d;
  margin-left: 2px;
}
.scoresheet-wrapper .team-panel .player-list .player-row .player-info {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 10px);
  flex-grow: 1;
}
.scoresheet-wrapper .team-panel .player-list .player-row .player-info .dorsal-input {
  width: 35px;
  padding: 2px 4px;
  text-align: center;
  border: 2px solid #2c3e50;
  border-radius: 4px;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}
.scoresheet-wrapper .team-panel .player-list .player-row .player-info .dorsal-input::-webkit-outer-spin-button, .scoresheet-wrapper .team-panel .player-list .player-row .player-info .dorsal-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.scoresheet-wrapper .team-panel .player-list .player-row .player-info .dorsal-input[type=number] {
  -moz-appearance: textfield;
}
.scoresheet-wrapper .team-panel .player-list .player-row .player-info .dorsal-input.is-valid {
  border-color: #28a745 !important;
}
.scoresheet-wrapper .team-panel .player-list .player-row .player-info .dorsal-input.is-invalid {
  border-color: #dc3545 !important;
}
.scoresheet-wrapper .team-panel .player-list .player-row .player-info .player-name {
  font-weight: 400;
  font-size: 0.9rem;
  color: #000;
  line-height: 1.1;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .player-fouls-badge {
  --foul-paddle-size: clamp(24px, 2.2vw, 30px);
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  width: var(--foul-paddle-size);
  height: var(--foul-paddle-size);
  margin-right: clamp(3px, 0.6vw, 6px);
  background: #f2f2f2;
  color: #2c3e50;
  border: 2px solid #34495e;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 1vw, 1rem);
  font-weight: bold;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .player-fouls-badge::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(4px, 0.5vw, 6px);
  height: clamp(5px, 0.6vw, 7px);
  background: #34495e;
  border-radius: 0 0 2px 2px;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .player-fouls-badge.is-warning {
  background: #f39c12;
  border-color: rgb(161.0457831325, 101.9277108434, 8.1542168675);
  color: #3d2c00;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .player-fouls-badge.is-warning::after {
  background: rgb(161.0457831325, 101.9277108434, 8.1542168675);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .player-fouls-badge.text-danger {
  background: #c0392b;
  border-color: rgb(129.4978723404, 38.4446808511, 29.0021276596);
  color: white !important;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .player-fouls-badge.text-danger::after {
  background: rgb(129.4978723404, 38.4446808511, 29.0021276596);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .player-fouls-badge.is-disqualified {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(87.829787234, 26.0744680851, 19.670212766);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-action {
  padding: 2px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  font-weight: 400;
  background: white;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-action:hover:not(:disabled) {
  background: #e9ecef;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-in {
  color: #2c3e50;
  border-color: #2c3e50;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-in.btn-participated {
  background-color: #2c3e50 !important;
  color: white !important;
  opacity: 0.8;
  pointer-events: none;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-score {
  background: #27ae60;
  color: white;
  border-color: rgb(29.661971831, 132.338028169, 73.014084507);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-score.score-3 {
  background: #196f3d;
  border-color: rgb(15.625, 69.375, 38.125);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-score.score-2 {
  background: #27ae60;
  border-color: rgb(29.661971831, 132.338028169, 73.014084507);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-score.score-1 {
  background: #58d68d;
  border-color: rgb(49.4759615385, 201.5240384615, 113.4326923077);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-score.missed-1 {
  background: #c0392b;
  border-color: rgb(150.3319148936, 44.629787234, 33.6680851064);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .btn-score:hover {
  color: black;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .foul-group {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 2px solid #ddd;
  padding-left: clamp(2px, 0.5vw, 5px);
  margin-left: clamp(2px, 0.5vw, 5px);
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .foul-group .btn-foul {
  background: #34495e;
  color: white;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .foul-group .btn-foul-mini {
  background: #95a5a6;
  color: white;
  padding: 4px 6px;
}
.scoresheet-wrapper .event-log-container .event-log {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  height: 100%;
}
.scoresheet-wrapper .event-log-container .event-log h3 {
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}
.scoresheet-wrapper .event-log-container .event-log #log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 600px;
  overflow-y: auto;
}
.scoresheet-wrapper .event-log-container .event-log #log-list li {
  padding: 8px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scoresheet-wrapper .event-log-container .event-log #log-list li .log-info {
  font-size: 0.85rem;
  line-height: 1.2;
}
.scoresheet-wrapper .event-log-container .event-log #log-list li .log-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scoresheet-wrapper .event-log-container .event-log #log-list li .log-actions .badge {
  background: #2c3e50;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
}
.scoresheet-wrapper .event-log-container .event-log #log-list li .log-actions .btn-edit {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
}
.scoresheet-wrapper .event-log-container .event-log #log-list li .log-actions .btn-delete {
  background: #c0392b;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
}
.scoresheet-wrapper .officials-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin: 0 20px 20px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.scoresheet-wrapper .officials-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2c3e50;
}
.scoresheet-wrapper .officials-section .officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

/*
|--------------------------------------------------------------------------
| SCORESHEET DIGITAL · v2 (una acción por botón, el jugador se elige después)
|--------------------------------------------------------------------------
*/
turbo-frame {
  display: block;
}

.scoresheet-wrapper .header-version {
  position: absolute;
  top: 15px;
  left: 20px;
}
.scoresheet-wrapper .btn-version {
  font-weight: 600;
  white-space: nowrap;
}
.scoresheet-wrapper .team-panel--local {
  --score-2: var(--team-local-score-2, #2c3e50);
  --score-2-ink: var(--team-local-score-2-ink, #fff);
  --score-1: var(--team-local-score-1, #2c3e50);
  --score-1-ink: var(--team-local-score-1-ink, #fff);
}
.scoresheet-wrapper .team-panel--visitor {
  --score-2: var(--team-visitor-score-2, #2c3e50);
  --score-2-ink: var(--team-visitor-score-2-ink, #fff);
  --score-1: var(--team-visitor-score-1, #2c3e50);
  --score-1-ink: var(--team-visitor-score-1-ink, #fff);
}
.scoresheet-wrapper .team-panel--quick .team-header {
  display: block;
  text-align: center;
}
.scoresheet-wrapper .team-panel--quick .team-header h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  margin-bottom: 6px;
}
.scoresheet-wrapper .team-panel--quick .team-header .team-stats {
  justify-content: center;
  flex-wrap: wrap;
}
.scoresheet-wrapper .team-panel--quick .player-list {
  margin-top: 10px;
}
.scoresheet-wrapper .team-panel--quick .player-list .coach-row .player-info {
  justify-content: center;
  gap: 8px;
}
.scoresheet-wrapper .team-panel--quick .btn-roster {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #6f42c1;
  color: #fff;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.scoresheet-wrapper .team-panel--quick .btn-roster:hover:not(:disabled) {
  background: rgb(93.0175298805, 53.8980079681, 164.3019920319);
}
.scoresheet-wrapper .quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 4px 4px;
}
@media (max-width: 520px) {
  .scoresheet-wrapper .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}
.scoresheet-wrapper .quick-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 120px;
  padding: 8px;
  border: 3px solid var(--team-text, #2c3e50);
  border-radius: 12px;
  background: var(--team-color, #2c3e50);
  color: var(--team-ink, #fff);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out, filter 0.06s ease-out;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.scoresheet-wrapper .quick-action:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: none;
}
@media (hover: hover) {
  .scoresheet-wrapper .quick-action:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(17, 17, 17, 0.2);
    filter: brightness(1.06);
  }
}
.scoresheet-wrapper .quick-action--score-2 {
  background: var(--score-2, #2c3e50);
  color: var(--score-2-ink, #fff);
}
.scoresheet-wrapper .quick-action--score-1 {
  background: var(--score-1, #2c3e50);
  color: var(--score-1-ink, #fff);
}
.scoresheet-wrapper .quick-action--missed {
  background: #c0392b;
  border-color: rgb(141.9982978723, 42.1557446809, 31.8017021277);
  color: #fff;
}
.scoresheet-wrapper .quick-action--foul {
  background: #34495e;
  border-color: rgb(30.202739726, 42.4, 54.597260274);
  color: #fff;
}
.scoresheet-wrapper .quick-action--special {
  background: #95a5a6;
  border-color: rgb(115.8369230769, 136.6615384615, 137.9630769231);
  color: #fff;
  letter-spacing: 0.12em;
}
.scoresheet-wrapper .quick-action i {
  font-size: 0.85em;
}

.picker-modal .modal-dialog {
  max-width: min(1600px, 96vw);
}
.picker-modal [hidden] {
  display: none !important;
}
.picker-modal .picker-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.picker-modal .picker-heading__text {
  display: flex;
  flex-direction: column;
}
.picker-modal .picker-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 96px;
  padding: 10px 14px;
  border: 3px solid transparent;
  border-radius: 12px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.picker-modal .picker-action--long {
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  padding: 14px 16px;
}
.picker-modal .picker-action i {
  font-size: 0.85em;
}
.picker-modal .picker-team-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7f8c8d;
}
.picker-modal .picker-section-title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7f8c8d;
}
.picker-modal .picker-foul-types__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.picker-modal .picker-foul {
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.picker-modal .picker-foul--coach {
  border-style: dashed;
}
.picker-modal .picker-foul.is-selected {
  border-color: #2c3e50;
  background: #2c3e50;
  color: #fff;
}
.picker-modal .picker-foul:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.picker-modal .picker-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.picker-modal .picker-card {
  position: relative;
}
.picker-modal .picker-card--ghost, .picker-modal .picker-card--coach {
  grid-column: span 2;
}
.picker-modal .picker-card__choose {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  min-height: 132px;
  padding: 12px 8px;
  border: 2px solid var(--team-text, #2c3e50);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.picker-modal .picker-card__choose:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.picker-modal .picker-card__dorsal {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--team-text, #2c3e50);
}
.picker-modal .picker-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  color: #2c3e50;
}
.picker-modal .picker-card__fouls {
  font-size: 0.7rem;
  color: #7f8c8d;
}
.picker-modal .picker-card__fouls .is-warning {
  color: #f39c12;
}
.picker-modal .picker-card__fouls .is-disqualified,
.picker-modal .picker-card__fouls .text-danger {
  color: #c0392b;
}
.picker-modal .picker-card__in {
  position: absolute;
  top: -8px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f39c12;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
@media (hover: hover) {
  .picker-modal .picker-card__choose:hover:not(:disabled) {
    background: var(--team-color, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  .picker-modal .picker-card__choose:hover:not(:disabled) .picker-card__dorsal,
  .picker-modal .picker-card__choose:hover:not(:disabled) .picker-card__name,
  .picker-modal .picker-card__choose:hover:not(:disabled) .picker-card__fouls {
    color: var(--team-ink, #fff);
  }
}
.picker-modal .picker-card.is-idle .picker-card__choose {
  border-style: dashed;
  opacity: 0.6;
}
.picker-modal .picker-card.is-unavailable .picker-card__choose {
  border-color: #ddd;
  border-style: dotted;
}
.picker-modal .picker-card.is-unavailable .picker-card__choose .picker-card__dorsal {
  color: #7f8c8d;
}
.picker-modal .picker-card.is-out .picker-card__choose {
  border-color: #c0392b;
}
.picker-modal .picker-card.is-chosen .picker-card__choose {
  background: var(--team-color, #2c3e50);
  color: var(--team-ink, #fff);
  outline: 3px solid #2c3e50;
  outline-offset: 2px;
}
.picker-modal .picker-card.is-chosen .picker-card__choose .picker-card__dorsal,
.picker-modal .picker-card.is-chosen .picker-card__choose .picker-card__name,
.picker-modal .picker-card.is-chosen .picker-card__choose .picker-card__fouls {
  color: var(--team-ink, #fff);
}
.picker-modal .player-list {
  columns: 380px;
  column-gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.picker-modal .player-list .player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  border-bottom: 1px solid #eee;
  break-inside: avoid;
}
.picker-modal .player-list .player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.picker-modal .player-list .player-name {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-modal .player-list .dorsal-input {
  width: 56px;
  height: 44px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}
.picker-modal .player-list .dorsal-input.is-valid {
  border-color: #27ae60;
}
.picker-modal .player-list .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.picker-modal .player-list .player-fouls-badge {
  --foul-paddle-size: 30px;
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--foul-paddle-size);
  height: var(--foul-paddle-size);
  margin-right: 6px;
  border: 2px solid #34495e;
  border-radius: 50%;
  background: #f2f2f2;
  color: #2c3e50;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: bold;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.picker-modal .player-list .player-fouls-badge::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 0 0 2px 2px;
  background: #34495e;
}
.picker-modal .player-list .player-fouls-badge.is-warning {
  background: #f39c12;
  border-color: rgb(161.0457831325, 101.9277108434, 8.1542168675);
  color: #3d2c00;
}
.picker-modal .player-list .player-fouls-badge.is-warning::after {
  background: rgb(161.0457831325, 101.9277108434, 8.1542168675);
}
.picker-modal .player-list .player-fouls-badge.text-danger {
  background: #c0392b;
  border-color: rgb(129.4978723404, 38.4446808511, 29.0021276596);
  color: #fff !important;
}
.picker-modal .player-list .player-fouls-badge.text-danger::after {
  background: rgb(129.4978723404, 38.4446808511, 29.0021276596);
}
.picker-modal .player-list .player-fouls-badge.is-disqualified {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(87.829787234, 26.0744680851, 19.670212766);
}
.picker-modal .player-list .btn-in {
  min-width: 46px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #2c3e50;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.picker-modal .player-list .btn-in.btn-participated {
  background: #27ae60;
}
.picker-modal .picker-footer {
  justify-content: space-between;
}

/*
|--------------------------------------------------------------------------
| EDITION GALLERY (edition/index)
|--------------------------------------------------------------------------
*/
:root {
  --cf-gold: #c9960a;
  --cf-gold-glow: rgba(201, 150, 10, 0.35);
  --cf-bg: #0b0f18;
  --cf-card-bg: #151c2c;
  --cf-card-dark: #0e1420;
  --cf-text: #e2e8f0;
  --cf-muted: #7a8aa8;
}

/* ── Desktop/tablet: 2-column or stacked gallery ──────────── */
.cf-layout {
  display: none;
  background: var(--cf-bg);
  border-radius: 1.25rem;
  padding: 2rem;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .cf-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 600px;
  }
}
@media (min-width: 1024px) {
  .cf-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* LEFT column */
.cf-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.cf-main-poster-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: var(--cf-card-dark);
}
.cf-main-poster-wrap img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.cf-main-fallback {
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0a1a36, #112b5a, #0a1a36);
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 5rem;
  color: rgba(201, 150, 10, 0.75);
  letter-spacing: 0.03em;
}

.cf-main-meta {
  background: var(--cf-card-bg);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--cf-gold);
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cf-main-year {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--cf-gold);
  line-height: 1;
}

.cf-main-location {
  color: var(--cf-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* RIGHT column */
.cf-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow: hidden;
}

.cf-info-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 1rem;
}

.cf-year-lbl {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cf-gold);
  letter-spacing: 0.03em;
}

.cf-edition-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cf-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 1em;
}

.cf-actions-container {
  overflow-y: auto;
  max-height: 170px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.cf-actions-container::-webkit-scrollbar {
  width: 3px;
}
.cf-actions-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.cf-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.cf-actions-panel .btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 6px;
}

/* Thumbnails grid */
.cf-thumbs-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 0.45rem;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.cf-thumbs-grid::-webkit-scrollbar {
  width: 4px;
}
.cf-thumbs-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cf-thumbs-grid {
    flex: none;
  }
}

.cf-thumb {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cf-card-bg);
  border: 2px solid transparent;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.cf-thumb img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.cf-thumb .cf-thumb-fallback {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0a1a36, #112b5a);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
}
.cf-thumb .cf-thumb-year {
  display: block;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--cf-muted);
  padding: 0.18rem 0 0.28rem;
  line-height: 1;
  transition: color 0.2s ease;
}
.cf-thumb:hover {
  transform: scale(1.06) translateY(-2px);
  border-color: rgba(201, 150, 10, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.cf-thumb:hover .cf-thumb-year {
  color: var(--cf-text);
}
.cf-thumb:focus-visible {
  outline: 2px solid var(--cf-gold);
  outline-offset: 2px;
}
.cf-thumb.cf-thumb--active {
  border-color: var(--cf-gold);
  box-shadow: 0 0 0 1px var(--cf-gold-glow), 0 4px 14px rgba(201, 150, 10, 0.3);
}
.cf-thumb.cf-thumb--active .cf-thumb-year {
  color: var(--cf-gold);
  font-weight: 700;
}
.cf-thumb.cf-thumb--active:hover {
  transform: scale(1.02);
}

/* ── Mobile: scroll-snap carousel ────────────────────────── */
.cf-mobile {
  display: block;
  background: var(--cf-bg);
  border-radius: 1.25rem;
  padding: 1.25rem 0 1rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cf-mobile {
    display: none;
  }
}

.cf-mobile-stage {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.85rem;
  padding: 0.5rem 10vw 0.75rem;
}
.cf-mobile-stage::-webkit-scrollbar {
  display: none;
}

.cf-mobile-card {
  flex: 0 0 80vw;
  max-width: 320px;
  background: var(--cf-card-bg);
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.cf-mobile-poster {
  height: 420px;
  background: var(--cf-card-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cf-mobile-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cf-mobile-poster .cf-mobile-poster-fallback {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: rgba(201, 150, 10, 0.7);
}

.cf-mobile-body {
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cf-mobile-body h4 {
  color: var(--cf-text);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.cf-mobile-body .loc {
  color: var(--cf-muted);
  font-size: 1.28rem;
  margin: 0.1rem 0 0;
}

.cf-mobile-actions {
  padding: 0.55rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.cf-mobile-actions .btn {
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 6px;
  width: 100%;
}

.cf-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem 0.85rem;
  gap: 1rem;
}

.cf-mobile-arrow {
  all: unset;
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--cf-gold);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(201, 150, 10, 0.45);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.cf-mobile-arrow:hover, .cf-mobile-arrow:focus-visible {
  background: var(--cf-gold);
  color: var(--cf-bg);
  border-color: var(--cf-gold);
  outline: none;
}
.cf-mobile-arrow:active {
  transform: scale(0.93);
}

.cf-mobile-edition {
  color: var(--cf-gold);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.cf-mobile::before,
.cf-mobile::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10vw;
  pointer-events: none;
  z-index: 5;
}

.cf-mobile::before {
  left: 0;
  background: linear-gradient(to right, var(--cf-bg), transparent);
}

.cf-mobile::after {
  right: 0;
  background: linear-gradient(to left, var(--cf-bg), transparent);
}

.calendar-tabs {
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0;
}

.calendar-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: -2px;
  padding: 0.5rem 1.25rem;
  transition: color 0.15s, border-color 0.15s;
}
.calendar-tab-btn:hover {
  color: var(--basket-dark);
  border-bottom-color: #dee2e6;
}
.calendar-tab-btn.active {
  color: var(--basket-orange-dark);
  border-bottom-color: var(--basket-orange);
  font-weight: 600;
}

.calendar-tab-content-hidden {
  display: none !important;
}

.calendar-team-mapping {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 767.98px) {
  .calendar-team-mapping {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .calendar-team-mapping {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .calendar-tab-btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
  }
}
.calendar-bulk-table .calendar-bulk-group + .calendar-bulk-group {
  border-top: 3px solid var(--basket-orange);
}
.calendar-bulk-table .calendar-bulk-group--event {
  --bs-table-bg: #f8f9fa;
  background-color: #f8f9fa;
}
.calendar-bulk-table .calendar-bulk-day {
  width: 12rem;
}
.calendar-bulk-table .calendar-bulk-time {
  width: 9rem;
}
.calendar-bulk-table .calendar-bulk-locale {
  width: 5rem;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .calendar-bulk-table .calendar-bulk-group {
    display: block;
    margin-bottom: 1.25rem;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  .calendar-bulk-table .calendar-bulk-group + .calendar-bulk-group {
    border-top: 1px solid #e9ecef;
  }
  .calendar-bulk-table tr {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .calendar-bulk-table td:first-child {
    background: transparent;
    border-bottom: 0 !important;
  }
  .calendar-bulk-table td:first-child::before {
    display: block;
  }
  .calendar-bulk-table td:first-child .cell-content {
    font-size: inherit;
    font-weight: inherit;
    text-align: right;
  }
  .calendar-bulk-table .calendar-bulk-day,
  .calendar-bulk-table .calendar-bulk-time,
  .calendar-bulk-table .calendar-bulk-locale {
    width: 100%;
  }
}

.btn-publish-social {
  background: linear-gradient(135deg, #0866ff 0%, #e1306c 100%);
  border: none;
  color: #fff;
}
.btn-publish-social:hover, .btn-publish-social:focus {
  opacity: 0.9;
  color: #fff;
}

.social-publish-dropzone {
  border: 2px dashed #dee2e6;
  border-radius: 0.5rem;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s;
}
.social-publish-dropzone:hover {
  border-color: var(--basket-orange);
}

.social-publish-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.social-publish-preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 0.375rem;
}

.social-publish-counter {
  font-size: 0.8rem;
  min-width: 72px;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Estadístiques del partit (acta digital tancada)
   Els colors dels equips arriben com a custom properties des de la plantilla.
   --------------------------------------------------------------------------- */
.scoresheet-stats {
  /* Franja de color per identificar l'equip sense dependre del contrast del text */
  /* Qui no ha jugat es veu, però no compateix per l'atenció */
  /* Els punts sense jugador són de l'equip, no de ningú: fons propi per no
     confondre'ls amb una línia de jugador. */
  /* I els totals, un tercer fons perquè es llegisquen com a tancament de taula. */
}
.scoresheet-stats .stats-team--local {
  color: var(--team-local-text, #0d6efd);
  font-weight: 600;
}
.scoresheet-stats .stats-team--visitor {
  color: var(--team-visitor-text, #198754);
  font-weight: 600;
}
.scoresheet-stats .stats-scoreboard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.35rem;
}
.scoresheet-stats .stats-score {
  background: #2c3e50;
  color: #fff;
  padding: 2px 18px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 64px;
  text-align: center;
}
.scoresheet-stats .stats-team-card--local {
  border-left: 5px solid var(--team-local-color, #0d6efd) !important;
}
.scoresheet-stats .stats-team-card--visitor {
  border-left: 5px solid var(--team-visitor-color, #198754) !important;
}
.scoresheet-stats .stats-team-card--local,
.scoresheet-stats .stats-team-card--visitor {
  box-shadow: inset 5px 0 0 -4px rgba(0, 0, 0, 0.25), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.scoresheet-stats .stats-tile-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6c757d;
}
.scoresheet-stats .stats-tile-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}
.scoresheet-stats .stats-dorsal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  border: 2px solid var(--team-color, #2c3e50);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  font-size: 0.85rem;
}
.scoresheet-stats .stats-row--idle .stats-dorsal {
  opacity: 0.5;
}
.scoresheet-stats .stats-row--unassigned > td {
  background-color: #fff8e1;
  border-top: 1px dashed #e0c97f;
}
.scoresheet-stats .stats-row--totals > td {
  background-color: #eef2f5;
}
.scoresheet-stats .stats-box-score th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6c757d;
}
.scoresheet-stats .stats-periods th {
  font-size: 0.85rem;
}

.play-by-play .pbp-side--local {
  color: var(--team-local-text, #0d6efd);
  font-weight: 600;
}
.play-by-play .pbp-side--visitor {
  color: var(--team-visitor-text, #198754);
  font-weight: 600;
}
.play-by-play .pbp-scoreboard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.35rem;
}
.play-by-play .pbp-scoreboard__team--local {
  color: var(--team-local-text, #0d6efd);
  font-weight: 600;
}
.play-by-play .pbp-scoreboard__team--visitor {
  color: var(--team-visitor-text, #198754);
  font-weight: 600;
}
.play-by-play .pbp-scoreboard__score {
  background: #2c3e50;
  color: #fff;
  padding: 2px 18px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 64px;
  text-align: center;
}
.play-by-play .pbp-periods th {
  font-size: 0.85rem;
}
.play-by-play .pbp-live-badge {
  animation: pbp-pulse 1.6s ease-in-out infinite;
}
@keyframes pbp-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .play-by-play .pbp-live-badge {
    animation: none;
  }
}
.play-by-play .pbp-play {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #e9ecef;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.play-by-play .pbp-play--local {
  border-left-color: var(--team-local-color, #0d6efd);
}
.play-by-play .pbp-play--visitor {
  border-right-color: var(--team-visitor-color, #198754);
}
.play-by-play .pbp-play__center {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 5rem;
  padding: 0 8px;
}
.play-by-play .pbp-play__period {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6c757d;
}
.play-by-play .pbp-play__score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #2c3e50;
}
.play-by-play .pbp-play__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.play-by-play .pbp-play--local .pbp-play__body {
  grid-column: 1;
  grid-row: 1;
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}
.play-by-play .pbp-play--visitor .pbp-play__body {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-start;
  text-align: left;
}
.play-by-play .pbp-play__dorsal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  border: 2px solid #2c3e50;
  font-weight: 700;
  font-size: 0.85rem;
}
.play-by-play .pbp-play--local .pbp-play__dorsal {
  border-color: var(--team-local-color, #0d6efd);
}
.play-by-play .pbp-play--visitor .pbp-play__dorsal {
  border-color: var(--team-visitor-color, #198754);
}
.play-by-play .pbp-play__who {
  font-weight: 500;
  color: #495057;
}
.play-by-play .pbp-play__action {
  font-weight: 700;
  font-size: 0.95rem;
  color: #495057;
}
.play-by-play .pbp-play__action--score {
  color: #157347;
}
.play-by-play .pbp-play__action--foul {
  color: #b02a37;
}
.play-by-play .pbp-play__action--timeout {
  color: #0a58ca;
}
.play-by-play .pbp-play__points {
  margin-left: 4px;
  font-weight: 700;
  color: #198754;
}
@media (max-width: 575.98px) {
  .play-by-play .pbp-play {
    gap: 6px;
    padding: 6px 8px;
  }
  .play-by-play .pbp-play__center {
    min-width: 3.75rem;
    padding: 0 4px;
  }
  .play-by-play .pbp-play__period {
    font-size: 0.7rem;
  }
  .play-by-play .pbp-play__score {
    font-size: 0.9rem;
  }
  .play-by-play .pbp-play__body {
    gap: 6px;
  }
  .play-by-play .pbp-play__dorsal {
    min-width: 26px;
    height: 22px;
    font-size: 0.78rem;
  }
  .play-by-play .pbp-play__who {
    font-size: 0.85rem;
  }
  .play-by-play .pbp-play__action {
    font-size: 0.85rem;
  }
}

/*# sourceMappingURL=app.css-Z_TmkZ9.map */
