@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Oswald:wght@600;700&display=swap');

:root {
  --deep: #0D1B2A;
  --gold: #F7C948;
  --white: #FFFFFF;
  --teal: #2EC4B6;
}

body.q3-body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--white);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, .q3-display {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q3-header {
  background: var(--deep);
  color: #fff;
}

.q3-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.q3-logo a { color: #fff; text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 1.4rem; }

.q3-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.q3-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: none;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0;
}

.q3-nav a:hover { color: var(--gold); }
.q3-search { font-size: 1.2rem; cursor: pointer; }

.q3-leagues-bar {
  background: #f8f9fa;
  border-bottom: 2px solid var(--gold);
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 24px;
}

.q3-league-logo {
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 64px;
  flex-shrink: 0;
}

.q3-league-logo img { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto 4px; }
.q3-league-logo span { font-size: 0.7rem; color: var(--deep); text-transform: none; font-family: 'Noto Sans SC', sans-serif; }

.q3-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 24px;
  align-items: start;
}

.q3-main-col { min-width: 0; }

.q3-news-hero { margin-bottom: 24px; }

.q3-news-featured {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  text-decoration: none;
}

.q3-news-featured img { width: 100%; height: 240px; object-fit: cover; }

.q3-news-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(13,27,42,0.85));
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
  text-transform: none;
  font-weight: 700;
}

.q3-news-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  text-transform: none;
  font-family: 'Noto Sans SC', sans-serif;
}

.q3-section { font-size: 1.1rem; color: var(--deep); margin: 20px 0 12px; }

.q3-body .site-subtitle { color: var(--gold); text-transform: none; font-family: 'Noto Sans SC', sans-serif; }
.q3-body .match_filter_item.on a { background: var(--deep) !important; color: #fff !important; }
.q3-body .info_right.start a { background: var(--gold) !important; color: var(--deep) !important; }

.q3-record-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.q3-record-row img { width: 80px; height: 48px; object-fit: cover; border-radius: 4px; background: #ddd; }
.q3-record-body { text-transform: none; font-family: 'Noto Sans SC', sans-serif; font-size: 0.88rem; }
.q3-record-body span { display: block; font-size: 0.75rem; color: #888; margin-top: 4px; }

.q3-panel {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.q3-panel-block {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border-top: 3px solid var(--teal);
}

.q3-panel-block h3 {
  font-size: 1rem;
  color: var(--deep);
  margin: 0 0 12px;
}

.q3-panel-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  text-transform: none;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.85rem;
}

.q3-panel-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.q3-panel-rank { font-family: 'Oswald', sans-serif; color: var(--gold); font-size: 1.1rem; min-width: 20px; }
.q3-panel-item p { font-size: 0.75rem; color: #888; margin: 2px 0 0; }

.q3-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.q3-tag-cloud a {
  padding: 4px 10px;
  background: rgba(46,196,182,0.15);
  color: var(--teal);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: none;
  font-family: 'Noto Sans SC', sans-serif;
}

.q3-footer.footer-wrapper { background: var(--deep); color: rgba(255,255,255,0.85); }
.q3-footer p, .q3-footer .footer-desc { text-align: center; }
.q3-footer a { color: var(--gold); }

.q3-body .container { width: 100% !important; max-width: 1200px; }
.q3-body .position { background: #f8f9fa; }

.q3-body .header { display: none !important; }
.q3-body .second-header { display: none !important; }

.q3-page { max-width: 1400px; margin: 0 auto; padding: 0 24px 32px; }
.q3-breadcrumb { padding: 14px 0; font-size: 0.85rem; color: #888; text-transform: none; font-family: 'Noto Sans SC', sans-serif; }
.q3-breadcrumb a { color: var(--gold); text-decoration: none; }

.q3-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.q3-list-main {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(13,27,42,0.08);
  min-width: 0;
}

.q3-aside-box { background: #f8f9fa; border-radius: 8px; padding: 16px; margin-bottom: 16px; border-left: 3px solid var(--teal); }
.q3-aside-box h3 { margin: 0 0 12px; font-size: 1rem; color: var(--deep); text-transform: none; font-family: 'Noto Sans SC', sans-serif; }
.q3-aside-link { display: block; padding: 8px 0; font-size: 0.85rem; color: #555; text-decoration: none; text-transform: none; font-family: 'Noto Sans SC', sans-serif; }
.q3-aside-link:hover { color: var(--gold); }
.q3-aside-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.q3-aside-tags a { padding: 4px 10px; background: rgba(46,196,182,0.12); color: var(--teal); font-size: 0.78rem; text-decoration: none; border-radius: 4px; }

.q3-detail h1 { margin: 0 0 12px; font-size: 1.4rem; color: var(--deep); text-transform: none; font-family: 'Noto Sans SC', sans-serif; line-height: 1.4; }
.q3-detail-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #999; margin-bottom: 20px; text-transform: none; font-family: 'Noto Sans SC', sans-serif; }
.q3-detail-meta a { color: var(--gold); text-decoration: none; }
.q3-detail-body { line-height: 1.8; word-break: break-word; text-transform: none; font-family: 'Noto Sans SC', sans-serif; }
.q3-detail-body a { color: var(--deep); }
.q3-detail-video { position: relative; padding-bottom: 56.25%; height: 0; margin-bottom: 20px; }
.q3-detail-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.q3-prenext { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 10px; }
.q3-prenext a { color: #555; text-decoration: none; font-size: 0.9rem; text-transform: none; font-family: 'Noto Sans SC', sans-serif; }

@media (max-width: 900px) {
  .q3-layout { grid-template-columns: 1fr; }
  .q3-list-layout { grid-template-columns: 1fr; }
  .q3-panel { position: static; max-height: none; box-shadow: none; }
}

.q3-body .container.flex-between:has(.ny_leftside) {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
  float: none !important;
}

.q3-body .container.flex-between:not(:has(.ny_leftside)) {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  float: none !important;
}

.q3-body .container.flex-between:has(.ny_leftside) .ny_leftside {
  position: static !important;
  left: auto !important;
  width: 100% !important;
  float: none !important;
}

.q3-body .container.flex-between:has(.ny_leftside) .ny_leftside .all {
  background: var(--deep);
  width: 100%;
}

.q3-body .container_left,
.q3-body .container_right {
  width: 100% !important;
  float: none !important;
  min-width: 0;
}

.q3-body .container_left .match-item {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

@media (max-width: 900px) {
  .q3-body .container.flex-between:has(.ny_leftside),
  .q3-body .container.flex-between:not(:has(.ny_leftside)) {
    grid-template-columns: 1fr;
  }
}
