.page-home {
  background: var(--yq-bg);
  color: var(--yq-ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: clip;
}

.page-home .home-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--yq-border);
}

.page-home .home-topline__edition {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--yq-red);
}

.page-home .today-section {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--yq-night);
}

.page-home .today-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .today-bg img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.page-home .today-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(241, 245, 249, 1) 0%, rgba(241, 245, 249, .94) 42%, rgba(10, 20, 40, .78) 100%);
  pointer-events: none;
}

.page-home .today-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.page-home .left-index {
  display: none;
}

.page-home .today-pane {
  min-width: 0;
}

.page-home .today-pane .section-label {
  margin-bottom: .5rem;
}

.page-home .today-pane .page-title {
  margin: .4rem 0 .75rem;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.page-home .today-pane .lede {
  margin: 0 0 1.25rem;
  color: var(--yq-gray);
  max-width: 62ch;
}

.page-home .match-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .9rem;
}

.page-home .match-tab {
  font-family: var(--font-mono);
  font-size: .88rem;
  padding: .4rem .9rem;
  border: 1px solid var(--yq-border);
  border-radius: 999px;
  background: var(--yq-white);
  color: var(--yq-gray);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  user-select: none;
}

.page-home .sr-only:checked + .match-tab {
  background: var(--yq-red);
  border-color: var(--yq-red);
  color: var(--yq-white);
  box-shadow: 0 2px 8px rgba(230, 57, 70, .32);
}

.page-home .match-feed {
  display: grid;
  gap: .85rem;
}

.page-home .match-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: var(--yq-white);
  border: 1px solid var(--yq-border);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  box-shadow: 0 2px 6px rgba(10, 20, 40, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.page-home .match-card--live {
  border-left: 4px solid var(--yq-red);
  transform: skewY(-1deg);
}

@media (hover: hover) {
  .page-home .match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(10, 20, 40, .12);
  }

  .page-home .match-card--live:hover {
    transform: skewY(-1deg) translateY(-3px);
  }
}

.page-home .match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.page-home .match-status {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.page-home .match-status.is-live {
  color: var(--yq-red);
}

.page-home .match-status.is-upcoming {
  color: var(--yq-gray);
}

.page-home .match-status.is-finished {
  color: var(--yq-green);
}

.page-home .pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yq-red);
  margin-right: .35rem;
  animation: page-home-pulse 1.2s ease-in-out infinite;
}

@keyframes page-home-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, .5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(230, 57, 70, 0);
  }
}

.page-home .match-card__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.page-home .team-name {
  font-weight: 600;
  color: var(--yq-ink);
}

.page-home .team-name--right {
  text-align: right;
}

.page-home .team-score {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--yq-night);
  min-width: 1.4em;
  text-align: center;
}

.page-home .match-score-sep {
  color: var(--yq-red);
  font-weight: 700;
}

.page-home .match-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--yq-border);
}

.page-home .match-time {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--yq-gray);
}

.page-home .btn-fav {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.4;
  color: var(--yq-gray);
  border: 1px solid var(--yq-border);
  background: var(--yq-white);
  padding: .22rem .65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.page-home .btn-fav::before {
  content: "☆ ";
}

.page-home .btn-fav[aria-pressed="true"] {
  color: var(--yq-red);
  border-color: var(--yq-red);
  background: #FFF5F5;
}

.page-home .btn-fav[aria-pressed="true"]::before {
  content: "★ ";
}

.page-home .btn-fav:focus-visible {
  outline: 2px solid var(--yq-blue);
  outline-offset: 2px;
}

.page-home #feed-hot:checked ~ .match-feed .match-card[data-feed]:not([data-feed="hot"]),
.page-home #feed-follow:checked ~ .match-feed .match-card[data-feed]:not([data-feed="follow"]),
.page-home #feed-saved:checked ~ .match-feed .match-card[data-feed]:not([data-feed="saved"]) {
  display: none;
}

.page-home .today-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--yq-border);
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--yq-gray);
}

.page-home .today-footnote a {
  color: var(--yq-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 165, 233, .4);
  padding-bottom: .05rem;
}

.page-home .today-footnote a:hover {
  color: var(--yq-red);
  border-bottom-color: var(--yq-red);
}

.page-home .calendar-section {
  background: var(--yq-bg);
  padding: 2.2rem 0 2.6rem;
}

.page-home .section-head {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
}

.page-home .section-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin: .35rem 0 .35rem;
  color: var(--yq-ink);
}

.page-home .section-head__desc {
  margin: 0;
  max-width: 70ch;
  color: var(--yq-gray);
}

.page-home .section-head__desc--light {
  color: rgba(255, 255, 255, .78);
}

