/* ===== design tokens ===== */
:root {
  --brand: #6c2bd9;
  --brand-2: #00d4aa;
  --bg: #0d0b14;
  --surface: #1a1625;
  --surface-2: #231e30;
  --text: #f0edf5;
  --text-2: #a89bbd;
  --text-3: #6b5f7b;
  --border: #2f2840;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.35);
  --nav-h: 64px;
  --max-w: 1200px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}
[data-theme="light"] {
  --bg: #f5f3fa;
  --surface: #ffffff;
  --surface-2: #edebf3;
  --text: #1a1625;
  --text-2: #5a4f6b;
  --text-3: #9a8faa;
  --border: #ddd6e8;
  --shadow: 0 4px 20px rgba(108,43,217,.08);
}

/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  min-height: 100vh; transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; border: none; outline: none; }
button { cursor: pointer; }

/* ===== layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== header ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,11,20,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
[data-theme="light"] header { background: rgba(245,243,250,.88); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px; height: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 800;
}
.logo-text { color: var(--text); }
.logo-text span { color: var(--brand-2); }

nav.main-nav { display: flex; gap: 6px; align-items: center; }
nav.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  color: var(--text-2); transition: all var(--transition);
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: background var(--transition);
}
.hamburger { display: none; width: 36px; height: 36px; background: var(--surface-2); border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; transition: var(--transition); }

/* ===== hero ===== */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  margin: 24px auto; max-width: var(--max-w); padding: 0 20px;
}
.hero-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,43,217,.7), rgba(0,212,170,.3));
}
.hero-content { position: relative; z-index: 2; padding: 60px 40px; max-width: 600px; }
.hero-content h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 16px; color: #fff; }
.hero-content h1 em { font-style: normal; color: var(--brand-2); }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 24px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  background: var(--brand-2); color: #0d0b14; transition: transform var(--transition), box-shadow var(--transition);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,212,170,.4); }

/* ===== live ticker ===== */
.ticker { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px; overflow-x: auto; border: 1px solid var(--border); }
.ticker-label { font-size: .8rem; font-weight: 700; color: var(--brand-2); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.ticker-item { display: flex; align-items: center; gap: 12px; padding: 6px 14px; background: var(--surface-2); border-radius: 8px; white-space: nowrap; font-size: .85rem; }
.ticker-item .vs { color: var(--text-3); }
.ticker-item .score { font-weight: 700; color: var(--brand-2); }
.ticker-item .time { color: var(--text-3); font-size: .75rem; }
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: #e53e3e; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ===== sections ===== */
.section-title {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: ''; width: 4px; height: 24px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }

/* ===== cards ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 16px; }
.card-cat { font-size: .75rem; font-weight: 600; color: var(--brand-2); text-transform: uppercase; margin-bottom: 6px; }
.card-title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: .8rem; color: var(--text-3); display: flex; gap: 12px; }

/* ===== sidebar ===== */
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.widget-title::before { content: ''; width: 3px; height: 16px; border-radius: 2px; background: var(--brand); }

.hot-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hot-list li:last-child { border-bottom: none; }
.hot-rank { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--text-3); flex-shrink: 0; }
.hot-rank.top1 { background: var(--brand); color: #fff; }
.hot-rank.top2 { background: #9333ea; color: #fff; }
.hot-rank.top3 { background: #c084fc; color: #fff; }
.hot-link { font-size: .88rem; line-height: 1.4; color: var(--text-2); transition: color var(--transition); }
.hot-link:hover { color: var(--brand-2); }

.schedule-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.schedule-list li:last-child { border-bottom: none; }
.schedule-time { color: var(--text-3); font-weight: 600; min-width: 50px; }
.schedule-match { flex: 1; text-align: center; color: var(--text-2); }
.schedule-sport { font-size: .7rem; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--text-3); }

/* ===== standings mini ===== */
.stand-mini table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.stand-mini th { text-align: left; padding: 6px 8px; color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--border); }
.stand-mini td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.stand-mini tr:last-child td { border-bottom: none; }
.stand-pos { font-weight: 700; color: var(--brand-2); width: 28px; }

/* ===== video strip ===== */
.video-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 32px; scrollbar-width: thin; }
.video-card { min-width: 220px; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform var(--transition); }
.video-card:hover { transform: translateY(-3px); }
.video-thumb { position: relative; height: 130px; background: var(--surface-2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(108,43,217,.9); display: flex; align-items: center; justify-content: center; }
.video-play::after { content: ''; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.video-duration { position: absolute; bottom: 8px; right: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: .7rem; }
.video-info { padding: 12px; }
.video-title { font-size: .85rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { font-size: .75rem; color: var(--text-3); }

/* ===== footer ===== */
footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.footer-brand p { color: var(--text-2); font-size: .9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.footer-col a { display: block; font-size: .85rem; color: var(--text-2); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom { text-align: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-3); }

/* ===== subscribe ===== */
.subscribe { background: linear-gradient(135deg, var(--brand), #4c1d95); border-radius: var(--radius); padding: 40px; margin: 32px 0; text-align: center; }
.subscribe h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.subscribe p { color: rgba(255,255,255,.75); margin-bottom: 20px; }
.subscribe-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.subscribe-form input { flex: 1; padding: 12px 16px; border-radius: 8px; background: rgba(255,255,255,.15); color: #fff; font-size: .9rem; }
.subscribe-form input::placeholder { color: rgba(255,255,255,.6); }
.subscribe-form button { padding: 12px 24px; border-radius: 8px; background: var(--brand-2); color: #0d0b14; font-weight: 600; transition: transform var(--transition); }
.subscribe-form button:hover { transform: scale(1.05); }

/* ===== tabs ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { padding: 8px 16px; border-radius: 8px; font-size: .85rem; font-weight: 500; background: var(--surface-2); color: var(--text-2); transition: all var(--transition); }
.tab-btn.active { background: var(--brand); color: #fff; }

/* ===== pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: .85rem; background: var(--surface); border: 1px solid var(--border); transition: all var(--transition);
}
.pagination .active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== search ===== */
.search-box { display: flex; gap: 8px; margin-bottom: 20px; }
.search-box input { flex: 1; padding: 10px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .9rem; }
.search-box button { padding: 10px 20px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; }

/* ===== breadcrumb ===== */
.breadcrumb { font-size: .85rem; color: var(--text-3); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--text-2); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--brand-2); }

/* ===== page header ===== */
.page-header { margin: 28px 0; }
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { color: var(--text-2); }

/* ===== responsive ===== */
@media (max-width: 1080px) {
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { order: -1; flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget { flex: 1; min-width: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-content { padding: 36px 20px; }
  .hero-content h1 { font-size: 1.8rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .subscribe-form { flex-direction: column; }
}
@media (max-width: 520px) {
  :root { --nav-h: 56px; }
  .ticker { flex-direction: column; align-items: flex-start; }
  .page-header h1 { font-size: 1.5rem; }
}

/* ===== utility ===== */
.text-brand { color: var(--brand-2); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
