.smcr-body {
  --smcr-red: #ef5665;
  --smcr-red-deep: #bf344c;
  --smcr-gold: #ffd36a;
  --smcr-blue: #69b9ff;
  --smcr-panel: rgba(17, 24, 55, 0.9);
  --smcr-panel-soft: rgba(31, 42, 82, 0.72);
}

.smcr-page {
  position: relative;
  margin: 24px 0 42px;
  isolation: isolate;
}

.smcr-page::before {
  position: absolute;
  z-index: -1;
  inset: -60px -40px auto;
  height: 360px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 35%, rgba(239, 86, 101, 0.2), transparent 34%),
    radial-gradient(circle at 80% 25%, rgba(105, 185, 255, 0.18), transparent 30%),
    radial-gradient(circle at 50% 0, rgba(255, 211, 106, 0.12), transparent 38%);
  filter: blur(18px);
  content: "";
  pointer-events: none;
}

.smcr-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.smcr-tab {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid rgba(130, 152, 220, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 39, 78, 0.94), rgba(19, 25, 54, 0.94));
  color: rgba(236, 241, 255, 0.75);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(4, 8, 25, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.smcr-tab::after {
  position: absolute;
  right: 16%;
  bottom: 0;
  left: 16%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--smcr-red), var(--smcr-gold), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.smcr-tab i {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 211, 106, 0.82);
  font-size: 1rem;
}

.smcr-tab:hover,
.smcr-tab:focus-visible {
  border-color: rgba(239, 86, 101, 0.5);
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

.smcr-tab.is-active {
  border-color: rgba(255, 211, 106, 0.5);
  background:
    linear-gradient(135deg, rgba(239, 86, 101, 0.2), transparent 48%),
    linear-gradient(145deg, rgba(39, 49, 91, 0.98), rgba(21, 27, 58, 0.98));
  color: #fff;
  box-shadow: 0 16px 34px rgba(5, 9, 28, 0.3), 0 0 24px rgba(239, 86, 101, 0.1);
}

.smcr-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.smcr-tab.is-active i {
  background: linear-gradient(145deg, var(--smcr-red), var(--smcr-red-deep));
  color: #fff6d7;
  box-shadow: 0 8px 18px rgba(191, 52, 76, 0.34);
}

.smcr-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(132, 153, 219, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(145deg, rgba(27, 36, 73, 0.97), rgba(13, 19, 45, 0.97));
  background-size: 28px 28px, 28px 28px, auto;
  color: #edf1ff;
  box-shadow: 0 28px 60px rgba(3, 7, 22, 0.34);
}

.smcr-panel::after {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 280px;
  height: 280px;
  border: 50px solid rgba(255, 211, 106, 0.025);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.smcr-view {
  position: relative;
  z-index: 1;
  animation: smcr-view-in 280ms ease-out both;
}

@keyframes smcr-view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.smcr-lead {
  margin: 0 0 26px;
  padding: 20px 22px;
  border: 1px solid rgba(105, 185, 255, 0.18);
  border-left: 4px solid var(--smcr-red);
  border-radius: 5px 17px 17px 5px;
  background: linear-gradient(100deg, rgba(239, 86, 101, 0.1), rgba(49, 65, 112, 0.2));
  color: rgba(240, 244, 255, 0.86);
  font-size: 1rem;
  line-height: 1.75;
}

.smcr-download {
  margin: 0 0 34px;
}

.smcr-download .btn-normal {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 224, 143, 0.56);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--smcr-red), var(--smcr-red-deep));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(190, 47, 72, 0.32), inset 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.smcr-download .btn-normal:hover,
.smcr-download .btn-normal:focus-visible {
  color: #fff;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(190, 47, 72, 0.42), 0 0 22px rgba(255, 211, 106, 0.12);
}

