:root {
  --brand: #1A73E8;
  --brand-2: #0F5FD2;
  --ink: #071225;
  --paper: #F5F8FC;
  --panel: #FFFFFF;
  --line: #DCE5F2;
  --text: #122033;
  --muted: #667085;
  --orange: #FF6B35;
  --green: #18A058;
  --shadow: 0 18px 48px rgba(26, 44, 76, .1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(128deg, rgba(26, 115, 232, .12), rgba(255, 107, 53, .07) 42%, rgba(255, 255, 255, 0) 68%),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.publish-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 30vw) minmax(0, 1fr);
}

.side {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 38px;
  color: #fff;
  background: var(--ink);
}

.side::before,
.side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.side::before {
  width: 420px;
  height: 420px;
  right: -210px;
  top: -140px;
  border: 40px solid rgba(26, 115, 232, .26);
}

.side::after {
  width: 480px;
  height: 170px;
  left: 38px;
  bottom: 70px;
  border-bottom: 12px solid rgba(26, 115, 232, .62);
  transform: rotate(-8deg);
}

.brand,
.side-main,
.side-foot {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(26, 115, 232, .34);
}

.brand b { display: block; font-size: 20px; line-height: 1.1; }
.brand span { display: block; margin-top: 5px; color: rgba(255, 255, 255, .58); font-size: 12px; text-transform: uppercase; }

.side-main { margin-top: 96px; }
.eyebrow { margin: 0 0 14px; color: #8CC4FF; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.side h1 { margin: 0; font-size: 42px; line-height: 1.12; }
.side p { color: rgba(255, 255, 255, .72); line-height: 1.8; }
.side-foot { position: absolute; left: 38px; right: 38px; bottom: 34px; display: grid; gap: 10px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: #174EA6;
  background: rgba(26, 115, 232, .1);
  font-size: 12px;
  font-weight: 800;
}
.side .tag { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.status { color: #CDE3FF; font-size: 13px; }

.content {
  min-width: 0;
  padding: clamp(24px, 4vw, 56px);
}

.topbar,
.section,
.card,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.topbar h2 { margin: 0; font-size: 26px; line-height: 1.25; }
.topbar p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.meta { display: grid; gap: 6px; min-width: 180px; color: var(--muted); font-size: 13px; text-align: right; }
.meta b { color: var(--text); font-size: 18px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section,
.card,
.notice { padding: 20px; }

.section-head { margin-bottom: 16px; }
.section-head span { color: var(--brand); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.section-head h3 { margin: 7px 0 0; font-size: 22px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #F8FBFF; }
.stat b { display: block; font-size: 26px; }
.stat span { color: var(--muted); font-size: 13px; }

.info-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 10px; border-bottom: 1px solid #EDF2F8; }
.info-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.info-list span { color: var(--muted); }
.info-list b { text-align: right; }

.notice { border-left: 4px solid var(--orange); }
.notice h3 { margin: 0 0 8px; font-size: 20px; }
.notice p { margin: 0; color: var(--muted); line-height: 1.75; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #E8EEF7; text-align: left; white-space: nowrap; }
th { color: #344054; background: #F8FBFF; font-size: 13px; }
td { font-size: 14px; }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 8px; background: #EEF5FF; color: #174EA6; font-size: 12px; font-weight: 800; }
.pill.live { color: #8A3A08; background: #FFF1E8; }
.pill.done { color: #0E6B3B; background: #E8F7EF; }

.timeline { display: grid; gap: 12px; }
.time-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-items: start; }
.time-item time { color: var(--brand); font-weight: 900; }
.time-item div { padding-bottom: 12px; border-bottom: 1px solid #E8EEF7; }
.time-item b { display: block; }
.time-item span { color: var(--muted); font-size: 13px; }

.court-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.court { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.court b { display: block; font-size: 18px; }
.court span { color: var(--muted); font-size: 13px; }
.progress { height: 7px; margin-top: 12px; border-radius: 99px; background: #E8EEF7; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--orange)); }

.bracket {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
  overflow-x: auto;
}
.round { display: grid; align-content: center; gap: 14px; min-width: 190px; }
.round h3 { margin: 0; color: var(--brand); font-size: 15px; }
.match {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.team { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-bottom: 1px solid #EDF2F8; }
.team:last-child { border-bottom: 0; }
.team.win { background: #F1F8FF; font-weight: 900; }
.score { color: var(--brand); font-weight: 900; }

@media (max-width: 980px) {
  .publish-page { grid-template-columns: 1fr; }
  .side { min-height: auto; padding: 28px; }
  .side-main { margin: 62px 0 34px; }
  .side-foot { position: relative; left: auto; right: auto; bottom: auto; }
  .grid.two,
  .grid.three,
  .stats,
  .court-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .side,
  .content { padding: 18px; }
  .side h1 { font-size: 30px; }
  .topbar { display: grid; }
  .meta { text-align: left; }
}
