:root {
  --primary-blue: #003366;
  --now-blue-dark: #001a35;
  --now-orange: #f29400;
  --border-color: #e6e6e6;
  --text-main: #333;
  --text-gray: #666;
  --text-light: #999;
  --text-white: #ffffff;
  --text-light-gray: #b0b0b0;
  --category-blue: #005aab;
  --btn-gray: #f2f2f2;
  --color-ad-bg: #f0f0f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
body {
  font-family: "PingFang HK", "Microsoft JhengHei", Arial, sans-serif;
  background: #fff;
  color: var(--text-main);
  line-height: 1.5;
}
img {
  width: 100%;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}
.container-sm {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 1. FIFA Key Visual */
.top-banner {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  letter-spacing: 2px;
  background-color: #faf7ea;
  background-image: url("../images/Now_WC2026_Key-Visual.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.top-banner > h1 {
  font-size: 44px;
}

/* Standard "Visually Hidden" Class */
.hidden-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 2. Date Selector */
.date-selector-wrap {
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.date-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.date-selector__arrow {
  cursor: pointer;
  padding: 0 25px;
  color: #ddd;
  font-size: 20px;
  user-select: none;
}

.date-tabs {
  display: flex;
  gap: 35px;
  overflow: hidden;
}

.date-item {
  text-align: center;
  cursor: pointer;
  padding: 5px 0;
  min-width: 60px;
  border-bottom: 3px solid transparent;
}

.date-item__day {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
}

.date-item__date {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #555;
  margin-top: 2px;
}

.date-item--active {
  border-bottom: 3px solid var(--now-orange);
}
.date-item--active .date-item__date {
  color: #000;
}

/* 3. Match Slider */
.match-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
}

.match-display {
  display: flex;
  justify-content: flex-start;
  padding: 20px 0;
  overflow: hidden;
  flex: 1;
}

.match-slider__arrow {
  cursor: pointer;
  padding: 0 15px;
  color: #ddd;
  font-size: 24px;
  user-select: none;
  z-index: 10;
}

.match-card {
  text-align: left;
  min-width: 170px;
}

.match-card__status {
  color: #000;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 8px;
}

.match-card__status span {
  color: var(--now-orange);
}

.team-row {
  display: flex;
  align-items: center;
  margin: 4px 0;
  font-size: 13px;
  font-weight: 500;
}

.team-flag {
  width: 22px;
  height: 14px;
  background: #f0f0f0;
  margin-right: 10px;
  border: 1px solid #eee;
}

.match-footer {
  text-align: center;
  padding: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-match-center {
  display: inline-block;
  background: var(--now-orange);
  color: white;
  padding: 5px 22px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  transition: opacity 0.2s;
}

.btn-match-center:hover,
.more-news-btn:hover {
  opacity: 0.9;
}

/* 4. Hero Layout */
.hero-section {
  margin: 30px auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 0;
  justify-content: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 20px;
}

.big-news-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.big-news-card__content {
  flex: 1;
}
.big-news-card__image {
  flex: 1.2;
}

.big-news-card__title {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 12px;
}
.big-news-card__desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

.sub-news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 25px;
}

.sub-news-row-next {
  grid-template-columns: repeat(4, 1fr);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border-color);
}

.thumb-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.thumb-card__content {
  flex: 1;
}
.thumb-card__title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}
.meta-time {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.ad-sidebar {
  /*background: #f4f4f4;
  min-height: 250px;
  border: 1px solid #ddd;
  color: #bbb;*/
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

/* 5. WC Report Section */
.wc-report-section {
  background-color: var(--now-blue-dark);
  padding: 30px 0 30px 0;
  color: var(--text-white);
}

.wc-report-section--no-bg {
  background-color: transparent;
  color: var(--text-main);
  margin-top: 0;
}

.wc-report-section--ad {
  background-color: var(--color-ad-bg);
  color: var(--text-main);
  margin-top: 0;
}

.wc-report-section--no-bg .section-header-alt__title {
  color: var(--text-main);
}

.wc-report-section--no-bg .section-header-alt__title::after {
  border-top: 2px solid var(--text-main);
  border-right: 2px solid var(--text-main);
}

.wc-report-section--no-bg .wc-card__title {
  color: var(--text-main);
}

.wc-report-section--no-bg .wc-card__meta {
  color: var(--text-light);
}

.section-header-alt {
  font-size: 19px;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.section-header-alt.section-text {
    cursor: unset;
}

.section-header-alt:hover {
  opacity: 0.8;
}

.section-header-alt__title {
  font-size: 19px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.section-header-alt__title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--now-orange);
  margin-right: 12px;
}

.section-header-alt__title::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--text-white);
  border-right: 2px solid var(--text-white);
  transform: rotate(45deg);
  margin-left: 10px;
}

.wc-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wc-grid {
  display: flex;
  gap: 15px;
  overflow: hidden;
  flex: 1;
}

.wc-slider__arrow {
  cursor: pointer;
  color: #ddd;
  font-size: 24px;
  user-select: none;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.wc-prev,
.extra-prev,
.topic-prev {
  left: -40px;
}

.wc-next,
.extra-next,
.topic-next {
  right: -40px;
}

.wc-card {
  display: flex;
  flex-direction: column;
  width: 208px;
  flex: 0 0 auto;
}

.wc-card.wc-card-lg {
  width: 308px;
}

.wc-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 12px;
  background: #000;
}

.wc-card__image-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}

