.page-home {
  --home-ratio: 8 / 5;
  --home-gap: clamp(20px, 4vw, 40px);
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  padding: 34px 0 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,107,53,0.12), transparent 250px),
    linear-gradient(110deg, rgba(0,212,255,0.05), transparent 55%);
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero__decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

.page-home .home-hero__layout {
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-hero__main {
  display: grid;
  gap: 14px;
}

.page-home .home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  background: rgba(0,212,255,0.06);
}

.page-home .home-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.15);
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 12em;
}

.page-home .home-hero__lead {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  max-width: 56ch;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.page-home .home-hero__hint {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.page-home .home-timeline {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 16px 18px;
  box-shadow: var(--shadow-panel);
}

.page-home .home-timeline__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.page-home .home-timeline__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.16);
}

.page-home .home-timeline__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-timeline__item {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-blue);
}

.page-home .home-timeline__date {
  color: var(--accent-blue);
  font-weight: 700;
}

.page-home .home-timeline__text {
  color: var(--text);
}

.page-home .home-timeline__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,107,53,0.4);
}

.page-home .home-timeline__link:hover,
.page-home .home-timeline__link:focus-visible {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
  outline: none;
}

.page-home .home-hero__bottom {
  display: grid;
  gap: var(--home-gap);
  margin-top: calc(var(--home-gap) + 8px);
  align-items: start;
}

.page-home .home-dir {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 18px;
  box-shadow: var(--shadow-panel);
}

.page-home .home-dir__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.page-home .home-dir__badge {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(255,107,53,0.14);
  padding: 4px 9px;
  border-radius: 999px;
}

.page-home .home-dir__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.page-home .home-dir__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.page-home .home-dir__item {
  border-top: 1px solid var(--line);
}

.page-home .home-dir__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.page-home .home-dir__link span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  min-width: 24px;
}

.page-home .home-dir__link:hover,
.page-home .home-dir__link:focus-visible {
  color: var(--accent);
  background: rgba(0,212,255,0.06);
  padding-left: 12px;
  outline: none;
}

.page-home .home-hero__visual {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: var(--home-ratio);
  background: var(--bg-sunken);
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-today {
  padding: 48px 0 36px;
}

.page-home .section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.page-home .section-index {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.page-home .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.page-home .section-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
}

.page-home .home-today__grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.page-home .home-match {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius);
}

.page-home .home-match:focus-visible {
  border-color: var(--line-strong);
  outline: none;
}

.page-home .home-match::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 70%);
  pointer-events: none;
}

.page-home .home-match__top,
.page-home .home-match__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.page-home .home-match__league,
.page-home .home-match__time {
  font-size: 12px;
  color: var(--text-dim);
}

.page-home .home-match__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 18px;
}

.page-home .home-match__team {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
}

.page-home .home-match__score {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 40px);
  color: var(--accent);
  line-height: 1;
}

.page-home .home-match__bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  margin-bottom: 12px;
}

.page-home .home-match__bar {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-home .home-match__bar--home {
  background: linear-gradient(90deg, rgba(255,107,53,0.9), rgba(255,107,53,0.35));
  width: 58%;
  color: var(--bg-deep);
}

.page-home .home-match__bar--away {
  background: linear-gradient(90deg, rgba(0,212,255,0.35), rgba(0,212,255,0.9));
  width: 42%;
  color: var(--bg-deep);
}

.page-home .home-match__recent {
  display: none;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.page-home .home-match__recent p {
  margin: 4px 0;
  display: flex;
  gap: 8px;
}

.page-home .home-match__recent strong {
  color: var(--accent-blue);
  min-width: 56px;
}

.page-home .home-match:hover .home-match__recent,
.page-home .home-match:focus-within .home-match__recent {
  display: block;
}

.page-home .home-today__side {
  display: grid;
  gap: 18px;
}

.page-home .home-today__img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunken);
}

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

.page-home .home-today__list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 18px;
}

.page-home .home-today__list-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
}

.page-home .home-today__list-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .home-today__list-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.page-home .home-today__list-item:first-child {
  border-top: 0;
}

.page-home .home-today__competition {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 12px;
}

.page-home .home-today__matchup {
  color: var(--text);
}

.page-home .home-today__time {
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap;
}

.page-home .home-h2h {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(13,36,56,0.75), rgba(10,31,60,0.2) 60%);
}

