/* tv.css — M9 大屏TV */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.tv-body {
  min-height: 100vh;
  background: #0a0e17;
  color: #f0f4f8;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: linear-gradient(180deg, #141b2d 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tv-header h1 { font-size: clamp(24px, 4vw, 42px); font-weight: 700; }
.tv-header__meta { display: flex; align-items: center; gap: 16px; font-size: 18px; color: #8899aa; }
.tv-btn {
  padding: 8px 16px; border-radius: 8px; border: none;
  background: #4A90FF; color: #fff; font-size: 14px; cursor: pointer; text-decoration: none;
}
.tv-btn--ghost { background: rgba(255,255,255,0.1); }

.tv-top3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.tv-top-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  animation: tvPulse 2s ease-in-out infinite;
}
.tv-top-card--gold { border-top: 4px solid #FFD700; animation-delay: 0s; }
.tv-top-card--silver { border-top: 4px solid #C0C0C0; animation-delay: 0.3s; }
.tv-top-card--bronze { border-top: 4px solid #CD7F32; animation-delay: 0.6s; }
.tv-top-card__medal { font-size: 48px; display: block; margin-bottom: 8px; }
.tv-top-card__avatar { font-size: 56px; display: block; }
.tv-top-card__name { font-size: 24px; font-weight: 600; display: block; margin: 8px 0; }
.tv-top-card__amount { font-size: 32px; font-weight: 700; color: #F5A623; }

@keyframes tvPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(245,166,35,0); }
  50% { box-shadow: 0 0 32px rgba(245,166,35,0.25); }
}

.tv-scroll-wrap {
  flex: 1;
  overflow: hidden;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.tv-scroll-inner {
  animation: tvScroll 40s linear infinite;
}
.tv-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 22px;
}
.tv-row__rank { width: 48px; font-weight: 700; color: #8899aa; }
.tv-row__avatar { font-size: 32px; }
.tv-row__name { flex: 1; font-weight: 500; }
.tv-row__amount { font-weight: 700; color: #4A90FF; min-width: 140px; text-align: right; }
.tv-row__trend { width: 32px; text-align: center; }

@keyframes tvScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.tv-footer {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: #556;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .tv-top3 { grid-template-columns: 1fr; }
  .tv-row { font-size: 16px; }
}
