/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #f0f2f5; color: #333; line-height: 1.6; min-width: 1200px; }
a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: #e74c3c; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; }
input, button, select { font-family: inherit; font-size: inherit; outline: none; border: none; }
button { cursor: pointer; }

/* ===== Color Variables ===== */
:root {
  --primary: #e74c3c;
  --primary-light: #ff6b5a;
  --primary-dark: #c0392b;
  --accent: #f39c12;
  --bg-dark: #1a1a2e;
  --bg-darker: #16162a;
  --bg-card: #ffffff;
  --bg-body: #f0f2f5;
  --text-main: #333333;
  --text-secondary: #888888;
  --text-light: #bbbbbb;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --green: #52c41a;
  --red: #e74c3c;
  --blue: #1890ff;
  --orange: #fa8c16;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-sm: 4px;
}

/* ===== Top Header Bar ===== */
.top-header {
  background: var(--bg-dark);
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.top-header .marquee {
  overflow: hidden;
  white-space: nowrap;
  max-width: 1200px;
  width: 100%;
  text-align: center;
}
.top-header .marquee span {
  display: inline-block;
  animation: marquee 20s linear infinite;
  color: var(--accent);
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== Main Header / Navbar ===== */
.main-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.logo img {
  height: 36px;
}
.logo .logo-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  height: 64px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  position: relative;
  transition: all .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}
.main-nav a i {
  font-size: 16px;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all .3s;
}
.btn-download:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231,76,60,0.4);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 16px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
}

/* ===== Layout ===== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 20px;
}
.sidebar-left {
  width: 180px;
  flex-shrink: 0;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.sidebar-right {
  width: 260px;
  flex-shrink: 0;
}
.full-width {
  width: 100%;
}

/* ===== Sidebar ===== */
.sidebar-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-title i {
  font-size: 16px;
}
.nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #555;
  transition: all .2s;
}
.nav-list a:hover,
.nav-list a.active {
  background: #fff5f5;
  color: var(--primary);
}
.nav-list a .icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-list a .icon-dot.dota2 { background: #e74c3c; }
.nav-list a .icon-dot.csgo { background: #1890ff; }
.nav-list a .icon-dot.lol { background: #52c41a; }
.nav-list a .icon-dot.kog { background: #fa8c16; }

/* Hot Events */
.hot-events .event-game {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: #666;
}
.hot-events .event-game select {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: #fff;
}
.event-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #666;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.event-list a:hover {
  background: #fff5f5;
  color: var(--primary);
}
.event-list a i {
  color: var(--primary);
  font-size: 14px;
}

/* ===== Game Tabs ===== */
.game-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border-bottom: 2px solid var(--border-light);
}
.game-tabs a {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  position: relative;
  transition: all .2s;
}
.game-tabs a:hover,
.game-tabs a.active {
  color: var(--primary);
  background: #fff5f5;
}
.game-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* ===== Banner / Slider ===== */
.banner-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
}
.banner-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.banner-content {
  text-align: center;
  color: #fff;
  z-index: 2;
}
.banner-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.banner-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.banner-bg-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23e74c3c;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23f39c12;stop-opacity:0.1"/></linearGradient></defs><rect fill="url(%23g)" width="1200" height="200"/></svg>');
  background-size: cover;
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.banner-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all .3s;
}
.banner-dots span.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ===== Section Title ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}
.section-title i {
  color: var(--primary);
}
.section-title .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.section-more {
  font-size: 13px;
  color: var(--text-secondary);
}
.section-more:hover {
  color: var(--primary);
}

