@font-face {
  font-family: "Shurjo";
  src: url("../fonts/ShurjoWeb_400_v5_1.woff") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100..700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap");

@font-face {
  font-family: "Shurjo";
  src: url("../fonts/ShurjoWeb_700_v5_1.woff") format("truetype");
  font-weight: bold;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Shurjo", sans-serif;
}
html,
body {
  width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

.site-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5eaee;
}

/* header logo */
.header-logo {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 24px 0;
  height: 104px;
  background-color: #f5eaee;
  border-bottom: 1px solid #0000001e;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* nav-bar  */
.top-nav-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background-color: #f5eaee;
}

ul.top-nav-list {
  list-style: none;
}

.top-nav-link {
  display: block;
  padding: 20px 12px;
  font-size: 16px;
  font-weight: 500;
  color: black;
  position: relative;
  transition: color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.top-nav-link:hover {
  color: #540064;
}

.top-nav-link.active {
  color: #540064;
  font-weight: 600;
}

.top-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: #540064;
}

/* banner */

/* .banner-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  background-image: url("../img/Website\ Banner\ Desktop.png");
  background-size: cover;
  background-position: center;
} */

/* .banner-section {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 120px;

  background-image: url("../img/Website\ Banner\ Desktop.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
} */

/* .banner-content {
  text-align: center;
  color: white;
}

.banner-title {
  font-size: 64px;
  font-weight: bold;
} */

.banner-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #3b53d4;
  height: 200px;
}

.banner-section img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Match Update Section */

.match-update-section {
  padding: 32px 220px;
  background-color: #fff;
}

/* Header row */
.mu-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mu-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #540064;
}

.mu-label-bar {
  display: inline-block;
  width: 4px;
  height: 25px;
  background: #540064;
  border-radius: 100px;
  flex-shrink: 0;
}

.ai-btn {
  display: inline-block;
  color: transparent;
  border: none;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

/* Teams row */
.mu-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 24px 0;
}

.mu-dash {
  font-family: "Roboto Mono", monospace;
  font-size: 40px;
  color: rgba(0, 0, 0, 0.56);
  font-weight: bold;
}

.mu-team {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.mu-team .flag-lg img {
  width: 51px;
  height: 36px;
}

.mu-team-name {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  color: rgba(0, 0, 0, 0.87);
}

/* countdown */
.countdown-row {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-template-columns: repeat(5, auto);
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  padding-bottom: 24px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cd-num {
  font-size: 42px;
  font-weight: bold;
  line-height: 1.06;
  text-align: center;
  color: rgba(0, 0, 0, 0.87);
}

.cd-lbl {
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  color: rgba(0, 0, 0, 0.68);
  padding: 0 12px;
}

.cd-dot-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-dot {
  width: 12px;
  height: 12px;
  transform: rotate(-315deg);
  background-color: #9c27b0;
}

.empty {
  width: 12px;
  height: 12px;
}

.mu-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.mu-meta-item {
  display: flex;
  line-height: 1.3;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.56);
}

.mu-meta-separator {
  width: 2px;
  height: 14px;
  border-radius: 100px;
  background-color: rgba(0, 0, 0, 0.12);
}

/* advertisement */
.advertisement-section {
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);

  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #fff;
}

.bottom-advertisement-section {
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #fff;
}

.ad-container {
  height: 89px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.ad-label {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 300;
  text-align: center;
  color: rgba(0, 0, 0, 0.38);
}

/* schedule section */
.schedule-section {
  padding: 0 220px;
  background: #fff;
}

/* ---- Tab Bar ---- */
.sched-tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  overflow-x: auto;
}

.sched-tab {
  height: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background-color: #fff;
  border: none;
  white-space: nowrap;
}

.sched-tab.active {
  background-color: #ecd9df;
}

.sched-tab.active .tab-text {
  color: rgba(0, 0, 0, 0.87);
}

.tab-text {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.38);
}

/* .sched-tab:hover:not(.active) {
  background: #f5eaee;
  cursor: pointer;
} */

/* ---- Filter Row ---- */
.filter-section {
  background-color: #ecd9df;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 220px;
}

.filter-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-between;
  overflow-x: auto;
}

