:root {
  --bg: #071018;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5fbff;
  --muted: #9fb1c3;
  --soft: #d7e7f4;
  --brand: #e61f2b;
  --brand-2: #31d6b5;
  --warning: #ffb545;
  --ok: #35d37c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  font-family: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(230, 31, 43, 0.28), transparent 32rem),
    radial-gradient(circle at 88% 16%, rgba(49, 214, 181, 0.18), transparent 28rem),
    linear-gradient(135deg, #050910 0%, #091722 52%, #05080d 100%);
  color: var(--text);
  padding-bottom: 86px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(6, 12, 20, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2313d, #b70f1a);
  color: white;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 18px 34px rgba(230, 31, 43, 0.3);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.05em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: 64px 0 34px;
}

.hero-home {
  position: relative;
  min-height: 760px;
  grid-template-columns: 0.82fr 1.18fr;
  grid-template-rows: 1fr auto;
  gap: 22px 30px;
  align-items: end;
  margin-top: -36px;
  padding: 120px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(2, 5, 8, 0.82), rgba(2, 7, 10, 0.36) 46%, rgba(2, 5, 8, 0.68)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76));
}

.hero-home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #10220f;
}

.hero-home-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
  opacity: 0.7;
}

.hero-home-copy,
.camera-feature-card,
.tracking-card {
  position: relative;
  z-index: 2;
}

.hero-home-copy {
  align-self: start;
  grid-column: 1 / 2;
  padding-top: 30px;
}