/* ===== Match Cards ===== */
.match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.match-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}
.match-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #fafafa;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}
.match-league {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-weight: 500;
}
.match-league .game-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
.match-status {
  display: flex;
  align-items: center;
  gap: 4px;
}
.match-status .status-live {
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.match-status .status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}
.match-status .status-upcoming {
  color: var(--blue);
  font-weight: 500;
}
.match-status .status-finished {
  color: var(--text-light);
}
.match-status .map-info {
  color: var(--primary);
  font-weight: 500;
}
.match-card-body {
  padding: 12px;
}
.match-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.team-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.team-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #999;
  overflow: hidden;
}
.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.team-score {
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-main {
  font-size: 18px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.score-main.winning {
  color: var(--primary);
}
.score-rounds {
  display: flex;
  gap: 4px;
  font-size: 11px;
  color: #999;
}
.score-round {
  min-width: 18px;
  text-align: center;
  padding: 1px 3px;
  border-radius: 2px;
}
.match-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: #999;
}
.match-viewers {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
}
.match-bo {
  color: #999;
}

/* ===== Rankings Widget ===== */
.rankings-widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rankings-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
}
.rankings-header i {
  font-size: 18px;
}
.rankings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}
.rankings-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  transition: all .2s;
}
.rankings-tabs a:hover,
.rankings-tabs a.active {
  color: var(--primary);
  background: #fff5f5;
}
.rankings-tabs a.active {
  border-bottom: 2px solid var(--primary);
}
.rankings-list {
  padding: 8px 0;
}
.ranking-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  transition: background .2s;
}
.ranking-item:hover {
  background: #fafafa;
}
.ranking-pos {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  margin-right: 10px;
  color: #999;
}
.ranking-pos.top1 { background: #FFD700; color: #fff; }
.ranking-pos.top2 { background: #C0C0C0; color: #fff; }
.ranking-pos.top3 { background: #CD7F32; color: #fff; }
.ranking-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.ranking-team-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #999;
}
.ranking-team-name {
  font-weight: 500;
}
.ranking-pts {
  font-weight: 700;
  color: var(--primary);
  min-width: 40px;
  text-align: right;
}
.ranking-region {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  margin-left: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #999;
}

/* ===== APP Download Widget ===== */
.app-widget {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: #fff;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.app-widget h4 {
  font-size: 15px;
  margin-bottom: 8px;
}
.app-widget p {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 16px;
}
.app-widget .qr-code {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 11px;
}
.app-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  transition: all .2s;
}
.app-btn:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* ===== Footer ===== */
.main-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  max-width: 300px;
}
.footer-brand .logo {
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color .2s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover {
  color: var(--primary);
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: all .2s;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Page Specific: Download Page ===== */
.download-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 40%, #e74c3c 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.download-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(231,76,60,0.15) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.download-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.download-hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all .3s;
}
.dl-btn.ios {
  background: #fff;
  color: #333;
}
.dl-btn.android {
  background: var(--green);
  color: #fff;
}
.dl-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.dl-btn i {
  font-size: 22px;
}
.download-features {
  max-width: 1000px;
  margin: -40px auto 0;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: #fff;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

/* ===== Live Animation Page ===== */
.live-container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.live-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}
.live-title .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.live-title .live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s infinite;
}
.live-animation-area {
  background: #0a0a1a;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.live-animation-area .animation-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.5);
}
.live-animation-area .animation-placeholder i {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.live-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  background: #fff;
}
.live-team {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #999;
}
.live-team-name {
  font-size: 16px;
  font-weight: 600;
}
.live-score-display {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 4px;
}
.live-stats {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}
.live-stat-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.live-stat-label {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: #666;
}
.live-stat-bar {
  flex: 2;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}
.live-stat-bar .bar-left {
  background: var(--primary);
  transition: width .5s;
}
.live-stat-bar .bar-right {
  background: var(--blue);
  transition: width .5s;
}

/* ===== Events Page ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.event-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.event-card-img {
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  position: relative;
}
.event-card-img .event-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.event-badge.ongoing { background: var(--green); }
.event-badge.upcoming { background: var(--blue); }
.event-badge.finished { background: #999; }
.event-card-body {
  padding: 14px;
}
.event-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.event-card-body .event-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #999;
}
.event-card-body .event-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Rankings Page ===== */
.rankings-full {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rankings-full-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}
.rankings-full-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rankings-table {
  width: 100%;
  border-collapse: collapse;
}
.rankings-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  background: #fafafa;
  border-bottom: 1px solid var(--border-light);
}
.rankings-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.rankings-table tr:hover {
  background: #fafafa;
}
.rankings-table .rank-cell {
  font-weight: 700;
  width: 50px;
}
.rankings-table .team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rankings-table .pts-cell {
  font-weight: 700;
  color: var(--primary);
}

/* ===== Match Detail Page ===== */
.match-detail-header {
  background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
  padding: 40px 0;
  color: #fff;
}
.match-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}
.detail-team {
  text-align: center;
}
.detail-team-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  font-weight: 700;
}
.detail-team-name {
  font-size: 18px;
  font-weight: 600;
}
.detail-score-area {
  text-align: center;
}
.detail-score {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 8px;
}
.detail-status {
  margin-top: 8px;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}
.detail-status.live {
  background: var(--green);
}
.detail-status.finished {
  background: rgba(255,255,255,0.2);
}
.match-detail-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.detail-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
}
.detail-tabs a {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  position: relative;
}
.detail-tabs a.active {
  color: var(--primary);
}
.detail-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-secondary); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.bg-white { background: #fff; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* ===== Responsive helpers ===== */
.hide-mobile { display: block; }

/* ===== Date Group ===== */
.date-group {
  margin-bottom: 24px;
}
.date-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}
.date-label i {
  color: var(--primary);
}
.date-label .date-badge {
  padding: 2px 10px;
  background: #fff5f5;
  color: var(--primary);
  border-radius: 12px;
  font-size: 12px;
}

/* ===== Loading & Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #ccc;
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.empty-state p {
  font-size: 14px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn .5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Match List (for matches page) ===== */
.match-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  transition: background .2s;
  cursor: pointer;
}
.match-list-item:hover {
  background: #fafafa;
}
.match-list-item:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}
.match-list-item:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: none;
}
.match-time {
  width: 60px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}
.match-time .time-status {
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
}
.match-teams-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.match-team-block {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.match-team-block.right {
  flex-direction: row-reverse;
  text-align: right;
}
.match-vs-score {
  min-width: 60px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}
.match-info-right {
  width: 100px;
  text-align: right;
  font-size: 12px;
  color: #999;
}