.filter-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  text-align: left;
  color: rgba(0, 0, 0, 0.56);
  cursor: pointer;
  text-decoration: none;
}

.filter-item.active {
  background: #fff;
  color: rgba(0, 0, 0, 0.56);
}

/* .filter-item:hover:not(.active) {
  background: #fff;
} */

/* ---- Date Navigation Bar ---- */
.date-nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  margin-top: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #d5cfc5;
  height: 40px;
}

.date-range-text {
  display: none;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  text-align: left;
  color: rgba(0, 0, 0, 0.87);
}

.date-range-text.active {
  display: block;
}

.date-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s,
    color 0.15s;
  cursor: pointer;
}

.date-arrow:hover {
  color: #ed9cde;
}

.date-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-arrow:disabled:hover {
  color: rgba(0, 0, 0, 0.87);
}

/* ---- Team selector (schedule-team) ---- */
.team-nav-bar {
  position: relative;
}

.team-nav-bar .team-selector {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.team-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.87);
  cursor: pointer;
  max-width: 100%;
}

.team-selector-btn:hover,
.team-selector-btn[aria-expanded="true"] {
  color: #540064;
}

.team-selected-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.team-selector-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.team-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(320px, calc(100vw - 32px));
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
}

.team-dropdown[hidden] {
  display: none;
}

.team-dropdown-group + .team-dropdown-group {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 4px;
  padding-top: 4px;
}

.team-dropdown-group-label {
  padding: 8px 16px 4px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
  color: #9c27b0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-dropdown-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: rgba(0, 0, 0, 0.87);
  cursor: pointer;
}

.team-dropdown-option:hover,
.team-dropdown-option:focus-visible {
  background: rgba(84, 0, 100, 0.06);
  outline: none;
}

.team-dropdown-option.active,
.team-dropdown-option[aria-selected="true"] {
  color: #540064;
  background: rgba(84, 0, 100, 0.08);
}

/* match list  */
.match-list-section {
  display: flex;
  flex-direction: column;
  padding: 24px 220px;
  background: #fff;
}

/* Day group header */
.day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.day-text,
.day-date {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  color: rgba(0, 0, 0, 0.56);
}

.day-separator {
  width: 2px;
  height: 14px;
  flex-grow: 0;
  border-radius: 100px;
  background-color: rgba(0, 0, 0, 0.12);
}

/* Match row */
.match-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  column-gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.match-row .match-info {
  justify-self: end;
}

/* Left: Team names */
.match-teams {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 140px;
  padding: 8px 0;
  align-items: flex-start;
}

.team-top {
  display: grid;
  grid-template-columns: auto max-content auto;
  gap: 12px;
  align-items: center;
}

.team-line {
  display: flex;
  align-items: center;
  max-width: 280px;
  gap: 8px;
  padding: 3px 0;
}

/* Small flag rectangles */
.flag-sm {
  width: 30px;
  height: 22px;
}

.flag-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.t-name,
.t-score {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.33;
  text-align: left;
  color: rgba(0, 0, 0, 0.87);
}

.t-score {
  text-align: right;
  white-space: nowrap;
}

.t-name.lost,
.t-score.lost {
  color: rgba(0, 0, 0, 0.38);
}

.match-row .ai-btn {
  justify-self: center;
}

/* Center: AI badge circle */
.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}
/* Right: Match info */
.match-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.m-time {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.38;
  text-align: right;
  color: #8a1538;
}

.m-detail {
  display: flex;
  gap: 8px;
}

.m-detail .row-1,
.m-detail .row-2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.group-label,
.match-number,
.venue {
  font-size: 16px;
  line-height: 1.3;
  text-align: right;
  color: rgba(0, 0, 0, 0.38);
}

.md-separator {
  width: 2px;
  height: 14px;
  border-radius: 100px;
  background-color: rgba(0, 0, 0, 0.12);
}

/* country cards */

.country-section {
  padding: 32px 220px;
  background-color: #f7f7f7;
}

.country-carousel-viewport {
  --card-gap: 16px;
  --card-width: 260px;
  --cards-visible: 4;
  --card-peek: 0.25;
  width: 100%;
  overflow: hidden;
}

