:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #607080;
  --line: #d9e0e7;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --accent: #0c7c7c;
  --accent-strong: #075f5f;
  --danger: #b42318;
  --gold: #d69e2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-strong);
}

.topbar nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
}

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

.match-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-board-head h1 {
  margin: 0;
  font-size: 24px;
}

.match-board-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-pills span,
.line-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f5f4;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.line-chip {
  margin: -6px 0 14px;
  background: #fff6df;
  color: #8a5b00;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.match-card,
.admin-section,
.chat-panel,
.match-info {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-card {
  overflow: hidden;
}

.cover-link {
  display: block;
  aspect-ratio: 16 / 9;
  background: #22313f;
}

.cover-link img,
.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.match-body {
  padding: 18px;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.match-body h1,
.admin-section h1 {
  margin: 12px 0;
  font-size: 24px;
}

.match-body p {
  margin: 0 0 18px;
  color: var(--muted);
}

.ad-slot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.ad-slot[hidden] {
  display: none;
}

.ad-item {
  display: flex;
  min-height: 72px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: var(--panel);
  font-weight: 700;
}

.ad-item img {
  width: 100%;
  height: 100%;
  min-height: 72px;
  max-height: 140px;
  object-fit: cover;
  display: block;
}

.chat-ad-slot {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.chat-ad-slot .ad-item {
  min-height: 56px;
}

.chat-ad-slot .ad-item img {
  min-height: 56px;
  max-height: 96px;
}

.pushed-ad-slot {
  grid-row: 2;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fffdf5;
}

.pushed-ad-slot[hidden] {
  display: none;
}

.pushed-ad-label {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #8a4b00;
  background: #ffe8b8;
  font-size: 12px;
  font-weight: 800;
}

.pushed-ad-slot .ad-item {
  min-height: 64px;
  border-color: #f4c76b;
}

.pushed-ad-slot .ad-item img {
  min-height: 64px;
  max-height: 110px;
}

.primary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

button:hover,
.primary:hover {
  background: var(--accent-strong);
}

.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.watch-layout {
  width: min(1360px, calc(100% - 24px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.player-column {
  min-width: 0;
}

.match-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.match-heading p {
  margin: 0 0 6px;
  color: var(--muted);
}

.match-heading h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
}

.online {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f5f2;
  color: var(--accent-strong);
  font-weight: 700;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #05070a;
  border-radius: 8px;
}

.danmaku-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.danmaku {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 2px 8px #000, 0 0 2px #000;
  animation-name: fly;
  animation-timing-function: linear;
}

@keyframes fly {
  to {
    transform: translateX(calc(-100vw - 100%));
  }
}

.match-info {
  margin-top: 14px;
  padding: 18px;
}

.match-info h2 {
  margin: 0 0 8px;
}

.match-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.chat-panel {
  height: calc(100vh - 96px);
  min-height: 520px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.nickname-row,
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.nickname-row {
  grid-row: 3;
}

.nickname-row input,
.nickname-row button,
.chat-form input,
.chat-form button {
  height: 40px;
}

.chat-form {
  grid-row: 5;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.messages {
  grid-row: 4;
  min-height: 0;
  padding: 14px;
  overflow: auto;
}

.message,
.system-message {
  margin-bottom: 10px;
}

.message {
  display: grid;
  gap: 4px;
}

.message b {
  color: var(--accent-strong);
  font-size: 13px;
}

.message span {
  width: fit-content;
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 8px;
  background: #edf1f5;
  line-height: 1.5;
  word-break: break-word;
}

.message.mine {
  justify-items: end;
}

.message.mine span {
  background: #e8f5f2;
}

.system-message {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.admin-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
  display: grid;
  gap: 18px;
}

.admin-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.admin-shell .admin-layout {
  width: 100%;
}

.admin-menu {
  position: sticky;
  top: 78px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 12px;
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
}

.admin-menu a:hover {
  color: var(--accent-strong);
  background: #e8f5f2;
}

.admin-section {
  padding: 18px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form.compact {
  margin-top: 12px;
}

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

.admin-list,
.rule-list {
  display: grid;
  gap: 10px;
}

.admin-item,
.rule-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.admin-item summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-item pre {
  margin: 12px 0 0;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.55;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.pager a,
.pager span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}

.pager a {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.inline-form,
.rule-item form {
  margin-top: 10px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rule-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.rule-item small {
  grid-column: 1;
  color: var(--muted);
}

.rule-item form {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.checkbox input {
  width: auto;
}

.empty {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
}

.muted {
  color: var(--muted);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-card h1 {
  margin: 0 0 18px;
}

.error {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: var(--danger);
  background: #fff1f0;
  border: 1px solid #ffd6d2;
  border-radius: 6px;
}

.sync-result {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.sync-result p {
  margin: 6px 0 0;
  color: var(--muted);
}

.sync-result.success {
  border-color: #b7dfc4;
  background: #f0fff4;
}

.sync-result.failed {
  border-color: #ffd6d2;
  background: #fff1f0;
}

body.site-page {
  --site-bg: #161616;
  --site-panel: #202020;
  --site-panel-soft: #262626;
  --site-line: #333333;
  --site-text: #f4f4f5;
  --site-muted: #a7a7ad;
  --site-accent: #ff4c6f;
  --site-green: #18c37e;
  --site-yellow: #f7b731;
  color: var(--site-text);
  background: var(--site-bg);
}

.site-page .site-topbar {
  background: rgba(17, 17, 17, 0.96);
  border-bottom-color: #272727;
}

.site-page .site-brand {
  color: var(--site-accent);
}

.site-page .topbar nav {
  color: #ececec;
}

.worldcup-page {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 16px clamp(12px, 3vw, 22px) 36px;
}

.worldcup-ad .ad-item,
.site-page .ad-item {
  border-color: var(--site-line);
  background: var(--site-panel);
  color: var(--site-text);
}

.sports-toolbar {
  position: sticky;
  top: 57px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 0;
  background: rgba(22, 22, 22, 0.95);
  backdrop-filter: blur(12px);
}

.sports-title,
.tool-btn,
.status-chip,
.line-tab {
  border: 1px solid var(--site-line);
  background: var(--site-panel-soft);
  color: var(--site-text);
}

.sports-title {
  gap: 8px;
  min-height: 38px;
  border-color: #3a2d32;
  background: #2a2024;
  color: #fff;
  font-weight: 800;
}

.sports-title-icon,
.schedule-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.sports-meta {
  flex: 1;
  min-width: 0;
  color: var(--site-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
}

.tool-btn-outline {
  background: transparent;
}

.tool-btn-wc,
.status-chip.is-active {
  border-color: var(--site-accent);
  background: var(--site-accent);
  color: #fff;
}

.status-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-width: none;
}

.status-chips::-webkit-scrollbar {
  display: none;
}

.status-chip {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.schedule-section {
  display: grid;
  gap: 12px;
}

.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--site-muted);
  font-size: 14px;
}

.schedule-head div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--site-text);
  font-weight: 800;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-match {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 150px 44px;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: var(--site-panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.schedule-match.is-hidden {
  display: none;
}

.match-time {
  display: grid;
  gap: 7px;
  color: var(--site-muted);
  font-size: 13px;
}

.time-main {
  color: var(--site-text);
  font-size: 15px;
  font-weight: 800;
}

.status-badge {
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #2d2d2d;
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-match[data-status="直播中"] .status-badge {
  background: rgba(24, 195, 126, 0.18);
  color: #59e9a6;
}

.schedule-match[data-status="未开始"] .status-badge {
  background: rgba(247, 183, 49, 0.15);
  color: #ffd069;
}

.team-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.team-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-side-right {
  justify-content: flex-end;
  text-align: right;
}

.team-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #2f2f2f;
  border: 1px solid #3d3d3d;
}

.logo-fallback {
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  overflow: hidden;
}

.team-name {
  min-width: 0;
  color: var(--site-text);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-mark {
  color: var(--site-accent);
  font-weight: 900;
}

.line-panel {
  display: grid;
  gap: 4px;
  justify-items: start;
  color: var(--site-muted);
  font-size: 13px;
}

.line-count em {
  margin-right: 2px;
  color: var(--site-accent);
  font-style: normal;
  font-weight: 900;
}

.play-fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 8px 18px rgba(255, 76, 111, 0.28);
}

.play-fab::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.play-fab.dim {
  background: #4a4a4a;
  box-shadow: none;
}

.sports-empty {
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: var(--site-panel);
}

.worldcup-watch {
  color: var(--site-text);
}

.worldcup-watch .player-column,
.live-chat,
.live-info {
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: var(--site-panel);
}

.worldcup-watch .player-column {
  padding: 16px;
}

.worldcup-watch .online {
  margin-left: auto;
  background: rgba(255, 76, 111, 0.13);
  color: var(--site-accent);
}

.live-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--site-muted);
  font-size: 14px;
}

.live-crumb a {
  color: #f2f2f2;
  font-weight: 800;
}

.live-crumb .sep {
  width: 5px;
  height: 5px;
  border-top: 1px solid #77777d;
  border-right: 1px solid #77777d;
  transform: rotate(45deg);
}

.live-crumb > span:not(.online):last-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(22px, 6vw, 60px);
  align-items: center;
  justify-items: center;
  margin-top: 18px;
  padding: 20px 24px;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f9f8ff;
}

.match-team-name {
  max-width: min(240px, 28vw);
  overflow: hidden;
  color: #f9f8ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-team-logo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(108, 112, 169, 0.18);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  background: #bd311b;
}

.away-team .match-team-logo,
.away-fallback {
  background: #314bd1;
}

.score-block {
  align-items: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.score-status {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 4px;
  background: rgba(211, 37, 62, 0.2);
  color: var(--site-accent);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.score-status::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 0 6px var(--site-accent);
  animation: pulseLive 1.4s ease-out infinite;
}

.score-vs {
  color: #f2f2f2;
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}

.score-time {
  color: var(--site-muted);
  font-size: 14px;
}

.worldcup-watch .reference-player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 70rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #0a0a14;
}

.worldcup-watch .reference-player .player-container,
.worldcup-watch .reference-player .artplayer-app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 21rem;
  background: #333;
}

.worldcup-watch .reference-player .artplayer-app {
  overflow: hidden;
  border-radius: 14px;
  background: #0a0a14;
}

.worldcup-watch .reference-player video,
.worldcup-watch .reference-player .art-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a14;
}

.worldcup-watch .reference-player.is-empty {
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.45)), #0a0a14;
}

.player-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  letter-spacing: 1px;
}

.art-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
}

.art-center-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
}

.reference-player.is-playing .art-center-play {
  opacity: 0;
  pointer-events: none;
}

.reference-player:hover .art-center-play,
.reference-player.is-paused .art-center-play,
.reference-player.is-empty .art-center-play {
  opacity: 1;
  pointer-events: auto;
}

.art-loading,
.art-error {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  letter-spacing: 1px;
  background: rgba(10, 10, 20, 0.36);
}

.art-loading[hidden],
.art-error[hidden] {
  display: none;
}

.art-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 42px auto 1fr auto 42px 42px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 18px 14px 10px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.reference-player:hover .art-controls,
.reference-player.is-paused .art-controls,
.reference-player.is-empty .art-controls {
  opacity: 1;
}

.art-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.art-control:hover {
  background: rgba(255, 255, 255, 0.14);
}

.art-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.reference-player.is-playing .art-play::before {
  width: 12px;
  height: 16px;
  margin-left: 0;
  border: 0;
  border-left: 4px solid #fff;
  border-right: 4px solid #fff;
}

.art-volume::before {
  content: "";
  width: 15px;
  height: 14px;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  box-shadow: -6px 0 0 -1px #fff;
}

.art-volume::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
  transform: rotate(-45deg);
  opacity: 0;
}

.art-volume.is-muted::after {
  opacity: 1;
}

.art-fullscreen::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-left-color: transparent;
  border-bottom-color: transparent;
  box-shadow: -8px 8px 0 -6px #fff;
}

.art-time {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.art-progress {
  width: 100%;
  height: 4px;
  padding: 0;
  accent-color: #9450ff;
  cursor: pointer;
}

.lines-bar {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(40, 22, 80, 0.45);
}

.lines-label {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.line-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.line-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 132px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(124, 57, 255, 0.5);
  border-radius: 10px;
  background: rgba(20, 12, 40, 0.55);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.line-item:hover {
  border-color: #ff4cbf;
  background: rgba(124, 57, 255, 0.18);
}

.line-item .name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.line-item .sub {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.2;
}

.line-item.is-active {
  border-color: transparent;
  background: linear-gradient(130deg, #9450ff 3.67%, #5910f0 96.33%);
  box-shadow: 0 4px 5.5px rgba(91, 20, 255, 0.3), inset 0 1px rgba(255, 255, 255, 0.25);
}

.line-item.is-active .sub {
  color: rgba(255, 255, 255, 0.8);
}

@keyframes pulseLive {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 0.2;
    transform: scale(1.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.live-info {
  color: var(--site-text);
}

.live-info p {
  color: var(--site-muted);
  white-space: pre-wrap;
}

.live-chat {
  border-color: var(--site-line);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--site-line);
}

.chat-head div {
  display: grid;
  gap: 2px;
}

.chat-head span {
  color: var(--site-muted);
  font-size: 13px;
}

.chat-head > span {
  color: var(--site-accent);
  font-weight: 800;
}

.site-page .nickname-row,
.site-page .chat-form,
.site-page .chat-ad-slot,
.site-page .pushed-ad-slot {
  border-color: var(--site-line);
}

.site-page input,
.site-page textarea,
.site-page select {
  border-color: #3a3a3a;
  background: #181818;
  color: var(--site-text);
}

.site-page input::placeholder {
  color: #77777d;
}

.site-page .message b {
  color: var(--site-accent);
}

.site-page .message span {
  background: #2a2a2a;
  color: var(--site-text);
}

.site-page .message.mine span {
  background: rgba(255, 76, 111, 0.18);
}

.site-page .system-message,
.site-page .muted {
  color: var(--site-muted);
}

@media (max-width: 920px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    height: 560px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    position: static;
  }

  .sports-toolbar {
    flex-wrap: wrap;
    top: 57px;
  }

  .sports-meta {
    order: 4;
    flex-basis: 100%;
  }

  .schedule-match {
    grid-template-columns: 1fr 44px;
    gap: 12px;
  }

  .match-time,
  .team-block,
  .line-panel {
    grid-column: 1;
  }

  .play-fab {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }
}

@media (max-width: 640px) {
  .match-heading {
    align-items: start;
    flex-direction: column;
  }

  .two-cols,
  .nickname-row,
  .chat-form,
  .rule-item {
    grid-template-columns: 1fr;
  }

  .rule-item small,
  .rule-item form {
    grid-column: auto;
    grid-row: auto;
  }

  .worldcup-page {
    padding-inline: 10px;
  }

  .sports-toolbar {
    top: 53px;
  }

  .schedule-match {
    min-height: 136px;
    padding: 12px;
  }

  .team-block {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .team-side {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .team-side-right {
    justify-content: stretch;
  }

  .team-side-right .team-name {
    order: 2;
  }

  .team-logo {
    width: 34px;
    height: 34px;
  }

  .team-name {
    max-width: 110px;
    font-size: 14px;
  }

  .live-crumb {
    gap: 8px;
    padding: 0 2px;
    font-size: 12px;
  }

  .worldcup-watch .online {
    padding: 6px 9px;
  }

  .match-panel {
    gap: 10px;
    padding: 16px 4px 14px;
  }

  .match-team-logo {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

  .match-team-name {
    max-width: 96px;
    font-size: 14px;
  }

  .score-status {
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }

  .score-vs {
    font-size: 38px;
  }

  .score-time {
    max-width: 110px;
    text-align: center;
    font-size: 12px;
  }

  .worldcup-watch .reference-player {
    border-radius: 10px;
  }

  .lines-bar {
    padding: 12px;
  }

  .line-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .line-item {
    min-width: 108px;
    height: 46px;
    padding: 0 12px;
  }

  .worldcup-watch .player-column {
    padding: 10px;
  }
}
