* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #06051a;
  color: #fff;
}
a { color: inherit; text-decoration: none; }

.hero-split {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hero-main-column,
.hero-side-column {
  min-width: 0;
}
.hero-side-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hero-split .tg-community-card {
  margin-top: 0;
}
.platform-section__head.section-title {
  margin: 0 2px 6px;
}

.page {
  width: 100%; max-width: 430px; margin: 0 auto; min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(34,92,255,.34), transparent 28%),
    linear-gradient(180deg, #10164a 0%, #07051e 42%, #03020b 100%);
  padding: 10px 10px 84px;
  overflow-x: hidden;
}
.region-top-bar {
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px 0;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, #071b5c 0%, #102a82 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  box-sizing: border-box;
}
.region-top-bar .region-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .region-top-bar {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    margin-bottom: 10px;
  }

  .region-top-bar .region-link {
    font-size: 13px;
  }
}

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0 8px;
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(8,8,32,.96), rgba(8,8,32,.62), transparent);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 6px; }
.logo { font-size: 21px; font-weight: 950; color: #ffd773; }
.brand b { font-size: 13px; }
.brand small { display: block; color: #9fb3ff; font-size: 9px; margin-top: 1px; }
.online-pill {
  display: flex; align-items: center; gap: 4px; padding: 5px 8px;
  border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  font-size: 11px; color: #dce7ff;
}
.dot { width: 6px; height: 6px; background: #14ffae; border-radius: 50%; box-shadow: 0 0 10px #14ffae; }
.online-pill b { color: #14ffae; }

.live-hero {
  border-radius: 18px; padding: 13px; position: relative; overflow: hidden;
  border: 1px solid rgba(82,185,255,.34);
  background:
    radial-gradient(circle at 20% 0%, rgba(0,185,255,.38), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255,64,64,.32), transparent 24%),
    linear-gradient(145deg, #071f55, #090826 58%, #050314);
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
}
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.13); color: #fff; font-size: 11px; font-weight: 900;
  margin-bottom: 8px;
}
.live-screen {
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.56)),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.16), transparent 20%),
    linear-gradient(135deg, #123c8f, #091334 62%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 38px rgba(0,0,0,.28);
}
.live-top { display:flex; justify-content:space-between; align-items:center; font-size: 12px; color:#dce8ff; margin-bottom: 13px; }
.live-top b { color:#14ffae; font-size: 11px; }
.score-row { display:grid; grid-template-columns: 1fr 76px 1fr; align-items:center; text-align:center; gap: 8px; }
.score-row strong { display:block; font-size: 17px; }
.score-row small { display:block; color:#9fb0d8; font-size: 10px; margin-top: 2px; }
.live-score { font-size: 27px; font-weight: 950; color:#ffd760; }
.match-time { text-align:center; color:#cbd7ff; font-size: 12px; margin: 11px 0; }
.watch-btn { display:block; text-align:center; padding: 11px; border-radius: 999px; background: linear-gradient(180deg, #ffefb0, #f4a51f); color:#170900; font-weight: 950; font-size: 15px; }

.live-screen--embed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #123c8f, #091334 62%);
  box-shadow: inset 0 0 0 transparent;
}
.live-screen--embed::before,
.live-screen--embed::after,
.hero-player-wrap::before,
.hero-player-wrap::after {
  content: none;
  display: none;
}
.hero-live-meta-line {
  margin: 0;
  font-size: 13px;
  color: #dce8ff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-live-teams {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
  color: #fff;
  text-align: center;
}
.hero-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, .12);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.hero-live-video,
.main-live-video,
.live-video,
.hero-player-wrap video {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: min(52vh, 420px);
  background: #000;
  object-fit: contain;
  pointer-events: auto;
}
.hero-live-video.is-hidden,
.hero-player-wrap video.is-hidden {
  display: none;
}
.hero-player-message {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  text-align: center;
  color: #c8d4ff;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(0, 0, 0, .72);
  pointer-events: none;
}
.hero-player-message.is-active {
  display: flex;
}
.hero-player-message[hidden] {
  display: none !important;
}
.hero-player-message.is-error {
  color: #ffb4b4;
}
.hero-player-message.is-loading {
  background: rgba(0, 0, 0, .45);
}
.hero-mute-hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffe9a9;
  line-height: 1.4;
}
.hero-unmute-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #1eb8ff, #0064f0);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 100, 240, .35);
}
.hero-unmute-btn.is-done {
  background: rgba(255, 255, 255, .14);
  color: #9fb0d8;
  box-shadow: none;
  cursor: default;
}
.hero-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.hero-source-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #e8ecff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.hero-source-btn.is-active {
  background: linear-gradient(180deg, #1eb8ff, #0064f0);
  border-color: transparent;
  color: #fff;
}
.hero-source-btn.is-disabled,
.hero-source-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.live-info-row { display:grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 8px; }
.live-info-row div { padding: 7px 3px; text-align:center; border-radius: 12px; background: rgba(255,255,255,.09); font-size: 10px; }
.live-info-row b { display:block; font-size: 17px; margin-bottom: 2px; }

.sub-live-wrap { margin-top: 9px; }
.sub-live-title { display:flex; justify-content:space-between; align-items:center; margin: 0 2px 7px; }
.sub-live-title h3 { font-size: 14px; }
.sub-live-title span { color:#9fb0d8; font-size: 11px; }
.sub-live-scroll { display:flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sub-live-scroll::-webkit-scrollbar { display:none; }
.sub-live-card {
  flex: 0 0 150px; padding: 10px; border-radius: 15px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.sub-live-card .mini-status { color:#85ffd0; font-size: 10px; margin-bottom: 6px; }
.sub-live-card .mini-match { display:flex; justify-content:space-between; align-items:center; gap: 6px; font-size: 12px; font-weight: 800; }
.sub-live-card .mini-score { color:#ffd760; font-weight: 950; }
.sub-live-card .mini-hot { margin-top: 7px; color:#aebbe4; font-size: 10px; }
.sub-live-card.is-active {
  border-color: rgba(30, 184, 255, .65);
  background: rgba(30, 184, 255, .14);
  box-shadow: 0 0 0 1px rgba(30, 184, 255, .25);
}
.sub-live-card.is-active .mini-status { color: #9ef0ff; }

.tag {
  display: inline-block; padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.15); color: #ffe9a9; font-size: 11px; margin-bottom: 6px;
}
.tg-community-card {
  margin-top: 14px;
  padding: 20px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #104aa8 0%, #0b2b73 100%);
  border: 1px solid rgba(77, 174, 255, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  overflow: hidden;
}
.tg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tg-card-kicker {
  color: #ffd75a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.tg-card-online {
  color: #00ffd5;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.tg-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(72, 151, 255, 0.45);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}
.tg-card-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.tg-card-desc {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.65;
}
.tg-id-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(5, 28, 90, 0.72);
  border: 1px solid rgba(95, 158, 255, 0.35);
}
.tg-id-content {
  min-width: 0;
}
.tg-id-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.tg-id-value {
  display: block;
  color: #ffffff;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 900;
  word-break: break-all;
}
.tg-copy-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #ffe06b 0%, #ffc842 100%);
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, filter .15s;
}
.tg-copy-btn:hover,
.tg-copy-btn:focus-visible {
  filter: brightness(1.05);
  outline: none;
}
.tg-copy-btn:active {
  transform: scale(0.97);
}
.tg-copy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.tg-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.tg-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  border-radius: 16px;
  background: rgba(75, 130, 215, 0.52);
}
.tg-step-item strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 8px;
}
.tg-step-item span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}
.tg-feature-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}
.tg-feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.tg-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  box-sizing: border-box;
  text-align: center;
  transition: transform .12s, filter .15s;
}
.tg-btn:hover,
.tg-btn:focus-visible {
  filter: brightness(1.06);
  outline: none;
}
.tg-btn:active {
  transform: scale(0.98);
}
.tg-btn-primary {
  background: linear-gradient(180deg, #2bbcff 0%, #0b8df0 100%);
}
.tg-btn-secondary {
  background: rgba(55, 78, 135, 0.82);
  border: 1px solid rgba(160, 190, 255, 0.35);
}
@media (max-width: 768px) {
  .tg-community-card {
    padding: 18px 16px 16px;
    border-radius: 20px;
  }
  .tg-card-head {
    align-items: flex-start;
  }
  .tg-card-kicker {
    font-size: 14px;
  }
  .tg-card-online {
    font-size: 13px;
  }
  .tg-card-title {
    font-size: 26px;
  }
  .tg-card-desc {
    font-size: 15px;
  }
  .tg-id-value {
    font-size: 20px;
  }
  .tg-step-grid {
    gap: 8px;
  }
  .tg-feature-row {
    justify-content: flex-start;
    gap: 8px 14px;
  }
  .tg-feature-row span {
    font-size: 18px;
  }
  .tg-btn {
    min-height: 58px;
    font-size: 17px;
  }
}
@media (max-width: 420px) {
  .tg-card-head {
    flex-direction: column;
    gap: 6px;
  }
  .tg-id-box {
    padding: 12px;
  }
  .tg-copy-btn {
    padding: 10px 14px;
  }
  .tg-action-row {
    grid-template-columns: 1fr;
  }
}
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: min(92vw, 360px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(12, 22, 58, .94);
  border: 1px solid rgba(120, 170, 255, .35);
  color: #e8f0ff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.copy-toast.copy-toast--error {
  border-color: rgba(255, 140, 140, .45);
  color: #ffd6d6;
}
@media (min-width: 900px) {
  .copy-toast {
    bottom: 28px;
  }
}
.section-title { display:flex; justify-content:space-between; align-items:flex-end; margin: 13px 2px 8px; }
.section-title h3 { font-size: 18px; }
.section-title span { color: #9fb0d8; font-size: 11px; }
.quick-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick-card {
  min-height: 118px;
  border-radius: 16px;
  padding: 11px 11px 38px;
  border: 1px solid rgba(255,255,255,.13);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.23);
  display: flex;
  flex-direction: column;
}
.quick-card h4 {
  font-size: 16px;
  margin: 0 0 3px;
  padding-right: 52px;
  line-height: 1.25;
}
.quick-card p {
  color: rgba(255,255,255,.78);
  font-size: 11px;
  margin: 0;
  padding-right: 52px;
  line-height: 1.4;
  flex: 1;
}
.quick-card .product-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  margin: 0 0 8px;
  padding-right: 52px;
}
.quick-card .product-logo-wrap .product-emoji-fallback {
  display: none;
  font-size: 34px;
  line-height: 1;
}
.quick-card .product-logo-wrap:not(:has(img.product-logo)) .product-emoji-fallback {
  display: block;
}
.quick-card .product-logo {
  display: block;
  width: 52px;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.quick-card .big.product-emoji,
.quick-card .product-emoji {
  font-size: 34px;
  line-height: 1;
  margin: 0 0 8px;
  padding-right: 52px;
}
.quick-card .go { position:absolute; right: 9px; bottom: 9px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 11px; font-weight: 800; }
.purple { background: linear-gradient(145deg, #7423c7, #1b0c46); }
.blue { background: linear-gradient(145deg, #045cc6, #07163d); }
.green { background: linear-gradient(145deg, #07806a, #05242b); }
.gold { background: linear-gradient(145deg, #b46c12, #2d1705); }

.match-panel, .chat-panel { margin-top: 10px; border-radius: 18px; padding: 12px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 10px 28px rgba(0,0,0,.24); }
.panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 9px; }
.panel-head h3 { font-size: 16px; }
.muted { color: #9fb0d8; font-size: 11px; }
.match-list { display:flex; flex-direction: column; gap: 7px; }
.match { display:grid; grid-template-columns: 52px 1fr 42px 1fr; gap: 6px; align-items:center; padding: 9px; border-radius: 13px; background: rgba(255,255,255,.075); }
.status { color: #85ffd0; font-size: 10px; }
.time { font-size: 12px; color: #dbe5ff; }
.team { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs { text-align:center; color: #ffd760; font-weight: 950; font-size: 13px; }
.chat-shot {
  background: #f4f6fb;
  color: #161616;
  border-radius: 15px;
  padding: 10px;
}
.chat-shot:not(.chat-shot--image) {
  min-height: 205px;
  overflow: hidden;
}
.chat-shot--image {
  padding: 0;
  background: #0b1028;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  display: block;
}
.chat-shot--image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 16px;
  vertical-align: middle;
}

@media (max-width: 899px) {
  .chat-panel .chat-shot--image {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .chat-panel .chat-shot--image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    border-radius: 16px;
  }
}
.chat-top { display:flex; justify-content:space-between; align-items:center; border-bottom: 1px solid #ddd; padding-bottom: 7px; margin-bottom: 7px; font-size: 12px; }
.bubble { max-width: 82%; padding: 7px 9px; border-radius: 13px; margin: 6px 0; background:#fff; color:#222; box-shadow:0 2px 8px rgba(0,0,0,.08); font-size:12px; line-height: 1.35; }
.bubble.me { margin-left:auto; background:#baf3a9; }
.upload-note { margin-top: 7px; color:#b8c5ef; font-size: 11px; line-height: 1.4; }
.bottom-nav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 20; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(3,2,11,.92) 22%, rgba(3,2,11,.98)); }
.bottom-nav-inner { display:grid; grid-template-columns: .9fr 1.1fr; gap: 8px; }
.sub-btn, .cta-btn { border-radius: 999px; text-align:center; font-weight: 900; padding: 12px 8px; font-size: 14px; }
.sub-btn { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); }
.cta-btn { background: linear-gradient(180deg, #fff0b8, #f2a81d); color: #170900; box-shadow: 0 12px 30px rgba(255,174,38,.25); }

.live-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.live-modal.is-open {
  display: flex;
}
.live-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 18, .88);
  backdrop-filter: blur(6px);
}
.live-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 18px;
  padding: 14px 14px 16px;
  background: linear-gradient(160deg, #12183f 0%, #07051e 55%, #03020b 100%);
  border: 1px solid rgba(120, 170, 255, .22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
}
.live-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.live-modal__title {
  font-size: 16px;
  margin: 0 40px 10px 4px;
  color: #eef3ff;
  line-height: 1.3;
}
.live-modal__player-wrap {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, .1);
}
.live-modal__video {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(56vh, 520px);
  background: #000;
  vertical-align: middle;
  pointer-events: auto;
}
.live-modal__video.is-hidden {
  display: none;
}
.live-modal__message {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
  color: #c8d4ff;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(0, 0, 0, .72);
  pointer-events: none;
}
.live-modal__message.is-active {
  display: flex;
}
.live-modal__message[hidden] {
  display: none !important;
}
.live-modal__message.is-error {
  color: #ffb4b4;
}
.live-modal__external {
  display: inline-block;
  margin: 16px auto;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffefb0, #f4a51f);
  color: #170900;
  font-weight: 900;
  font-size: 14px;
  text-align: center;
}
.live-modal__player-wrap--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.live-modal__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.live-modal__source-btn {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #e8ecff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.live-modal__source-btn.is-active {
  background: linear-gradient(180deg, #1eb8ff, #0064f0);
  border-color: transparent;
  color: #fff;
}
.live-modal__source-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(ellipse 90% 55% at 50% -8%, rgba(34, 92, 255, .42), transparent 52%),
      radial-gradient(ellipse 70% 50% at 100% 35%, rgba(255, 64, 120, .14), transparent 45%),
      radial-gradient(ellipse 55% 45% at 0% 55%, rgba(0, 210, 170, .08), transparent 42%),
      linear-gradient(180deg, #0a0b24 0%, #06051a 38%, #03020f 100%);
    min-height: 100vh;
  }

  .page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 22px 96px;
    border-radius: 22px;
    border: 1px solid rgba(120, 170, 255, .12);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, .35),
      0 28px 80px rgba(0, 0, 0, .55);
  }

  .topbar {
    padding: 8px 4px 12px;
  }
  .brand b { font-size: 15px; }
  .brand small { font-size: 10px; }
  .online-pill { font-size: 12px; padding: 6px 10px; }

  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 4px;
  }

  .hero-side-column {
    gap: 14px;
    justify-content: flex-start;
  }

  .live-hero {
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .tg-community-card {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .platform-section {
    flex: 0 0 auto;
    min-width: 0;
  }

  .platform-section__head.section-title {
    margin: 0 2px 8px;
  }
  .platform-section__head h3 {
    font-size: 17px;
  }
  .live-badge { font-size: 12px; margin-bottom: 10px; }
  .live-screen { padding: 14px 16px; }
  .live-screen--embed { gap: 12px; }
  .hero-live-meta-line { font-size: 14px; }
  .hero-live-teams { font-size: 22px; }
  .hero-player-wrap { min-height: 240px; max-height: min(48vh, 460px); }
  .hero-live-video { max-height: min(48vh, 460px); }
  .hero-mute-hint { font-size: 14px; }
  .hero-unmute-btn { max-width: 320px; font-size: 15px; padding: 11px 18px; }
  .hero-source-btn { font-size: 13px; padding: 10px 12px; }
  .live-top { font-size: 13px; margin-bottom: 14px; }
  .live-top b { font-size: 12px; }
  .score-row { gap: 12px; }
  .score-row strong { font-size: 19px; }
  .score-row small { font-size: 11px; }
  .live-score { font-size: 30px; }
  .match-time { font-size: 13px; }
  .watch-btn { font-size: 16px; padding: 12px; }
  .live-info-row { gap: 8px; margin-top: 10px; }
  .live-info-row div { font-size: 11px; padding: 8px 4px; }

  .sub-live-wrap { margin-top: 12px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .sub-live-title h3 { font-size: 15px; }
  .sub-live-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex: 1;
    align-content: start;
  }
  .sub-live-card {
    flex: initial;
    min-height: 92px;
  }

  .section-title {
    margin: 18px 4px 10px;
  }
  .section-title h3 { font-size: 19px; }

  .hero-side-column .quick-grid,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-side-column .quick-card {
    min-height: 104px;
    padding: 10px 10px 36px;
  }
  .hero-side-column .quick-card h4 { font-size: 14px; }
  .hero-side-column .quick-card .product-logo-wrap {
    min-height: 44px;
    margin-bottom: 6px;
  }
  .hero-side-column .quick-card .product-logo-wrap .product-emoji-fallback { font-size: 26px; }
  .hero-side-column .quick-card .product-logo {
    width: 52px;
    height: 52px;
  }
  .hero-side-column .quick-card .big.product-emoji,
  .hero-side-column .quick-card .product-emoji {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .match-panel,
  .chat-panel {
    padding: 16px;
    margin-top: 14px;
  }
  .panel-head h3 { font-size: 17px; }
  .match-list { gap: 9px; }
  .match {
    grid-template-columns: 88px minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .match .status { font-size: 11px; }
  .match .time { font-size: 13px; margin-top: 3px; }
  .match .team { font-size: 14px; }
  .match .vs { font-size: 15px; }

  .chat-shot:not(.chat-shot--image) {
    min-height: 280px;
    border-radius: 16px;
    padding: 12px;
  }
  .bubble { font-size: 13px; padding: 8px 10px; }
  .chat-shot--image {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .chat-shot--image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 620px);
    object-fit: contain;
    margin: 0 auto;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .06), transparent 55%);
  }

  .bottom-nav {
    max-width: 1180px;
    width: 100%;
    padding: 11px 22px calc(11px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(120, 170, 255, .12);
    border-bottom: none;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 28, .94) 24%, rgba(5, 5, 18, .98));
    box-shadow: 0 -18px 48px rgba(0, 0, 0, .35);
  }
  .bottom-nav-inner {
    width: 100%;
    gap: 12px;
  }
  .sub-btn,
  .cta-btn {
    font-size: 15px;
    padding: 13px 12px;
  }
}

@media (min-width: 1100px) {
  .chat-shot--image img {
    max-height: min(76vh, 680px);
  }
}
