/* ========================================
   极竞视界 - CS2 赛事转播站
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0b0e14;
  color: #e6e9f0;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: white;
}

.logo i {
  color: #f0b30b;
  font-size: 28px;
}

.logo span {
  background: linear-gradient(135deg, #fff, #b0b8c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a {
  color: #9aa4b8;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #f0b30b;
  border-radius: 3px 3px 0 0;
}

.auth-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: default;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-primary {
  background: #f0b30b;
  color: #0b0e14;
  font-weight: 700;
}

/* ---------- 主直播区域 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin: 32px 0 40px;
}

.live-player {
  background: #12161f;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.player-wrapper {
  position: relative;
  background: #05080c;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #e53e3e;
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.live-badge i {
  font-size: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.viewer-count {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ddd;
  z-index: 10;
}

.player-meta {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #12161f;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.match-info h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-tag .vs {
  font-size: 14px;
  color: #8b95a9;
  font-weight: 500;
  margin: 0 2px;
}

.score {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 20px;
}

.score .team1 {
  color: #f0b30b;
}

.score .team2 {
  color: #a0aec0;
}

.score .colon {
  color: #4a5568;
}

.match-desc {
  font-size: 14px;
  color: #9aa4b8;
  margin-top: 6px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.match-desc i {
  margin-right: 6px;
  color: #f0b30b;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: #12161f;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-header a {
  color: #f0b30b;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.match-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
}

.team-logo {
  width: 22px;
  height: 22px;
  background: #2a3242;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.match-time {
  font-size: 13px;
  color: #f0b30b;
  background: rgba(240, 179, 11, 0.1);
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 600;
  white-space: nowrap;
}

.live-now {
  font-size: 12px;
  background: #e53e3e;
  color: white;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 通用板块标题 ---------- */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 48px 0 24px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title a {
  color: #f0b30b;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

/* ---------- 热门赛事 ---------- */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.tournament-card {
  background: #12161f;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
}

.tournament-card:hover {
  border-color: rgba(240, 179, 11, 0.3);
  transform: translateY(-4px);
}

.tournament-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #1e2532;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.tournament-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tournament-meta {
  color: #8b95a9;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tournament-meta span i {
  width: 18px;
  color: #f0b30b;
  margin-right: 8px;
}

.prize-pool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  font-weight: 600;
}

.prize-pool .amount {
  color: #f0b30b;
}

/* ---------- 战队排名 ---------- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.team-rank-card {
  background: #12161f;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-number {
  font-size: 24px;
  font-weight: 800;
  color: #f0b30b;
  min-width: 40px;
}

.team-info {
  display: flex;
  flex-direction: column;
}

.team-info .name {
  font-weight: 700;
  font-size: 16px;
}

.team-info .points {
  font-size: 13px;
  color: #8b95a9;
}

/* ---------- 新闻流 ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.news-item {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #12161f;
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.news-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1e2637, #0f131c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0b30b;
  font-size: 28px;
  flex-shrink: 0;
}

.news-content h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-content p {
  font-size: 14px;
  color: #8b95a9;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  color: #6b768b;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #8b95a9;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .tournaments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-wrap: wrap;
    gap: 16px;
  }
  .nav-links {
    gap: 18px;
    font-size: 13px;
  }
  .tournaments-grid {
    grid-template-columns: 1fr;
  }
  .teams-grid {
    grid-template-columns: 1fr;
  }
  .player-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .match-info h2 {
    flex-wrap: wrap;
    font-size: 18px;
  }
  .section-title h2 {
    font-size: 22px;
  }
}