/* =========================================================
   SATURDAY PAGE
   ========================================================= */

/* Page parallax layout */
#sdr-page .parallax-item:nth-child(1) {
	position: relative;
	min-height: 600px;
	overflow: hidden;
}

#sdr-page .parallax-item:nth-child(2) {
	min-height: 30vh;
	height: auto;
	margin-top: 10vh;
	margin-bottom: 10vh;
	z-index: 2;
}

#sdr-page .parallax-item:nth-child(3) {
  min-height: 50vh;
  justify-content: flex-start;
  height: auto;
  z-index: 2;
}

#sdr-page .parallax-item .row {
  position: relative;
  max-width: var(--xds-page-max-width);
  width: min(100%, var(--xds-page-max-width));
  margin-inline: auto;
}

#sdr-page .parallax-item:nth-child(2) .row {
  position: relative;
  max-width: var(--xds-page-max-width);
}

/*============================
  Modal score
============================*/
.modal-score {
  --sdr-accent-rgb: 59, 130, 246;
  --sdr-second-rgb: 20, 184, 166;
}

.modal-score .sdr-modal-content {
  background:
    radial-gradient(460px 170px at 95% -20%, rgba(var(--sdr-accent-rgb), 0.32), transparent 60%),
    radial-gradient(320px 160px at 5% 0%, rgba(var(--sdr-second-rgb), 0.26), transparent 58%),
    #1f232d;
}

.modal-score .sdr-modal-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-score .sdr-modal-date {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-family-base, Outfit, sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
}

.modal-score .nav-tabs {
    border-bottom: none;
}

.modal-score .nav-link {
    border: none;
    margin-bottom: 5px;
    color: #757575;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, transform 0.12s ease;
}

.modal-score .nav-link:hover {
    background-color: rgba(223, 223, 223, 0.45);
    color: #4f4f4f;
}

.modal-score .nav-link:active {
    transform: scale(0.97);
}

[data-bs-theme="dark"] .modal-score .nav-link {
    color: #b0b0b0;
}

[data-bs-theme="dark"] .modal-score .nav-link:hover {
    background-color: rgba(58, 58, 58, 0.65);
    color: #d8d8d8;
}

.modal-score .nav-link.active {
    background-color: #dfdfdf;
    border-radius: 10px;
    color: black !important;
}

[data-bs-theme="dark"] .modal-score .nav-link.active {
    background-color: #3a3a3a;
    color: white !important;
}

.modal-score .tab-content {
    background-color: #dfdfdf;
    border-radius: 10px;
    padding: 1rem;
}

[data-bs-theme="dark"] .modal-score .tab-content {
    background-color: #2a2a2a;
    color: white;
}

.modal-score #score-table tbody tr td {
    background: transparent;
    border-bottom: 1px solid #a0a0a0;
}

[data-bs-theme="dark"] .modal-score #score-table tbody tr td {
    border-bottom: 1px solid #444;
}

.modal-score #score-table thead {
  border-bottom: 2px solid #a0a0a0;
}

[data-bs-theme="dark"] .modal-score #score-table thead {
  border-bottom: 2px solid #444;
}

/* Adoucit le changement d'onglets */
.modal-score .tab-pane.fade {
  transition: opacity 0.26s ease, transform 0.26s ease;
  transform: translateY(6px);
}

.modal-score .tab-pane.fade.show {
  transform: translateY(0);
}

/* Bouton close plus doux */
.modal-score .btn-close {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal-score .btn-close:hover,
.modal-score .btn-close:focus-visible {
  opacity: 1;
}

.modal-score #dynamic-vod-link {
  background-color: var(--bentocolor-youtube);
  border-color: var(--bentocolor-youtube);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-score #dynamic-vod-link:hover,
.modal-score #dynamic-vod-link:focus-visible {
  background-color: var(--bentocolor-hover-youtube);
  border-color: var(--bentocolor-hover-youtube);
}


/*============================
  Card image
============================*/
.card-sdr {
  transition: box-shadow 0.35s ease;
}