.hero-home-copy h1 {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero-home-copy p {
  max-width: 520px;
  color: rgba(225, 238, 248, 0.84);
  font-size: 17px;
  line-height: 1.85;
}

.camera-feature-card {
  grid-column: 1 / 2;
  width: min(365px, 100%);
  margin-left: 74px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(4, 12, 16, 0.66);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.camera-feature-card span,
.tracking-head span {
  color: rgba(231, 242, 252, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.camera-feature-card strong {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.15;
}

.camera-feature-card p {
  margin: 12px 0 18px;
  color: var(--soft);
  line-height: 1.7;
}

.camera-feature-card img {
  width: min(240px, 100%);
  border-radius: 4px;
  opacity: 0.82;
}

.tracking-card {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: end;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(4, 12, 18, 0.78);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.tracking-head {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(220px, 1.1fr) minmax(120px, 0.7fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.feed-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 15px rgba(230, 31, 43, 0.8);
}

.tracking-head strong {
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tracking-screen {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #071018;
}

.tracking-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tracking-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.tracking-stats div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.tracking-stats strong,
.tracking-stats span {
  display: block;
}

.tracking-stats strong {
  font-size: 20px;
}

.tracking-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.hero-copy,
.hero-board,
.panel,
.card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 44px;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(230, 31, 43, 0.8);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 19px;
}

.lead {
  max-width: 680px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #f33240, #c41420);
  box-shadow: 0 18px 38px rgba(230, 31, 43, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.hero-board {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 420px;
  padding: 26px;
  overflow: hidden;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 40%, black);
}

.broadcast-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(3, 10, 18, 0.74);
}

.section {
  padding: 28px 0;
}

.portal-section {
  padding-top: 36px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-section .portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
}

.card-cover {
  position: relative;
  height: 144px;
  margin: -22px -22px 20px;
  background:
    radial-gradient(circle at 26% 30%, rgba(255, 255, 255, 0.24), transparent 16rem),
    linear-gradient(135deg, rgba(230, 31, 43, 0.78), rgba(49, 214, 181, 0.3)),
    #13202c;
}

.card-cover::after {
  content: "SIRUI SPORTS";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.meta-row,
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.status-live {
  background: rgba(230, 31, 43, 0.22);
  color: #ffacb4;
}

.status-finished {
  color: #c8d4df;
}

.status-upcoming {
  background: rgba(255, 181, 69, 0.18);
  color: #ffd18a;
}

.match-card {
  display: grid;
  gap: 18px;
}

.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.team {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.team-logo {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 900;
}

.score {
  min-width: 86px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
  font-size: 26px;
  font-weight: 900;
}

.page-hero {
  padding: 56px 0 24px;
}

.page-hero .panel {
  padding: 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.filters input,
.filters select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 14px;
}

.filters input {
  flex: 1 1 240px;
}

.detail-card {
  padding: 30px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.empty,
.loading {
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

.site-icp-floating {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  max-width: calc(100vw - 24px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.82);
  color: #eef6ff;
  font-size: 12px;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.site-beian-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.site-beian-separator {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.16);
}

.site-beian-police-icon {
  width: auto;
  height: 16px;
}

@media (max-width: 900px) {
  .topline,
  .site-nav,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    position: relative;
    top: auto;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .hero-home,
  .detail-grid,
  .portal-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: auto;
    margin-top: 0;
    grid-template-rows: auto;
    padding: 28px;
    border-radius: 30px;
  }

  .hero-home-copy,
  .camera-feature-card,
  .tracking-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .camera-feature-card {
    margin-left: 0;
  }

  .tracking-head {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-board {
    min-height: 280px;
  }

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

  .portal-section .portal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: 108px;
  }

  .site-shell {
    width: min(100% - 16px, 1180px);
  }

  .brand-copy small {
    font-size: 11px;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: 40px;
  }

  .versus {
    grid-template-columns: 1fr;
  }

  .score {
    justify-self: center;
  }

  .site-icp-floating {
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 16px);
    font-size: 11px;
  }

  .site-beian-separator {
    display: none;
  }
}

.match-template-page {
  background: #f2f5fa;
  color: #101522;
}

.match-template-page .site-shell {
  width: min(1200px, calc(100% - 32px));
}

.match-template-page .topline {
  display: none;
}

.match-template-page .site-nav {
  position: relative;
  top: auto;
  margin: 24px 0 20px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.match-template-page .brand-mark {
  background: #0b2ea8;
  box-shadow: none;
}

.match-template-page .brand-copy strong {
  color: #0b2ea8;
}

.match-template-page .brand-copy small {
  color: #596275;
}

.match-template-page .nav-links {
  gap: 26px;
  background: transparent;
}

.match-template-page .nav-links a {
  position: relative;
  padding: 10px 4px;
  color: #101522;
  font-size: 16px;
  font-weight: 800;
}

.match-template-page .nav-links a:hover,
.match-template-page .nav-links a.active {
  background: transparent;
  color: #0b2ea8;
}

.match-template-page .nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #0b2ea8;
  transform: translateX(-50%);
}

.match-template-main {
  padding: 0 0 70px;
}

.match-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 36px;
  color: #697386;
  font-size: 14px;
}

.match-breadcrumb a,
.match-breadcrumb strong {
  color: #101522;
}

.match-schedule-shell {
  min-height: 760px;
  padding: 34px 40px 60px;
  background: #ffffff;
}

.match-date-bar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.date-arrow {
  width: 34px;
  height: 52px;
  border: 0;
  background: transparent;
  color: #101522;
  cursor: pointer;
  font-size: 44px;
  line-height: 1;
}

.match-day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(84px, 1fr));
  gap: 14px;
}

.match-day-tab {
  display: grid;
  gap: 6px;
  min-height: 80px;
  border: 0;
  background: transparent;
  color: #99a0ae;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.match-day-tab span {
  font-size: 16px;
}

.match-day-tab strong {
  font-size: 17px;
}

.match-day-tab.active {
  background: #e9ecfb;
  color: #0b2ea8;
  font-weight: 900;
}

.date-picker-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #0b2ea8;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.native-date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.match-template-tools {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: -4px 0 16px;
}

.match-template-tools input,
.match-template-tools select {
  min-height: 38px;
  border: 1px solid #dfe4ef;
  border-radius: 4px;
  background: #ffffff;
  color: #101522;
  padding: 0 12px;
}

.match-template-tools input {
  width: 220px;
}

.match-schedule-list {
  border-top: 1px solid #e7eaf0;
  max-height: 560px;
  overflow-y: auto;
}

.match-schedule-row {
  display: grid;
  grid-template-columns: 120px 160px minmax(360px, 1fr) 150px;
  align-items: center;
  min-height: 80px;
  border-bottom: 1px solid #e7eaf0;
  color: #101522;
}

.schedule-time,
.schedule-sport {
  font-size: 16px;
  font-weight: 800;
}

.schedule-teams {
  display: grid;
  grid-template-columns: 1fr 68px 1fr;
  align-items: center;
  gap: 16px;
  font-weight: 900;
  text-align: center;
}

.schedule-teams strong {
  color: #101522;
  font-size: 20px;
}

.schedule-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.match-template-page .team-logo {
  width: 32px;
  height: 32px;
  background: #f0f2f7;
  border: 1px solid #e2e6ef;
  color: #a8afbd;
  font-size: 13px;
}

.schedule-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  color: #0b2ea8;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.schedule-action:hover {
  background: #edf0ff;
}

.schedule-action-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c8ccff;
}

.schedule-action.status-live {
  color: #e61f2b;
}

.schedule-action.status-live .schedule-action-dot {
  background: #ffc2ca;
}

.match-template-page .empty {
  margin-top: 24px;
  border-color: #dfe4ef;
  color: #697386;
}

.home-template-page .match-template-main {
  padding-bottom: 72px;
}

.home-platform-hero,
.home-platform-panel,
.home-platform-feature,
.tournament-platform-shell {
  background: #ffffff;
}

.home-platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: center;
  min-height: 410px;
  padding: 46px 40px;
  overflow: hidden;
}

.home-platform-copy .eyebrow,
.home-platform-copy h1,
.home-platform-copy p {
  color: #101522;
}

.home-platform-copy .eyebrow {
  color: #0b2ea8;
}

.home-platform-copy h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.home-platform-copy p {
  max-width: 640px;
  color: #596275;
  font-size: 18px;
  line-height: 1.85;
}

.home-template-page .button-primary {
  background: #0b2ea8;
  box-shadow: none;
}

.home-template-page .button-secondary {
  border-color: #dfe4ef;
  background: #ffffff;
  color: #0b2ea8;
}

.home-live-preview {
  padding: 18px;
  border: 1px solid #e3e7f1;
  background: #f8faff;
}

.home-live-preview strong,
.home-live-kicker {
  display: block;
}

.home-live-kicker {
  color: #0b2ea8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-live-preview strong {
  margin: 8px 0 14px;
  color: #101522;
  font-size: 24px;
}

.home-live-screen {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #101522;
}

.home-live-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.home-live-stats span {
  padding: 10px;
  background: #ffffff;
  color: #596275;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.home-platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  margin-top: 24px;
}

.home-platform-panel {
  padding: 30px 40px 38px;
}

.platform-panel-head,
.tournament-platform-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.platform-panel-head span,
.tournament-platform-head span,
.home-platform-feature span {
  display: block;
  color: #0b2ea8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.platform-panel-head h2,
.tournament-platform-head h1,
.home-platform-feature h2 {
  margin: 8px 0 0;
  color: #101522;
}

.platform-panel-head h2 {
  font-size: 26px;
}

.platform-panel-head a,
.tournament-link {
  color: #0b2ea8;
  font-weight: 900;
}

.home-compact-list {
  max-height: 360px;
  overflow-y: auto;
}

.home-compact-list .match-schedule-row {
  grid-template-columns: 76px 68px minmax(220px, 1fr) 96px;
  min-height: 76px;
}

.home-compact-list .schedule-teams {
  grid-template-columns: 1fr 48px 1fr;
}

.home-compact-list .schedule-action {
  font-size: 13px;
}

.home-platform-panel .tournament-platform-row {
  grid-template-columns: 92px minmax(0, 1fr) 86px;
  grid-template-rows: auto auto;
  gap: 8px 18px;
  min-height: 104px;
  padding: 12px 0;
}

.home-platform-panel .tournament-thumb {
  grid-row: 1 / 3;
  align-self: center;
  width: 92px;
  height: 68px;
}

.home-platform-panel .tournament-main {
  grid-column: 2 / 3;
  min-width: 0;
}

.home-platform-panel .tournament-main h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-platform-panel .tournament-meta {
  gap: 6px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.home-platform-panel .tournament-meta span:nth-child(n+2) {
  display: none;
}

.home-platform-panel .tournament-state {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: end;
  margin-top: 0;
}

.home-platform-panel .tournament-link {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
}

.home-platform-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 34px 40px;
}

.home-platform-feature p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #596275;
  line-height: 1.8;
}

.home-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

.tournament-platform-shell {
  min-height: 760px;
  padding: 40px;
}

.tournament-platform-head input {
  width: min(280px, 100%);
  min-height: 42px;
  border: 1px solid #dfe4ef;
  border-radius: 4px;
  padding: 0 12px;
}

.tournament-platform-head h1 {
  font-size: 42px;
}

.tournament-platform-head p {
  margin: 10px 0 0;
  color: #697386;
}

.tournament-platform-list {
  border-top: 1px solid #e7eaf0;
}

.home-platform-panel .tournament-platform-list {
  border-top: 1px solid #e7eaf0;
}

.tournament-platform-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 130px 90px;
  gap: 22px;
  align-items: center;
  min-height: 116px;
  border-bottom: 1px solid #e7eaf0;
  color: #101522;
}