.smcr-feature {
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid rgba(133, 153, 219, 0.17);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(38, 49, 91, 0.66), rgba(22, 29, 61, 0.72));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.smcr-feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.smcr-feature h3::before {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(145deg, var(--smcr-gold), var(--smcr-red));
  content: "";
  box-shadow: 0 0 13px rgba(255, 211, 106, 0.32);
  transform: rotate(45deg);
}

.smcr-feature p {
  margin: 0;
  color: rgba(237, 241, 255, 0.78);
  line-height: 1.7;
}

.smcr-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.smcr-info-grid .smcr-feature {
  height: calc(100% - 22px);
}

.smcr-cover a {
  display: inline-block;
  overflow: hidden;
  max-width: min(100%, 480px);
  border: 1px solid rgba(255, 211, 106, 0.28);
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.smcr-cover a:hover,
.smcr-cover a:focus-visible {
  outline: none;
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.42), 0 0 28px rgba(239, 86, 101, 0.16);
}

.smcr-cover img {
  display: block;
  width: 100% !important;
}

.smcr-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.smcr-gallery img {
  width: 100% !important;
  border: 1px solid rgba(130, 153, 222, 0.2);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(4, 8, 24, 0.24);
}

.smcr-release-note {
  width: fit-content;
  margin: 28px auto;
  padding: 10px 16px;
  border: 1px solid rgba(255, 211, 106, 0.32);
  border-radius: 999px;
  background: rgba(255, 211, 106, 0.08);
  color: #ffe7aa;
  font-weight: 800;
  text-align: center;
}

.smcr-trailer {
  margin: 0;
  padding: 22px;
  border-radius: 20px;
  background: rgba(8, 13, 34, 0.52);
  color: rgba(237, 241, 255, 0.78);
  line-height: 1.8;
}

.smcr-trailer iframe {
  display: block;
  width: min(100%, 760px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 14px auto;
  border: 1px solid rgba(105, 185, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.32);
}

.smcr-pantheon-intro {
  border-left-color: var(--smcr-gold);
  background: linear-gradient(100deg, rgba(255, 211, 106, 0.09), rgba(49, 65, 112, 0.2));
}

.smcr-table-wrap {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(132, 153, 219, 0.18);
  border-radius: 19px;
  background: rgba(9, 14, 36, 0.45);
  box-shadow: 0 18px 36px rgba(3, 7, 22, 0.22);
}

.smcr-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #eef2ff !important;
}

