@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
  --matrix: #00FF41;
  --live-red: #FF003C;
  --bg: #111111;
  --panel: #1a1a1a;
}

body.c3-body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--matrix);
  line-height: 1.5;
}

h1, h2, h3, .c3-digital {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.c3-header {
  background: #000;
  border-bottom: 2px solid var(--matrix);
  box-shadow: 0 0 20px rgba(0,255,65,0.2);
}

.c3-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.c3-logo { color: var(--matrix); text-decoration: none; font-size: 1.2rem; text-shadow: 0 0 10px var(--matrix); }
.c3-logo img { height: 36px; filter: hue-rotate(90deg); }

.c3-nav { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.c3-nav a { color: #888; text-decoration: none; font-size: 0.85rem; }
.c3-nav a:hover { color: var(--matrix); }

.c3-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--live-red);
  border-radius: 50%;
  animation: c3-blink 1s infinite;
  margin-right: 6px;
}

@keyframes c3-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.c3-main { max-width: 1400px; margin: 0 auto; padding: 16px; }

.c3-h1-row { display: flex; align-items: center; margin-bottom: 16px; border-bottom: 1px solid #333; padding-bottom: 12px; }
.c3-h1-row h1 { margin: 0 0 0 20px; font-size: 1.1rem; color: var(--matrix); }
.c3-h1-row h1 span.site-subtitle { font-size: 16px; color: #aaa; font-weight: 400; }

.c3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 16px;
  background: #000;
  border: 1px solid var(--matrix);
}

.c3-grid-cell {
  aspect-ratio: 16/10;
  background: var(--panel);
  border: 1px solid #333;
  padding: 8px;
  text-decoration: none;
  color: var(--matrix);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.c3-grid-cell:hover { border-color: var(--matrix); box-shadow: inset 0 0 20px rgba(0,255,65,0.1); }
.c3-grid-cell .c3-live-tag { color: var(--live-red); font-size: 0.7rem; }
.c3-grid-teams { font-size: 0.75rem; }
.c3-grid-score { font-size: 1.2rem; font-weight: 700; text-align: center; }

.c3-layout { display: grid; grid-template-columns: 220px 1fr 240px; gap: 12px; }

.c3-panel {
  background: var(--panel);
  border: 1px solid #333;
  padding: 12px;
  margin-bottom: 12px;
}

.c3-panel-title {
  color: var(--matrix);
  font-size: 0.8rem;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #333;
}

.c3-data-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #222;
  font-size: 0.8rem;
}

.c3-danmaku {
  height: 120px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  border: 1px solid #333;
}

.c3-danmaku-line {
  position: absolute;
  white-space: nowrap;
  color: var(--matrix);
  font-size: 0.8rem;
  animation: c3-scroll 12s linear infinite;
}

@keyframes c3-scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.c3-center { border: 1px solid var(--matrix); padding: 12px; background: #0a0a0a; }

.c3-footer { background: #000; color: #666; text-align: center; padding: 24px; font-size: 0.8rem; border-top: 1px solid #333; }
.c3-footer a { color: var(--matrix); }

.c3-body .match_filter_item.active a { background: var(--matrix) !important; color: #000 !important; }
.c3-body .match-item { background: #1a1a1a !important; border-color: #333 !important; color: var(--matrix) !important; }
.c3-body .linkbtn.start { background: var(--live-red) !important; color: #fff !important; }
.c3-body .linkbtn { color: var(--matrix) !important; border-color: var(--matrix) !important; }
.c3-body a { color: var(--matrix); }

.c3-page-heading { display: flex; align-items: center; width: 100%; margin-bottom: 12px; }

@media (max-width: 900px) {
  .c3-grid { grid-template-columns: repeat(2, 1fr); }
  .c3-layout { grid-template-columns: 1fr; }
}