.country-cards-grid {
  display: flex;
  flex-direction: row;
  gap: var(--card-gap);
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.country-cards-grid::-webkit-scrollbar {
  display: none;
}

.country-card {
  flex: 0 0 var(--card-width);
  min-width: var(--card-width);
  scroll-snap-align: start;
  color: #ffffff;
  min-height: 175px;
  display: flex;
  flex-direction: column;
}

.card-flag-img {
  width: 40px;
  height: 28px;
}

.card-flag-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-flag-wrap {
  display: flex;
  flex-direction: column;
  gap: 38px;
  padding: 16px;
  height: 210px;
  justify-content: space-between;
}

.card-host-label {
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
  color: #fff;
}

.card-country-name {
  font-size: 36px;
  line-height: 1.3;
  text-align: left;
  color: #fff;
}

.flag-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.card-stats {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 11px;
  padding: 16px;
  background: #fff;
}

.card-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.card-stat-label,
.card-stat-value {
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}
.card-stat-label {
  color: rgba(0, 0, 0, 0.56);
}

.card-stat-value {
  color: rgba(0, 0, 0, 0.87);
  font-weight: bold;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.c-dot {
  padding: 0;
  border: none;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}

.c-dot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.c-dot .c-dot-img-prev,
.c-dot .c-dot-img-next {
  width: 32px;
  height: 32px;
  display: block;
}

.c-dot .c-dot-img-prev {
  transform: rotate(180deg);
}

.site-footer {
  display: flex;
  height: 88px;
  background-color: #f5eaee;
  padding: 32px 60px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  height: 104px;
  border-bottom: 1px solid #0000001e;
}
.footer-copy {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: rgba(0, 0, 0, 0.68);
}

@media (max-width: 1180px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .header-logo {
    justify-content: flex-start;
    height: auto;
    padding: 0;
    border-bottom: none;
  }

  .header-logo img {
    height: 36px;
    width: auto;
  }

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

  .top-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .top-nav.active {
    display: block;
  }

  .top-nav-list {
    flex-direction: column;
    gap: 0;
  }

  .top-nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }

  .banner-section {
    height: 100%;
    max-height: 200px;
  }

  .banner-title {
    font-size: 32px;
  }

  /* Match Update Section */

  .match-update-section {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mu-header-row {
    margin-bottom: 0;
  }

  .mu-teams-row {
    justify-content: space-between;
    padding: 0;
  }

  .mu-team.team-left {
    align-items: flex-start;
  }

  .mu-team.team-right {
    align-items: flex-end;
  }

  .countdown-row {
    padding-bottom: 0;
  }

  .cd-num {
    font-size: 32px;
    line-height: 1.4;
  }

  .mu-meta {
    gap: 6px;
  }

  .advertisement-section {
    padding: 16px 32px;
  }

  .ad-container {
    height: 250px;
  }

  .schedule-section {
    padding: 16px;
  }

  .sched-tab-bar {
    padding: 0;
  }

  .sched-tab {
    padding: 8px 28px;
  }

  .sched-tab.active {
    background-color: #ecd9df;
  }

  .filter-section {
    padding: 16px;
  }

  .filter-item {
    padding: 8px 60px;
  }

  .team-dropdown {
    width: min(300px, calc(100vw - 32px));
    max-height: 280px;
  }

  .match-list-section {
    padding: 16px;
  }

  .match-row {
    column-gap: 16px;
    padding: 0;
  }

  .team-top {
    column-gap: 10px;
  }

  .match-info {
    gap: 2px;
    padding: 4px 0;
  }

  .m-detail {
    gap: 2px;
    flex-direction: column;
  }

  .m-detail .row-1,
  .m-detail .row-2 {
    justify-content: flex-end;
  }

  .mobile-hide {
    display: none;
  }

  .country-section {
    padding: 32px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  .country-carousel-viewport {
    --card-gap: 9px;
    --cards-visible: 2;
    --card-peek: 0.35;
  }

  .card-flag-img img {
    width: 40px;
    height: 28px;
  }

  .card-flag-wrap {
    gap: 0;
    padding: 16px 8px;
    width: 100%;
    height: 150px;
  }

  .card-country-name {
    font-size: 22px;
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    height: auto;
    padding: 14px 0 16px 0;
  }

  .footer-logo {
    height: 40px;
    border-bottom: none;
    padding: 0 96px;
  }
}