/* Date range compact spacing */
.date-range {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-range h2,
.date-range h6 {
  margin-bottom: 0.35rem;
}

.date-range-label {
  margin-bottom: 0;
  line-height: 1.1;
  text-align: left;
  flex: 0 0 auto;
}

.date-range-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.date-range-row .form-control {
  flex: 1 1 auto;
}

.card-sdr-img {
  overflow: hidden;
  object-fit: contain;
  cursor: pointer;
  position: relative;
  padding: 0;
  user-select: none;
  display: grid;
  transition: transform 0.35s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: paint;
}

.card-sdr-img button {
  padding: 0 !important;
}

.card-sdr-img img {
  width: 100%;
  display: inherit;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.05);
  will-change: transform;
  -webkit-mask: linear-gradient(0deg, #0000 0%, #000 35% 100%, #0000);
  mask: linear-gradient(0deg, #0000 0%, #000 35% 100%, #0000);
  background: linear-gradient(-135deg, rgba(0, 0, 0, 1) 0%, transparent 50%);

}

.card-sdr-img::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, transparent 50%);
  background-size: 200%;
  transition: 0.2s all ease-in-out;
}

.card-sdr:hover {
  box-shadow: var(--xds-shadow-mini);
}

.card-sdr:hover .card-sdr-img {
  transform: scale(1.02);
}

.card-sdr:not(.dimmed):hover:before {
  background-position: 50%;
}

.card-sdr .text-secondary {
  font-family: Hanson;
  color: white !important;
  font-size: clamp(1.3rem, .9vw, 10vw);
  line-height: 10px;
}

.card-sdr.dimmed {
  filter: brightness(0.5);
  pointer-events: none;
  transition: filter 0.3s;
}

.highlight {
  border-radius: 6px;
  padding: 2px;
  animation: pulseGlowOffset 2.5s ease-in-out infinite;
}

@keyframes pulseGlowOffset {
  0% { box-shadow: 0 0 0 3px rgba(0, 103, 255, 1); }
  70% { box-shadow: 0 0 0 9px rgba(0, 103, 255, 0); }
  100% { box-shadow: 0 0 0 3px rgba(0, 103, 255, 1); }
}

.toggle-icon {
  float: right;
  font-size: 1.5rem;
  background: #b1b1b170;
  backdrop-filter: blur(1px);
  border-radius: 10px;
  padding: 0px 6px;
  box-shadow: 0px 6px 12px 1px #00000032;
}

[data-bs-theme="dark"] .toggle-icon {
    background: #00000070;
    color: white;
}

.toggle-icon i {
    top: 3px;
}

/*============================
  Card typography
============================*/
.game-title {
  font-family: Hanson;
}

/*============================
  Table styles
============================*/
#score-table table {
  margin-bottom: 0;
}

.modal-score #score-table {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
}

#score-table table tbody,
#score-table table thead {
  vertical-align: middle;
}

#score-table thead th {
  padding: 0.25rem;
  color: #747474;
  font-size: 14px;
  font-weight: bold;
  background-color: transparent; /* CORRECTION: Pour un fond transparent/hérité */
}

[data-bs-theme="dark"] #score-table thead th {
    color: #a0a0a0;
}

#score-table tbody td {
  padding: 0.8vh;
  font-size: 16px;
  box-shadow: none;
}

#score-table tbody tr:last-child td {
  border-bottom: none;
}

#score-table tbody tr td {
  color: #747474;
}

[data-bs-theme="dark"] #score-table tbody tr td {
    color: #dcdcdc;
}

#score-table tbody tr:first-child td {
  color: #686ef9 !important;
}

/*============================
  Mobile responsive
============================*/
@media screen and (max-width: 769px) {
  .card-sdr:hover .card-sdr-img,
  .card-sdr-img:hover {
    transform: none;
  }
  .card-sdr .text-secondary {
    font-size: calc(4.5vw + 5px);
    line-height: 25px;
  }
  .card-sdr-img:hover:before {
    background-position: none;
  }
}
