/* =========================================================
   DETAIL TOURNAMENT PAGE STYLES
   ========================================================= */

body.detail-page-body {
  background-color: #f7f7f7;
}

/* --- SIDEBAR --- */
.tournament-sidebar {
  width: 320px;
  background: white;
  border-right: 1px solid #eaeaea;
  min-height: 100vh;
  padding: 20px;
  padding-top: 20px;
}

/* Mobile: off-canvas sidebar */
@media (max-width: 991.98px) {
  .tournament-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: none;
  }

  .tournament-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }
}

/* Desktop: sticky sidebar */
@media (min-width: 992px) {
  .tournament-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding-top: 100px;
  }
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
  position: absolute;
  top: 65px;
  left: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
}

.sidebar-toggle-btn:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.sidebar-title {
  font-size: 1.3rem;
  color: #000;
  font-weight: 400;
  text-decoration: none;
}

.sidebar-section-title {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-top: 30px;
}

.sidebar-item-img {
  width: 105px;
  aspect-ratio: 1/1;
  position: absolute;
  left: -20px;
  top: -25px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-item {
  position: relative;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 16px;
  background-color: #fff;
  text-decoration: none;
}

.sidebar-item:hover,
.sidebar-item.active-item {
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-item-inner {
  position: relative;
  z-index: 2;
  padding: 10px;
  display: flex;
  border-radius: 13px 13px 0 0;
  padding: 4px 10px 4px 70px;
  min-height: 60px;
  z-index: 11;
  font-weight: 500;
  font-size: 1.05em;
  line-height: 1.1em;
  align-items: center;
}

.sidebar-item .title {
  text-decoration: none;
  color: #000;
}

.sidebar-item.coming-soon .title {
  color: #d6d6d6;
}

/* Sidebar status */
.sidebar-item .badge-status {
  background: url(/tournament/asset/images/bg-icon-badge-status.webp) no-repeat center;
  background-size: cover;
  border: none;
  position: absolute;
  top: -20px;
  right: -10px;
  width: 45px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-item .badge-status::before {
  content: "";
  width: 90%;
  aspect-ratio: 1/1;
  display: block;
}

.sidebar-item .badge-status.status-open::before {
  content: "";
  background: url(/tournament/asset/images/icon-register.webp) no-repeat center;
  background-size: cover;
}

.sidebar-item .badge-status.status-live::before {
  content: "";
  background: url(/tournament/asset/images/icon-vs.webp) no-repeat center;
  background-size: cover;
}

.sidebar-item .badge-status.status-ended::before {
  content: "";
  background: url(/tournament/asset/images/icon-final.webp) no-repeat center;
  background-size: cover;
}




/* Sidebar Footer */
.sidebar-item-footer {
  position: relative;
  z-index: 10;
  height: 40px;
  padding: 4px 10px 4px 100px;
  font-size: .9em;
  border-radius: 0 0 13px 13px;
  display: flex;
  align-items: center;
}

ใ .sidebar-item.official .sidebar-item-footer {
  background-color: #F8F0E4;
  color: #824C00;
}

.sidebar-item.community .sidebar-item-footer {
  background-color: #E2F5F7;
  color: #4D9CC1;
}


/* Sidebar coming-soon */
.sidebar-item.coming-soon .sidebar-item-inner {
  text-align: right;
  justify-content: flex-end;
  font-family: 'Unblocker';
  font-size: 1.6em;
  color: #A8A8A8;
}

.sidebar-item.coming-soon .sidebar-item-footer {
  background-color: #ECECEC;
  color: #7F7F7F;
  text-align: right;
  justify-content: flex-end;
}

.sidebar-item.coming-soon .sidebar-item-img {
  width: 48%;
  z-index: 100;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-item-content {
  text-transform: capitalize;
}

.sidebar-item-footer .sidebar-date::before {
  content: "เริ่มแข่ง ";
}
.sidebar-item-footer .sidebar-ended::before {
  content: "สิ้นสุดการแข่งขัน ";
}


/*  Active-item */
.sidebar-item.active-item {
  border-radius: var(--16, 16px);
  border: 4px solid var(--Color-9, #46BE51);
  background: #ECFBEE;
}

.sidebar-item.active-item .sidebar-item-footer {
  background-color: #D2F1D6;
  color: #46BE51;
}


.sidebar-item.active-item {
  border-radius: var(--16, 16px);
  border: 4px solid var(--Color-9, #46BE51);
  background: #ECFBEE;
}

.sidebar-item.community {
  background: linear-gradient(270deg, #FFF 0%, #E4F6F8 100%);
}










/* Overriding global badge for sidebar */

.sidebar-item .sidebar-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 60px;
  width: 90px;
  border-radius: 0 12px 0 12px;
  padding: 5px 5px;
  font-size: .8em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-item.official .sidebar-badge {
  color: #6a4404;
  background: var(--bg-official) !important;
  border: 1px solid #FDD491;
}

.sidebar-item.official .sidebar-badge::before {
  content: "Official";
}

.sidebar-item.community .sidebar-badge {
  color: #173678;
  background: var(--bg-community) !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.sidebar-item.community .sidebar-badge::before {
  content: "Community";
}

.sidebar-item.community .sidebar-badge {
  color: #444;
  background: var(--bg-community) !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.sidebar-item.community .sidebar-badge::before {
  content: "Community";
}



/* END SIDEBAR */



/* --- MAIN CONTENT TOP NAV --- */
.tournament-detail-main {
  background-color: #fcfcfc;
}

@media (min-width: 992px) {
  .tournament-detail-main {
    width: calc(100% - 320px);
  }
}




/* --- HERO BANNER --- */
.detail-hero {
  height: 300px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .detail-hero {
    height: 300px;
  }
}

.content-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
  width: 100%;
}

.detail-hero-img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: right top;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
  z-index: 2;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.00) 15.8%, rgba(0, 0, 0, 0.50) 34.62%);
  backdrop-filter: blur(4px);
  padding-bottom: 0;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 160px;
  width: 100%;

}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.detail-hero .title-box {
  border-bottom: 2px solid rgba(0, 0, 0, 0.00);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.25) 46.88%);
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 20px;
}

.hero-title {
  font-size: 22px;
  margin: 0;
}

.detail-hero .btn-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: url(/tournament/asset/images/main-pattern.webp) no-repeat center right;
  background-size: 1200px;
  padding: 20px 10px 0 10px;
}

.type-tournament {
  width: 40px;
  filter: drop-shadow(0 0 10px #06060689);
}

.hero-logo {
  margin: 0;
  width: 140px;
  position: absolute;
  top: -82px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}


.btn-register-action {
  position: relative;
  overflow: hidden;
  border: 3px solid #249635;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(43, 178, 64, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2em;
  gap: 0;
  width: 80%;
  height: 60px;
  background: #46BE51 url(/tournament/asset/images/main-pattern.webp) no-repeat center right;
  background-size: 300px;
  font-size: 22px;
  line-height: 1em;
}

.btn-register-action span {
  font-size: .6em;
}

.btn-register-action:hover {
  filter: brightness(1.1);
  color: #fff;
  background: #46BE51 url(/tournament/asset/images/main-pattern.webp) no-repeat center right;
  background-size: 300px;
}

.btn-register-action::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  filter: blur(5px);
  animation: shine-register-action 3s infinite;
  pointer-events: none;
  transform: translateZ(0);
}

.btn-register-action.disabled {
  opacity: 1;
  background: #46BE51 url(/tournament/asset/images/main-pattern.webp) no-repeat center right;
  filter: grayscale(.9);
  border: 3px solid #249635;
  color: #d3d3d3;
}

.btn-register-action.disabled::after {
  animation: none;
  pointer-events: none;
}

@keyframes shine-register-action {
  0% {
    left: -150%;
  }

  40% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.btn-share-action {
  border: 3px solid #106deb;
  border-radius: 12px 12px 0 0;
  color: #fff;
  padding: 8px 12px;
  box-shadow: 0 4px 10px rgba(23, 126, 255, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
  border-bottom: none;
  height: 60px;
  width: 60px;
  background: #177eff url(/tournament/asset/images/main-pattern.webp) no-repeat center right;
  background-size: 300px;
}

.btn-share-action:hover {
  filter: brightness(1.1);
  color: #fff;
  background: #177eff url(/tournament/asset/images/main-pattern.webp) no-repeat center right;
  background-size: 300px;
}




@media (min-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-content {
    width: 600px;
    left: 0%;
    transform: none;
    border-radius: 0 16px 16px 0;
  }

  .content-right {
    width: 70%;
    border-radius: 0 16px 16px 0;
    overflow: hidden;
  }

  .hero-logo {
    position: relative;
    width: 34%;
    left: 13px;
    transform: none;
    top: -19px;
    margin-right: -20px;
  }

  .detail-hero .title-box {
    padding: 0;
  }

  .btn-register-action {
    font-size: 25px;
    height: 65px;
    padding-top: 9px;
    font-weight: 600;
  }

  .btn-register-action span {
    font-weight: 400;
    line-height: 1.2em;
  }

  .btn-share-action {
    height: 65px;
  }

  .hero-content {
    width: 700px;
  }
}

@media (min-width: 1200px) {
  .detail-hero {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
  }

  .hero-content {
    width: 700px;
    left: 0%;
    transform: none;
  }



}

@media (min-width: 1440px) {

  .detail-hero {
    width: 1920px;
    margin: 0 auto;
  }

  .btn-register-action {
    height: 72px;
    font-size: 31px;
  }

  .btn-share-action {
    height: 72px;
    width: 72px;
    padding: 15px;
  }

  .type-tournament {
    width: 40px;
    filter: drop-shadow(0 0 10px #0606063a);
  }
}

@media (min-width: 1921px) {
  .detail-hero {
    height: 350px;
  }

  .detail-hero-img {
    width: 1920px;
    margin: 0 auto;
    display: block;
    position: relative;
  }

  .detail-hero::before {
    content: "ddd ";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
    z-index: 10;
  }

  .detail-hero::after {
    content: "ddd ";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
    z-index: 10;
  }
}




/* --- TABS --- */
.detail-tabs-container {
  border-radius: var(--16, 16px);
  border: none;
  background: linear-gradient(90deg, var(--Color-20, rgba(35, 165, 255, 0.20)) 49.16%, var(--Color-7, rgba(255, 255, 255, 0.04)) 100%), var(--Color-5, #FFF);
  border-radius: 14px;
  width: 100%;
}

.detail-tabs-wrapper {
  max-width: 1920px;
  margin: auto;
}

.btn-detail-tab {
  flex: 1 1 auto;
  text-align: center;
  background: transparent;
  border-radius: 10px;
  font-weight: 500;
  color: #555;
  transition: color 0.3s;
  z-index: 2;
  position: relative;
  font-size: 14px;
  border: 1px solid transparent;
  height: 50px;
  color: #114A71;
}

.btn-detail-tab:hover {
  color: #177eff;
}



.btn-detail-tab.active {
  background: linear-gradient(203deg, #7E94FF 2.08%, #2DABFF 32.84%, #2CC1FF 88.54%);
  border: solid 5px #1a8cff;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  color: #fff;
}

.btn-detail-tab.active:hover {
  border: solid 5px #44a2ff;
  filter: brightness(1.1);
  color: #fff;
}

.btn-detail-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: url(/tournament/asset/images/btn-main-pattern.webp) no-repeat center right;
  background-size: 500px;
  mix-blend-mode: overlay;
}

.btn-detail-tab.active::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 17px;
  aspect-ratio: 1/1;
  background: url(/tournament/asset/images/btn-main-folds.webp) no-repeat center right;
  background-size: cover;
  mix-blend-mode: overlay;
}

.btn-detail-tab.disabled {
  border: none;
  opacity: .1;
  cursor: not-allowed;
}


.detail-tab-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  background: linear-gradient(203deg, #7E94FF 2.08%, #2DABFF 32.84%, #2CC1FF 88.54%);
  border-radius: 10px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

@media (min-width: 768px) {
  .btn-detail-tab {
    font-size: 25px;
    height: 60px;
  }
}

@media (min-width: 1440px) {
  .btn-detail-tab {
    font-size: 25px;
    height: 65px;
  }
}

/* --- TAB CONTENT --- */
.bg-light-gray {
  background-color: #f8f8f8;
}

/* Phase Hexagon Badge */
.phase-badge-box {
  margin-top: 40px;
}

.phase-hexagon {
  width: 50%;
  aspect-ratio: 1/1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: contrast(.4) grayscale(1) opacity(0.5);
}

.phase-step.active .phase-hexagon {
  filter: none;
}

.phase-step.active .phase-hexagon::after {
  content: "";
  background: url(/tournament/asset/images/phase-hexagon-eff1.webp);
  background-size: 100%;
  background-position: center;
  width: 180%;
  aspect-ratio: 1/1;
  z-index: -1;
  position: absolute;
  animation: pulseScale 2s infinite ease-in-out;
}

.phase-step.active .phase-hexagon::before {
  content: "";
  background: url(/tournament/asset/images/phase-hexagon-eff2.webp);
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  width: 180%;
  aspect-ratio: 1/1;
  z-index: 2;
  position: absolute;
  animation: pulseScale2 4s infinite ease-in-out;
  bottom: 0;
  left: auto;
}

@keyframes pulseScale {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: .7;
  }

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



@keyframes pulseScale2 {
  0% {
    opacity: 1;
    transform: scale(0.9);
  }

  50% {
    opacity: .7;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(.9);
  }
}


.phase-step.completed .phase-hexagon {
  filter: none;
}

.phase-hexagon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80%;
  aspect-ratio: 1/1;
}



.name-phase {
  color: var(--color-gray);
  margin: 5px 0 0 0;
  font-weight: 600;
}

.badge-date {
  border-radius: var(--8, 8px);
  color: var(--color-gray);
  padding: 0 10px;
  width: fit-content;
  margin: auto;
  font-size: .85em;
  line-height: 1em;
}


.phase-step.active .name-phase {
  color: #824C00;

}



/* --- SCHEDULE ACCORDION --- */
.schedule-accordion .accordion-item {
  border-radius: 12px;
}

.schedule-accordion .accordion-item.today .accordion-button {
  color: #000;
}

.schedule-accordion .accordion-item.today .date {
  position: relative;
}

.schedule-accordion .accordion-item.today .date::before {
  content: " ";
  width: 50px;
  aspect-ratio: 1.5/1;
  background: url(/tournament/asset/images/icon-phase-step-active.webp);
  background-size: 100%;
  background-position: center;
  position: absolute;
  top: -35px;
  right: -60px;
}

.schedule-accordion .accordion-item.today .schedule-match-count {
  border-radius: var(--8, 8px);
  background: rgba(117, 222, 90, 0.13);
  color: #46BE51;
}

.schedule-accordion .accordion-button {
  border-radius: 12px !important;
  font-weight: 500;
  color: #333;
  padding: 16px 20px;
  border-radius: var(--16, 16px);
  border: 1px solid var(--Color-18, rgba(0, 0, 0, 0.05));
  background: linear-gradient(270deg, rgba(251, 251, 251, 0.20) 0%, rgba(201, 255, 246, 0.20) 100%), var(--Color-13, #F8F8F8);
  box-shadow: none;
  gap: 10px;
  min-width: 100px;
  font-size: 22px;
}

.schedule-accordion .accordion-button:not(.collapsed) {
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.schedule-accordion .accordion-button:focus {
  box-shadow: none;
}

.schedule-match-count {
  background: #f0f0f0;
  color: #824C00;
  border-radius: 6px;
  padding: 10px 10px;
  font-size: 1rem;
  border-radius: var(--8, 8px);
  background: rgba(254, 209, 97, 0.28);
  min-width: 60px;
  text-align: center;
}

.schedule-matches-list {
  max-width: 900px;
  border-radius: 16px;
  margin: auto;
  border: none;

}

/* Match Cards */

.match-card {
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.15);
  background: transparent;
  border-radius: 16px;
}

.match-card .team-logo {
  width: 100px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
}

.match-header {
  border-bottom: 1px solid #eee;
  background: linear-gradient(90deg, rgba(151, 201, 232, 0.20) 0%, rgba(200, 234, 255, 0.20) 88.22%), var(--Color-13, #F8F8F8);
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px 0px 0;
  height: 40px;
  color: #114A71;
}

.match-card .btn-watch {
  display: none;
}

.count-timer {
  margin-left: auto;
  color: #114A71;
}

.match-header::before {
  content: " ";
  background: #23A5FF url(/tournament/asset/images/icon-match.webp) no-repeat center;
  background-size: 50px;
  background-position: left center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1em;
  width: 60px;
  padding-right: 20px;
  border-radius: 5px 0 10px 0;
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}

.match-card.live .match-header {
  background: linear-gradient(90deg, rgba(151, 201, 232, 0.20) 0%, rgba(200, 234, 255, 0.20) 88.22%), var(--Color-13, #F8F8F8);
  color: #114A71;
}


.match-card.ended .match-header {
  background: linear-gradient(90deg, rgba(180, 180, 180, 0.20) 0%, rgba(200, 234, 255, 0.20) 88.22%), var(--Color-13, #F8F8F8);
  color: #7F7F7F;
}

.match-card.ended .match-header::before {
  background-color: #A8A8A8;
}

.match-card.ended .match-header .count-timer {
  color: #7F7F7F;
}


.match-card.active .count-timer {
  display: none;
}


.match-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-body .team {
  font-size: 1.2em;
}

.scorebox .score-a,
.scorebox .score-b {
  width: 30px;
  text-align: center;
  font-size: 2em;
}

.scorebox .vs {
  background: #f8f8f8;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 1em;
}


.match-card.active .btn-watch {
  background: transparent;
  color: #fff;
  position: absolute;
  right: 0px;
  top: 0;
  height: 100%;
  padding: 0 15px 0 25px;
  border: none;
  font-weight: 500;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-card.active .btn-watch::before {
  content: "";
  position: absolute;
  inset: 0 -20px 0 0;
  background: #FF006A;
  z-index: -1;
  border-radius: 0;
  transform: skewX(-27deg);
  transform-origin: bottom left;
  transition: all 0.3s ease;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 70%), linear-gradient(90deg, rgba(243, 194, 255, 0.00) -11.62%, #FF0004 71.56%), var(--Color-22, #FF006A);
  background-blend-mode: plus-lighter, normal;
  background-size: 300% 100%, 100% 100%;
  animation: shinySurfaceLoop 7s linear infinite;
}

.match-card.active .btn-watch:hover {
  background: transparent;
  color: #fff;
}

.match-card.active .btn-watch:hover::before {
  filter: brightness(1.1);
}

/* --- OVERVIEW TAB --- */
.detail-tab-pane {
  width: 100%;
  max-width: 1920px;
  margin: auto;
}

.phase-timeline-container {
  min-height: 200px;
  border-radius: var(--16, 16px);
  background: linear-gradient(308deg, rgba(191, 147, 48, 0.00) 43.92%, rgba(205, 162, 64, 0.04) 58.37%, rgba(255, 213, 118, 0.20) 72.46%, rgba(255, 228, 166, 0.20) 87.91%, rgba(246, 216, 149, 0.17) 101.36%, rgba(191, 147, 48, 0.00) 114.84%, rgba(255, 225, 157, 0.20) 134.42%), #F8FEFF;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100%;
  padding-top: 50px;
  padding-bottom: 20px !important;
  display: flex;
  flex-wrap: nowrap !important;
}

.phase-timeline-container {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  padding-top: 60px;
  padding-bottom: 20px;
}

.phase-timeline-container::-webkit-scrollbar {
  display: none;
}


.phase-step {
  max-width: 250px;
  width: 120px;
  flex-shrink: 0;
  position: relative;
  font-size: 14px;
}

.phase-step.active::before {
  content: " ";
  position: absolute;
  background: url(/tournament/asset/images/icon-phase-step-active.webp);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  width: 20%;
  aspect-ratio: 1.55/1;
  z-index: 3;
  right: 15%;
  top: 0%;
}

.phase-step::after {
  content: "";
  font-family: monospace;
  letter-spacing: -2px;
  background: url(/tournament/asset/images/icon-connector.webp);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 25px;
  left: -22px;
  width: 50px;
  aspect-ratio: 5/1;
  filter: contrast(.4) grayscale(1) opacity(0.5);
}

.phase-step.active::after,
.phase-step.completed::after {
  filter: none;
}

.phase-step:first-child {
  margin-left: 0;
}

.phase-step:first-child::after {
  display: none;
}


@media (min-width: 768px) {
  .phase-step {
    max-width: 250px;
    width: 250px;
    font-size: 22px;
  }

  .phase-step::after {
    width: 100px;
    left: -45px;
    top: 50px;
  }
}

@media (min-width: 1200px) {
  .phase-step {
    max-width: none;
    width: 320px;
    font-size: 22px;
  }

  .phase-step::after {
    width: 150px;
    left: -70px;
    top: 60px;
  }
}

@media (min-width: 1600px) {}



/* Podium Card Shared */

.championship-reward {
  background-image: url(/tournament/asset/images/bg-championship-reward.webp);
  background-size: 100%;
}

.reward-title {
  font-size: 2em;
}

.podium-container {
  background-image: url(/tournament/asset/images/bg-podium-container.webp);
  background-size: 90%;
  max-width: 1200px;
  margin: auto;
  background-position: center 0px;
  background-repeat: no-repeat;
  animation: floatBg 6s ease-in-out infinite;
  aspect-ratio: 1.9/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

@keyframes floatBg {
  0% {
    background-position: center 0px;
  }

  50% {
    background-position: center -5px;
    background-size: 85%;

  }

  100% {
    background-position: center 0px;

  }
}

.podium-card {
  position: relative;
  background-size: 100% 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  border-radius: 0;
  background-color: transparent;
  transition: transform 0.3s ease;
  padding-top: 22%;
}

.podium-card:hover {
  transform: translateY(-5px);
}

.podium-card.card-silver {
  background-image: url('/asset/images/podium-card-silver.webp');
  background-size: 100%;
  width: 37%;
  aspect-ratio: 553 / 624;
  order: 1;
  top: 20px;
  animation: floatBronze-Silver 5s ease-in-out infinite;
}

.podium-card.card-gold {
  background-image: url('/asset/images/podium-card-gold.webp');
  background-size: 100%;
  width: 33%;
  aspect-ratio: 451 / 681;
  order: 2;
  z-index: 2;
  margin: 0 -150px;
  animation: floatGold 4s ease-in-out infinite;
}

.podium-card .img-reward {
  width: 55%;
  margin: 0 auto;
}



@keyframes floatGold {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

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

.podium-card.card-bronze {
  background-image: url('/asset/images/podium-card-bronze.webp');
  background-size: 100%;
  width: 37%;
  aspect-ratio: 553 / 624;
  order: 3;
  top: 20px;
  animation: floatBronze-Silver 4.5s ease-in-out infinite;
}

@keyframes floatBronze-Silver {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

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

@media (max-width: 768px) {

  .podium-card.card-silver,
  .podium-card.card-gold,
  .podium-card.card-bronze {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
  }

  .podium-card.card-gold {
    order: -1;
  }
}

.podium-avatar {
  position: absolute;
  transform: translateX(-50%);
  width: 37%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  z-index: -1;
  top: 15%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-avatar::before {
  content: " ";
  position: absolute;
  background: url(/tournament/asset/images/podium-card-gold-number.webp);
  background-size: cover;
  width: 40%;
  aspect-ratio: 1/1;
  bottom: 3%;
  right: 0;
}

.podium-avatar img {
  width: 70%;
  aspect-ratio: 1/1;
}

.card-gold .podium-avatar {
  background: url(/tournament/asset/images/avatar-frame-gold.webp);
  background-size: 100%;
  background-position: center;
}

.card-gold .podium-avatar::before {
  background: url(/tournament/asset/images/podium-card-gold-number.webp);
  background-size: cover;
}

.card-bronze .podium-avatar {
  background: url(/tournament/asset/images/avatar-frame-bronze.webp);
  background-size: 100%;
  background-position: center;
  top: 6%;
}

.card-bronze .podium-avatar::before {
  background: url(/tournament/asset/images/podium-card-gold-number.webp);
  background-size: cover;
}


.card-bronze .podium-avatar::before {
  background: url(/tournament/asset/images/podium-card-bronze-number.webp);
  background-size: cover;
}




.podium-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 28%;
  width: 60%;
  padding: 17% 0 3% 0;
  z-index: 0;
  text-align: center;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(90deg, rgba(255, 209, 110, 0.00) 0%, rgba(0, 0, 0, 0.30) 19.71%, rgba(0, 0, 0, 0.30) 47.12%, rgba(0, 0, 0, 0.30) 80.29%, rgba(255, 209, 110, 0.00) 100%), url(/tournament/asset/images/podium-name-line.webp);
  background-size: 100%;
  border-left: var(--0, 0) solid rgba(130, 76, 0, 0.00);
  background-repeat: no-repeat;
  background-position: center bottom;
}

.podium-prize {
  width: 65%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12%;
  text-align: center;
  font-weight: bold;
  font-size: clamp(0.8rem, 1.2vw, 1.1rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-gold .podium-prize {
  color: #a46d0a;
  background: url(/tournament/asset/images/podium-prize-gold.webp);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  aspect-ratio: 5/1;
}

.card-silver .podium-prize {
  color: #555;
}

.card-bronze .podium-prize {
  color: #5a3821;
}

.rank-row {
  transition: background-color 0.2s;
}

.rank-row:hover {
  background-color: #f9f9f9 !important;
}



.ranks-list {
  width: 900px;
}

.rank-row {
  border-radius: var(--12, 12px);
  border: var(--2, 2px) solid var(--Color-18, rgba(0, 0, 0, 0.05));
  background: #fff;
  padding: 5px 15px;
  color: #114A71;
  font-size: 1.1em;
  margin: 5px 0;
}

.img-avatar {
  width: 50px;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.content-box {
  color: #7b7b7b;
}

.content-box img {
  width: 100%;
  max-width: 900px;
  margin: auto;
  display: block;
}

.content-box a {
  transition: all 0.3s ease;
}

.content-box a:hover {
  filter: brightness(1.1);
}


.content-box p {
  margin: 0;

}


@media (min-width: 992px) {

  .content-box img {
    width: auto;
  }
}

/* --- REWARD TABLE --- */
.content-box table {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.content-box table img {
  height: 75px;
  width: auto;
}


.content-box tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-reward tbody tr:nth-child(even) {
  background-color: rgba(232, 244, 253, 0.3);
}

.content-box tbody td {
  padding: 14px 12px;
  color: #3a7fc1;
  font-weight: 500;
  font-size: 1rem;
  vertical-align: middle;
}

.content-box th {
  background: #e4f7ff;
  color: #3a7fc1;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 12px;
  white-space: nowrap;
}


.toast-container {
  top: 40px;
}

/* เพิ่มใน detail-tournament.css */
#shareToast {
  background-color: #23A5FF !important;
  /* เปลี่ยนเป็นรหัสสีที่ต้องการ */
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}