.page-home .home-h2h__layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.page-home .home-h2h__console {
  display: grid;
  gap: 20px;
}

.page-home .home-search {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-panel);
}

.page-home .home-search__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
}

.page-home .home-search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-sunken);
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-home .home-search__box:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}

.page-home .home-search__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent-blue);
}

.page-home .home-search__input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}

.page-home .home-search__input::placeholder {
  color: var(--text-dim);
}

.page-home .home-search__key {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--bg-panel);
  white-space: nowrap;
}

.page-home .home-search__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.page-home .home-search__submit:hover,
.page-home .home-search__submit:focus-visible {
  background: var(--accent-blue);
  outline: none;
}

.page-home .home-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-home .home-suggest__title {
  flex: 0 0 100%;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.page-home .home-suggest__item {
  display: inline-flex;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}

.page-home .home-suggest__item:hover,
.page-home .home-suggest__item:focus-visible {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  outline: none;
}

.page-home .home-records {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
}

.page-home .home-records__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
}

.page-home .home-records__table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 13px;
}

.page-home .home-records__table th {
  text-align: left;
  padding: 10px 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
}

.page-home .home-records__table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-records__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .home-records__team {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.page-home .home-records__form {
  display: flex;
  gap: 6px;
}

.page-home .home-records__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
}

.page-home .home-records__pill.is-win {
  color: var(--accent-blue);
  border-color: rgba(0,212,255,0.4);
}

.page-home .home-records__pill.is-draw {
  color: var(--text-dim);
  border-color: var(--line);
}

.page-home .home-records__pill.is-loss {
  color: var(--accent);
  border-color: rgba(255,107,53,0.4);
}

.page-home .home-h2h__note {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 4px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.page-home .home-h2h__visual {
  display: grid;
  gap: 14px;
}

.page-home .home-h2h__chart {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--bg-sunken);
  display: block;
}

.page-home .home-h2h__note-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(0,212,255,0.04);
}

.page-home .home-h2h__note-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--accent-blue);
}

.page-home .home-h2h__note-box p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.page-home .home-reports {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.page-home .home-reports__tabs-head {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
}

.page-home .home-reports__tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.page-home .home-reports__tab:hover,
.page-home .home-reports__tab:focus-visible {
  color: var(--text);
  outline: none;
}

.page-home .home-reports__tab[data-open] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.page-home .home-reports__pane:not([data-open]) {
  display: none;
}

.page-home .home-reports__pane[data-open] {
  display: block;
}

.page-home .home-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-report-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-report-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.page-home .home-report-item__img {
  display: none;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
}

.page-home .home-report-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-report-item__body {
  min-width: 0;
}

.page-home .home-report-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.page-home .home-report-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.page-home .home-report-item__body p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.page-home .home-report-item__time {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  align-self: start;
  padding-top: 4px;
}

.page-home .home-reports__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.page-home .home-reports__hint {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.page-home .home-metrics {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0,212,255,0.05), rgba(255,107,53,0.05));
}

.page-home .home-metrics__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.page-home .home-metrics__item {
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 12px;
}

.page-home .stat__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.page-home .stat__label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.page-home .home-trust {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  background: radial-gradient(circle at 72% 92%, rgba(255,107,53,0.1), transparent 300px);
}

.page-home .home-trust__inner {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.page-home .home-trust__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
}

.page-home .home-trust__text {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .home-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-trust__link {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.page-home .home-trust__link:hover,
.page-home .home-trust__link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255,107,53,0.08);
  outline: none;
}

@media (min-width: 480px) {
  .page-home .home-report-item {
    grid-template-columns: 72px 1fr auto;
  }

  .page-home .home-report-item__img {
    display: block;
  }
}

@media (min-width: 768px) {
  .page-home .home-hero__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 32px;
  }

  .page-home .home-hero__bottom {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
  }

  .page-home .home-today__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
  }

  .page-home .home-h2h__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
  }

  .page-home .home-metrics__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-top: 44px;
  }

  .page-home .home-timeline {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .page-home .home-hero__title {
    font-size: clamp(44px, 5.5vw, 68px);
  }

  .page-home .home-report-item {
    grid-template-columns: 88px 1fr auto;
    padding: 14px 16px;
  }

  .page-home .home-report-item__img {
    width: 88px;
    height: 88px;
  }

  .page-home .home-report-item__title {
    font-size: 19px;
  }
}