.tournament-thumb {
  display: grid;
  width: 92px;
  height: 66px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(11, 46, 168, 0.9), rgba(11, 46, 168, 0.42)),
    #dfe6ff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tournament-main h3 {
  margin-bottom: 10px;
  color: #101522;
  font-size: 20px;
}

.tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #697386;
  font-size: 14px;
}

.tournament-state {
  justify-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf0ff;
  color: #0b2ea8;
  font-weight: 900;
  font-size: 13px;
}

.tournament-state.status-live {
  background: #ffe8eb;
  color: #e61f2b;
}

.tournament-state.status-finished {
  background: #eef1f6;
  color: #697386;
}

@media (max-width: 900px) {
  .match-template-page .site-nav {
    margin-top: 12px;
  }

  .match-template-page .nav-links {
    gap: 18px;
  }

  .match-schedule-shell {
    padding: 18px;
  }

  .match-date-bar {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }

  .date-picker-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .match-day-tabs {
    display: flex;
    overflow-x: auto;
  }

  .match-day-tab {
    min-width: 102px;
  }

  .match-template-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .match-schedule-row {
    grid-template-columns: 72px 68px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0;
  }

  .schedule-teams {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .schedule-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .home-platform-hero,
  .home-platform-grid,
  .home-platform-feature {
    grid-template-columns: 1fr;
  }

  .home-platform-hero,
  .home-platform-panel,
  .home-platform-feature,
  .tournament-platform-shell {
    padding: 22px 18px;
  }

  .home-platform-feature,
  .platform-panel-head,
  .tournament-platform-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-compact-list .match-schedule-row {
    grid-template-columns: 72px 68px minmax(0, 1fr);
  }

  .tournament-platform-row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .tournament-state,
  .tournament-link {
    grid-column: 2 / 3;
  }

  .tournament-thumb {
    width: 72px;
    height: 54px;
  }
}