.wc-card:hover .wc-card__image-wrap img {
  transform: scale(1.05);
}

.wc-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.wc-card__meta {
  font-size: 11px;
  color: var(--text-light-gray);
}

/* 6. News List */
.section-header {
  font-size: 19px;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.section-header::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--now-orange);
  margin-right: 12px;
}

.news-list {
  display: flex;
  flex-direction: column;
  margin: 30px 0;
}
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}
.news-item:first-child {
  padding-top: 0;
}
.news-item__img {
  flex: 0 0 240px;
  background: #f5f5f5;
}
.news-item__content {
  flex: 1;
}
.news-item__title {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 10px;
}
.news-item__summary {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item__meta {
  font-size: 12px;
  color: var(--text-light);
}

/* 7. Gallery Block */
.gallery-section {
  background-color: var(--primary-blue);
  padding: 30px 0;
  color: white;
  overflow: hidden;
}

.gallery-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#gallery-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.gallery-block {
  display: flex;
  align-items: center;
  gap: 50px;
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

.gallery-info {
  flex: 1;
}
.gallery-info h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 25px;
  letter-spacing: 2px;
}
.gallery-info p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-image {
  flex: 1.3;
}
.gallery-image img {
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s;
}

.gallery-dot--active {
  background-color: var(--now-orange);
}

.more-news-container,
.hero-more-container {
  text-align: center;
  margin-bottom: 30px;
}

.more-news-btn {
  display: inline-block;
  background: var(--btn-gray);
  color: var(--text-gray);
  padding: 5px 22px;
  border-radius: 20px;
  border: 0;
  font-size: 13px;
  transition: opacity 0.2s;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .top-banner {
    background-size: cover;
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-left,
  .hero-right {
    padding: 0;
    border: none;
  }
  .gallery-block {
    flex-direction: column-reverse;
    padding: 0;
    text-align: center;
    gap: 30px;
  }
  .gallery-info p {
    text-align: center;
    margin-bottom: 20px;
  }
}
@media (max-width: 600px) {
  .date-selector__arrow,
  .match-slider__arrow,
  .wc-slider__arrow,
  .topic-prev,
  .topic-next {
    display: block;
  }
  .date-tabs {
    gap: 20px;
    overflow-x: auto;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
  }
  .date-tabs::-webkit-scrollbar {
    display: none;
  }

  .match-display {
    gap: 40px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 20px 15px;
    -webkit-overflow-scrolling: touch;
  }
  .match-display::-webkit-scrollbar {
    display: none;
  }
  .match-card {
    min-width: 100px;
    flex: 0 0 auto;
  }
  .match-card:not(:nth-child(2)) {
    display: block;
  }

  .wc-prev, .extra-prev, .topic-prev, .wc-next, .extra-next, .topic-next {
    font-size: 45px;
  }

  .wc-prev, .extra-prev, .topic-prev {
    left: 0;
}

.wc-next, .extra-next, .topic-next {
    right: 0;
}

  /* Hero Layout Mobile */
  .hero-section {
    margin: 15px auto;
  }
  .big-news-card {
    flex-direction: column-reverse;
    gap: 15px;
  }
  .big-news-card__desc {
    display: none;
  }
  .big-news-card__title {
    font-size: 22px;
  }

  .sub-news-row {
    grid-template-columns: 1fr;
    border-top: none;
    padding-top: 0;
    gap: 0;
  }
  .hero-left {
    gap: 20px;
  }
  .hero-right {
    padding-left: 0;
    border-left: none;
    margin-top: 20px;
  }

  .thumb-card {
    flex-direction: row;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
  }
  .thumb-card__image-wrap {
    flex: 0 0 90px;
    aspect-ratio: 1 / 1;
  }
  .thumb-card__image-wrap img {
    height: 100%;
    object-fit: cover;
  }
  .thumb-card__content {
    flex: 1;
  }
  .thumb-card__title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  /* WC Report Mobile Scroll */
  .wc-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
  }
  .wc-grid::-webkit-scrollbar {
    display: none;
  }
  .wc-card {
    width: 308px;
  }

  .news-item {
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
    padding: 15px 0;
  }
  .news-item__img {
    flex: 0 0 90px;
  }
  .news-item__img img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
  }

  .news-item__summary {
    display: none;
  }
  .news-item__title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .news-item:first-child {
    /*flex-direction: column;*/
  }
}