@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
|--------------------------------------------------------------------------
*/
.responsive-table-game {
  width: 100%;
}
.responsive-table-game .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: 768px) {
  .responsive-table-game {
    /*
     * =========================
     * FILA 1
     * 50 / 50
     * =========================
     */
    /*
     * =========================
     * FILA 2
     * 100%
     * =========================
     */
    /*
     * =========================
     * FILA 3
     * 100%
     * =========================
     */
    /*
     * =========================
     * FILA 4
     * 100%
     * =========================
     */
    /*
     * =========================
     * FILA 5
     * 100%
     * =========================
     */
    /*
     * Ajustes tipográficos
     */
  }
  .responsive-table-game thead {
    display: none;
  }
  .responsive-table-game table,
  .responsive-table-game tbody {
    display: block;
    width: 100%;
  }
  .responsive-table-game tr {
    display: grid;
    /*
     * 10 columnas:
     *
     * fila 1 → 50 / 50
     * filas 2-4 → 100%
     */
    grid-template-columns: repeat(10, 1fr);
    gap: 0;
    margin-bottom: 1rem;
    padding: 0;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  .responsive-table-game td {
    border: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.3rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0;
    text-align: center !important;
  }
  .responsive-table-game td::before {
    content: attr(data-label);
    margin-bottom: 0.3rem;
    color: #6c757d;
    font-size: 0.62rem;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: none;
  }
  .responsive-table-game td .cell-content {
    width: 100%;
    font-size: 0.88rem;
    font-weight: 600;
    color: #212529;
    text-align: center;
  }
  .responsive-table-game td:nth-child(1) {
    grid-column: 1/6;
    grid-row: 1;
    border-right: 1px solid #e5e7eb !important;
  }
  .responsive-table-game td:nth-child(1).edition-separator {
    grid-column: 1/12;
  }
  .responsive-table-game td:nth-child(2) {
    grid-column: 6/11;
    grid-row: 1;
  }
  .responsive-table-game td:nth-child(3) {
    grid-column: 1/11;
    grid-row: 2;
  }
  .responsive-table-game td:nth-child(4) {
    grid-column: 1/11;
    grid-row: 3;
  }
  .responsive-table-game td:nth-child(5) {
    grid-column: 1/11;
    grid-row: 4;
  }
  .responsive-table-game td.actions-cell {
    grid-column: 1/11;
    grid-row: 5;
    padding-top: 0.85rem;
    border-bottom: 0 !important;
  }
  .responsive-table-game td.actions-cell .cell-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  .responsive-table-game .fs-5 {
    font-size: 1rem !important;
  }
  .responsive-table-game .small {
    font-size: 0.68rem !important;
  }
  .responsive-table-game .fst-italic {
    font-size: 0.62rem !important;
  }
  .responsive-table-game .game-team-name {
    font-size: 0.8rem !important;
  }
  .responsive-table-game .game-result {
    font-size: 1.3rem !important;
  }
}

/*
|--------------------------------------------------------------------------
| 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;
}

/* =========================
   RESPONSIVE TABLE SYSTEM
   ========================= */
.responsive-table {
  width: 100%;
}
@media (max-width: 768px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }
  .responsive-table tr {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  .responsive-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 72px;
    padding: 0.85rem 1rem;
    border: none !important;
    border-bottom: 1px solid #f1f1f1 !important;
    text-align: left !important;
  }
  .responsive-table td::before {
    content: attr(data-label);
    margin-bottom: 0.35rem;
    color: #6c757d;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .responsive-table td:last-child {
    border-bottom: none !important;
  }
  .responsive-table td .cell-content {
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    text-align: right;
  }
  .responsive-table td.actions-cell {
    padding-top: 1rem;
  }
  .responsive-table td.actions-cell .cell-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
}