.page-home .calendar-grid {
  display: grid;
  gap: 1.25rem;
}

.page-home .cal-board {
  position: relative;
  background: var(--yq-white);
  border: 1px solid var(--yq-border);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.4rem;
  box-shadow: 0 4px 14px rgba(10, 20, 40, .06);
}

.page-home .cal-board__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--yq-border);
}

.page-home .cal-board__head strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--yq-night);
}

.page-home .cal-board__head span {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--yq-gray);
}

.page-home .cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .3rem;
  position: relative;
  z-index: 1;
}

.page-home .cal-dow {
  font-family: var(--font-mono);
  font-size: .74rem;
  text-align: center;
  color: var(--yq-gray);
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--yq-border);
}

.page-home .cal-day {
  min-height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .82rem;
  border-radius: 7px;
  color: var(--yq-gray);
  background: transparent;
}

.page-home .cal-day.is-event {
  background: rgba(230, 57, 70, .1);
  color: var(--yq-red);
  font-weight: 700;
}

.page-home .cal-day.is-hot {
  background: var(--yq-gold);
  color: var(--yq-night);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(233, 196, 106, .5);
}

.page-home .cal-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page-home .cal-aside {
  background: var(--yq-white);
  border: 1px solid var(--yq-border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.page-home .cal-aside img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
}

.page-home .cal-dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.page-home .cal-date-item {
  display: grid;
  grid-template-columns: 3.6rem 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  background: var(--yq-bg);
  border-left: 3px solid var(--yq-blue);
  border-radius: 8px;
  font-size: .86rem;
}

.page-home .cal-date-item b {
  font-family: var(--font-mono);
  color: var(--yq-night);
  white-space: nowrap;
}

.page-home .cal-date-item span {
  color: var(--yq-ink);
}

.page-home #cal-focus:checked ~ .cal-dates .cal-date-item[data-focus="0"] {
  display: none;
}

.page-home .highlights-section {
  position: relative;
  background: var(--yq-night);
  color: var(--yq-white);
  padding: 2.6rem 0 2.8rem;
  overflow: hidden;
}

.page-home .highlights-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.page-home .highlights-section .container {
  position: relative;
  z-index: 1;
}

.page-home .section-label--light {
  color: var(--yq-gold);
}

.page-home .section-heading--light {
  color: var(--yq-white);
}

.page-home .highlights-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-home .video-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-home .video-card--primary {
  grid-column: 1 / -1;
}

.page-home .media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.page-home .media-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.page-home .media-frame__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--yq-white);
  background: rgba(10, 20, 40, .25);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.page-home .media-frame__badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--yq-gold);
  border: 1px solid rgba(233, 196, 106, .6);
  border-radius: 999px;
  padding: .2rem .55rem;
  background: rgba(10, 20, 40, .55);
}

.page-home .video-card__body {
  padding: .9rem 1rem 1rem;
}

.page-home .video-card__body h3 {
  margin: 0 0 .35rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--yq-white);
}

.page-home .card__meta {
  margin: 0;
  color: rgba(255, 255, 255, .6);
}

.page-home .scorer-board {
  margin-top: 1.6rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 1rem;
}

.page-home .scorer-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .6rem;
}

.page-home .scorer-board__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--yq-gold);
}

.page-home .scorer-board__note {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: rgba(255, 255, 255, .55);
}

.page-home .scorer-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: .84rem;
}

.page-home .scorer-table th,
.page-home .scorer-table td {
  padding: .55rem .45rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
}

.page-home .scorer-table th {
  color: var(--yq-gold);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.page-home .scorer-table tbody tr:first-child td {
  color: var(--yq-gold);
  font-weight: 700;
}

.page-home .scorer-table td:first-child,
.page-home .scorer-table th:first-child {
  padding-left: .2rem;
}

.page-home .h2h-section {
  background: var(--yq-bg);
  padding: 2.6rem 0;
}

.page-home .h2h-panel {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.page-home .h2h-gallery {
  margin: 0;
  position: relative;
}

.page-home .h2h-gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--yq-border);
}

.page-home .h2h-gallery figcaption {
  margin-top: .45rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--yq-gray);
}

.page-home .h2h-compare {
  background: var(--yq-white);
  border: 1px solid var(--yq-border);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .h2h-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.page-home .h2h-team {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.page-home .h2h-team strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--yq-night);
}

.page-home .h2h-team span {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--yq-gray);
}

.page-home .h2h-team--right {
  text-align: right;
}

.page-home .h2h-vs {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--yq-red);
  border: 2px solid var(--yq-red);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  flex-shrink: 0;
}

.page-home .h2h-chart {
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #F8FAFC;
  border: 1px solid var(--yq-border);
  border-radius: 10px;
}