.smcr-table > thead > tr > th {
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid rgba(132, 153, 219, 0.2);
  background: rgba(44, 56, 101, 0.52);
  color: rgba(218, 226, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smcr-table > tbody > tr > td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid rgba(132, 153, 219, 0.1);
  background: transparent;
  vertical-align: middle;
}

.smcr-table > tbody > tr:last-child > td {
  border-bottom: 0;
}

.smcr-table > tbody > tr {
  transition: background-color 170ms ease;
}

.smcr-table > tbody > tr:hover {
  background: rgba(105, 185, 255, 0.055);
}

.smcr-legends-table .smcr-rank strong,
.smcr-records-table .smcr-rank {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(145, 165, 225, 0.24);
  border-radius: 11px;
  background: rgba(71, 86, 140, 0.2);
  color: #fff;
}

.smcr-legends-table tbody tr:nth-child(1) .smcr-rank strong {
  border-color: rgba(255, 211, 106, 0.64);
  background: linear-gradient(145deg, #ffdf7d, #be7c26);
  color: #34220a;
  box-shadow: 0 0 18px rgba(255, 211, 106, 0.18);
}

.smcr-legends-table tbody tr:nth-child(2) .smcr-rank strong {
  border-color: rgba(221, 229, 247, 0.56);
  background: linear-gradient(145deg, #e7edf8, #8798b7);
  color: #26324b;
}

.smcr-legends-table tbody tr:nth-child(3) .smcr-rank strong {
  border-color: rgba(226, 154, 102, 0.56);
  background: linear-gradient(145deg, #e5a170, #955133);
  color: #2d160e;
}

.smcr-player-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.smcr-player-link:hover,
.smcr-player-link:focus-visible {
  color: #ffe19a;
  outline: none;
}

.smcr-player-link .support-avatar {
  width: 48px;
  height: 48px;
  margin: 7px;
}

.smcr-player-avatar {
  width: 48px;
  height: 48px !important;
  margin: 0 !important;
  object-fit: cover;
}

.smcr-empty {
  padding: 28px;
  border: 1px dashed rgba(255, 211, 106, 0.28);
  border-radius: 18px;
  background: rgba(255, 211, 106, 0.045);
  color: rgba(238, 242, 255, 0.74);
  line-height: 1.7;
}

.smcr-legacy {
  margin-top: 28px;
  padding: 4px 22px 18px;
  border: 1px solid rgba(255, 211, 106, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 211, 106, 0.06), rgba(115, 76, 45, 0.08));
}

.smcr-legacy h5 {
  color: #ffe3a0;
  font-weight: 900;
}

.smcr-legacy p {
  margin: 0;
  color: rgba(237, 241, 255, 0.78);
  line-height: 2.15;
}

.smcr-legacy-rank {
  display: inline-block;
  width: 24px;
  margin-left: 15px;
  color: var(--smcr-gold);
  text-align: center;
}

.smcr-legacy-date {
  color: rgba(219, 226, 250, 0.52);
  font-size: 10px;
}

.smcr-level-picker {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid rgba(105, 185, 255, 0.18);
  border-radius: 18px;
  background: rgba(34, 46, 88, 0.46);
  color: rgba(237, 241, 255, 0.78);
  font-weight: 800;
}

.smcr-level-picker .pagination {
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 0;
}

.smcr-level-picker .page-link {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(132, 153, 219, 0.22);
  border-radius: 11px !important;
  background: rgba(15, 22, 52, 0.72);
  color: rgba(237, 241, 255, 0.72);
  font-weight: 900;
  box-shadow: none;
}

.smcr-level-picker .page-link:hover,
.smcr-level-picker .page-link:focus-visible {
  border-color: rgba(239, 86, 101, 0.62);
  background: rgba(239, 86, 101, 0.14);
  color: #fff;
  outline: none;
}

.smcr-level-picker .page-item.active .page-link {
  border-color: rgba(255, 211, 106, 0.58);
  background: linear-gradient(145deg, var(--smcr-red), var(--smcr-red-deep));
  color: #fff;
  box-shadow: 0 8px 18px rgba(191, 52, 76, 0.28);
}

.smcr-level-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 900;
}

.smcr-level-title #num_niveau {
  color: var(--smcr-gold);
}

.smcr-level-title #nom_niveau {
  color: #b9dfff;
}

.smcr-records-table {
  min-width: 720px;
}

.smcr-records-table .smcr-rank {
  margin: auto;
}

@media (max-width: 767.98px) {
  .smcr-page {
    margin-top: 16px;
  }

  .smcr-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .smcr-tab {
    min-height: 58px;
    justify-content: flex-start;
    padding: 10px 13px;
    border-radius: 15px;
  }

  .smcr-tab i {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .smcr-panel {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .smcr-lead,
  .smcr-feature,
  .smcr-trailer,
  .smcr-level-picker {
    padding: 17px;
  }

  .smcr-info-grid,
  .smcr-gallery {
    grid-template-columns: 1fr;
  }

  .smcr-legends-table {
    min-width: 560px;
  }

  .smcr-table > thead > tr > th,
  .smcr-table > tbody > tr > td {
    padding-right: 13px;
    padding-left: 13px;
  }

  .smcr-legacy {
    padding-right: 14px;
    padding-left: 14px;
  }

  .smcr-legacy-rank {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smcr-view {
    animation: none;
  }

  .smcr-tab,
  .smcr-download .btn-normal,
  .smcr-cover a {
    transition: none;
  }
}