.responsive-table-performance {
  width: 100%;
}
@media (max-width: 768px) {
  .responsive-table-performance {
    /*
     * # columna
     */
    /*
     * EQUIPO ocupa todo el ancho
     */
    /*
     * Stats cards
     */
    /*
     * FILA 2
     */
    /*
     * FILA 3
     */
    /*
     * Grid stats
     */
  }
  .responsive-table-performance thead {
    display: none;
  }
  .responsive-table-performance table,
  .responsive-table-performance tbody {
    display: block;
    width: 100%;
  }
  .responsive-table-performance tr {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  .responsive-table-performance td {
    border: 0 !important;
    padding: 0;
    min-width: 0;
  }
  .responsive-table-performance .col-rank {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .responsive-table-performance .col-rank .cell-content {
    font-size: 1.25rem;
    font-weight: 700;
  }
  .responsive-table-performance .col-rank::before {
    display: none;
  }
  .responsive-table-performance .col-team {
    grid-column: 2/-1;
    grid-row: 1;
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .responsive-table-performance .col-team .cell-content {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
  }
  .responsive-table-performance .col-team::before {
    display: none;
  }
  .responsive-table-performance .col-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    text-align: center;
  }
  .responsive-table-performance .col-stat::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
  }
  .responsive-table-performance .col-stat .cell-content {
    font-size: 1rem;
    font-weight: 700;
  }
  .responsive-table-performance td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  .responsive-table-performance td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  .responsive-table-performance td:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }
  .responsive-table-performance td:nth-child(6) {
    grid-column: 4;
    grid-row: 2;
  }
  .responsive-table-performance td:nth-child(7) {
    grid-column: 5;
    grid-row: 2;
  }
  .responsive-table-performance td:nth-child(8) {
    grid-column: 1/3;
    justify-self: end;
  }
  .responsive-table-performance td:nth-child(9) {
    grid-column: 4/6;
    justify-self: start;
  }
  .responsive-table-performance td:nth-child(8),
  .responsive-table-performance td:nth-child(9) {
    min-width: 90px;
  }
  .responsive-table-performance tr {
    grid-template-columns: repeat(5, 1fr);
  }
  .responsive-table-performance tr:nth-child(odd) {
    background-color: #ddd;
    color: var(--bs-table-striped-color);
  }
  .responsive-table-performance tr:nth-child(odd) td {
    --bs-table-bg-type: #ddd;
  }
  .responsive-table-performance .col-rank {
    grid-column: 1;
  }
  .responsive-table-performance .col-team {
    grid-column: 2/6;
  }
}

.responsive-table-scoring {
  width: 100%;
}
@media (max-width: 768px) {
  .responsive-table-scoring {
    /*
     * #
     */
    /*
     * EQUIPO
     */
    /*
     * Stats cards
     */
    /*
     * FILA 2
     */
    /*
     * Zebra
     */
  }
  .responsive-table-scoring thead {
    display: none;
  }
  .responsive-table-scoring table,
  .responsive-table-scoring tbody {
    display: block;
    width: 100%;
  }
  .responsive-table-scoring tr {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    /*
     * Grid final:
     *
     * # | Equipo
     * PF | PC | +/-
     */
    grid-template-columns: repeat(3, 1fr);
  }
  .responsive-table-scoring td {
    border: 0 !important;
    padding: 0;
    min-width: 0;
  }
  .responsive-table-scoring td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .responsive-table-scoring td:nth-child(1)::before {
    display: none;
  }
  .responsive-table-scoring td:nth-child(1) .cell-content {
    font-size: 1.25rem;
    font-weight: 700;
  }
  .responsive-table-scoring td:nth-child(2) {
    grid-column: 2/4;
    grid-row: 1;
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .responsive-table-scoring td:nth-child(2)::before {
    display: none;
  }
  .responsive-table-scoring td:nth-child(2) .cell-content {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
  }
  .responsive-table-scoring td:nth-child(3),
  .responsive-table-scoring td:nth-child(4),
  .responsive-table-scoring td:nth-child(5) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    text-align: center;
  }
  .responsive-table-scoring td:nth-child(3)::before,
  .responsive-table-scoring td:nth-child(4)::before,
  .responsive-table-scoring td:nth-child(5)::before {
    content: attr(data-label);
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
  }
  .responsive-table-scoring td:nth-child(3) .cell-content,
  .responsive-table-scoring td:nth-child(4) .cell-content,
  .responsive-table-scoring td:nth-child(5) .cell-content {
    font-size: 1rem;
    font-weight: 700;
  }
  .responsive-table-scoring td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  .responsive-table-scoring td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  .responsive-table-scoring td:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }
  .responsive-table-scoring tr:nth-child(odd) {
    background-color: #ddd;
    color: var(--bs-table-striped-color);
  }
  .responsive-table-scoring tr:nth-child(odd) td {
    --bs-table-bg-type: #ddd;
  }
}

@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;
  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;
}
.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;
}

.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__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 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 .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 #2c3e50;
  padding-bottom: 5px;
  margin-bottom: 5px;
}
.scoresheet-wrapper .team-panel .team-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #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;
}
.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 {
  background: #e0e0e0;
  color: #2c3e50;
  border-radius: 4px;
  min-width: clamp(22px, 2vw, 28px);
  height: clamp(22px, 2vw, 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 1vw, 1rem);
  font-weight: bold;
}
.scoresheet-wrapper .team-panel .player-list .player-row .actions .player-fouls-badge.text-danger {
  background: #c0392b;
  color: white !important;
}
.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;
  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;
}

/*
|--------------------------------------------------------------------------
| 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;
  }
}
.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;
}

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