.page-home .h2h-records {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--yq-gray);
}

.page-home .h2h-records b {
  color: var(--yq-night);
}

.page-home .h2h-more {
  border: 1px solid var(--yq-border);
  border-radius: 10px;
  background: var(--yq-bg);
  padding: .75rem .9rem;
}

.page-home .h2h-more summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--yq-blue);
  font-weight: 600;
  list-style: none;
}

.page-home .h2h-more summary::before {
  content: "＋ ";
  color: var(--yq-red);
}

.page-home .h2h-more[open] summary::before {
  content: "－ ";
}

.page-home .h2h-list {
  margin: .7rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--yq-ink);
}

.page-home .h2h-dbnote {
  margin: 0;
  font-size: .86rem;
  color: var(--yq-gray);
  border-left: 3px solid var(--yq-violet);
  padding-left: .7rem;
}

.page-home .updates-section {
  background: var(--yq-white);
  padding: 2.4rem 0;
}

.page-home .updates-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.page-home .updates-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 .4rem;
  border-left: 3px solid var(--yq-border);
}

.page-home .update-item {
  position: relative;
  padding: 0 0 1.5rem 1.4rem;
}

.page-home .update-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: .55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yq-green);
  border: 3px solid var(--yq-white);
  box-shadow: 0 0 0 1px rgba(42, 157, 143, .35);
}

.page-home .update-item__body h3 {
  margin: .4rem 0 .3rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--yq-ink);
}

.page-home .update-item__body p {
  margin: 0 0 .35rem;
  font-size: .88rem;
  color: var(--yq-gray);
  max-width: 68ch;
}

.page-home .update-item__body a {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--yq-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 165, 233, .4);
}

.page-home .tags-section {
  background: var(--yq-night);
  color: var(--yq-white);
  padding: 2.4rem 0 2.8rem;
}

.page-home .tags-section .section-heading {
  color: var(--yq-white);
}

.page-home .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.2rem;
}

.page-home .tag-cloud .tag {
  font-family: var(--font-mono);
  font-size: .88rem;
  text-decoration: none;
  padding: .42rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.page-home .tag-cloud .tag:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .55);
}

@media (max-width: 699px) {
  .page-home .cal-date-item {
    grid-template-columns: 3.4rem 1fr;
  }

  .page-home .cal-date-item .tag {
    grid-column: 2;
    justify-self: start;
  }

  .page-home .h2h-record-table {
    overflow-x: auto;
  }
}

@media (min-width: 700px) {
  .page-home .match-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .video-card--primary {
    grid-column: 1 / -1;
  }

  .page-home .cal-board__head {
    font-size: .95rem;
  }

  .page-home .scorer-table th,
  .page-home .scorer-table td {
    padding: .65rem .7rem;
  }

  .page-home .h2h-compare {
    padding: 1.4rem;
  }
}

@media (min-width: 960px) {
  .page-home .today-wrap {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 2.2rem;
    padding-bottom: 3rem;
  }

  .page-home .left-index {
    display: flex;
    flex-direction: column;
    align-self: start;
    position: sticky;
    top: 7rem;
    gap: .2rem;
    padding: 1.1rem 1.1rem 1.1rem 1.3rem;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--yq-border);
    border-left: 4px solid var(--yq-night);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 14px rgba(10, 20, 40, .08);
    backdrop-filter: blur(6px);
  }

  .page-home .left-index__label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    color: var(--yq-red);
    margin-bottom: .6rem;
    text-transform: uppercase;
  }

  .page-home .left-index__link {
    font-size: .9rem;
    color: var(--yq-gray);
    text-decoration: none;
    padding: .38rem .5rem;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
  }

  .page-home .left-index__link:hover {
    color: var(--yq-red);
    background: rgba(230, 57, 70, .06);
  }

  .page-home .left-index__link[aria-current="true"] {
    color: var(--yq-night);
    font-weight: 700;
    border-left-color: var(--yq-red);
    background: rgba(255, 255, 255, .7);
  }

  .page-home .calendar-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 1.5rem;
  }

  .page-home .highlights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .video-card--primary {
    grid-column: auto;
  }

  .page-home .h2h-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    align-items: stretch;
  }

  .page-home .h2h-gallery img {
    height: 100%;
    min-height: 320px;
  }

  .page-home .h2h-compare {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .pulse-dot {
    animation: none;
  }

  .page-home .match-card,
  .page-home .btn-fav,
  .page-home .match-tab,
  .page-home .tag-cloud .tag {
    transition: none;
  }

  .page-home .match-card--live {
    transform: none;
  }

  .page-home .match-card--live:hover {
    transform: none;
  }
}
