@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --midnight: #1A1A2E;
  --mag-red: #E94560;
  --paper: #FAFAFA;
  --tag-blue: #0F3460;
}

body.q2-body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--paper);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, .q2-display {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.q2-header {
  background: var(--midnight);
  color: #fff;
}

.q2-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.q2-logo a { color: #fff; text-decoration: none; font-family: 'Playfair Display', serif; font-size: 1.4rem; }

.q2-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.q2-nav a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600; }
.q2-nav a:hover { color: var(--mag-red); }

.q2-league-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.q2-league-tab {
  padding: 14px 20px;
  text-decoration: none;
  color: #666;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.q2-league-tab.active,
.q2-league-tab:hover { color: var(--mag-red); }

.q2-league-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--mag-red);
  border-radius: 2px 2px 0 0;
}

.q2-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 32px;
}

.q2-magazine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
  min-height: 360px;
}

.q2-mag-main {
  grid-row: span 2;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}

.q2-mag-main img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

.q2-mag-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(26,26,46,0.85));
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.q2-mag-side { display: flex; flex-direction: column; gap: 12px; }

.q2-mag-sub {
  flex: 1;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}

.q2-mag-sub img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }

.q2-mag-sub span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(26,26,46,0.7);
  color: #fff;
  font-size: 0.9rem;
}

.q2-schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.q2-schedule-tabs span {
  margin-left: 12px;
  padding: 4px 12px;
  cursor: pointer;
  color: #888;
  font-size: 0.85rem;
}

.q2-schedule-tabs span.active { color: var(--mag-red); font-weight: 700; border-bottom: 2px solid var(--mag-red); }

.q2-section { font-size: 1.2rem; color: var(--midnight); margin: 0 0 12px; }

.q2-main .match_zhibo_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.q2-main .match-item {
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee !important;
  border-radius: 4px;
  padding: 14px;
  text-align: center;
}

.q2-body .site-subtitle { color: var(--mag-red); }
.q2-body .match_filter_item.on a { background: var(--midnight) !important; color: #fff !important; }
.q2-body .info_right.start a { background: var(--mag-red) !important; color: #fff !important; }

.q2-video-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.q2-video-card {
  min-width: 280px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.q2-video-card img { width: 100%; height: 160px; object-fit: cover; }
.q2-video-body { padding: 12px; }
.q2-video-tag {
  display: inline-block;
  background: var(--tag-blue);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.q2-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.q2-player-card,
.q2-team-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--mag-red);
}

.q2-player-card img,
.q2-team-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.q2-team-card img { border-radius: 4px; }
.q2-player-card p, .q2-team-card p { font-size: 0.78rem; color: #888; margin: 4px 0 0; }

.q2-tag-filter { display: flex; flex-wrap: wrap; gap: 8px; }

.q2-tag {
  padding: 6px 14px;
  border: 1px solid var(--tag-blue);
  color: var(--tag-blue);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

.q2-tag:hover { background: var(--tag-blue); color: #fff; }

.q2-footer.footer-wrapper { background: var(--midnight); color: rgba(255,255,255,0.85); }
.q2-footer p, .q2-footer .footer-desc { text-align: center; }
.q2-footer a { color: var(--mag-red); }

.q2-body .container { width: 100% !important; max-width: 1200px; }
.q2-body .position { background: var(--paper); }

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

.q2-page { max-width: 1200px; margin: 0 auto; padding: 0 20px 32px; }
.q2-breadcrumb { padding: 14px 0; font-size: 0.85rem; color: #888; }
.q2-breadcrumb a { color: var(--mag-red); text-decoration: none; }

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

.q2-list-main {
  background: #fff;
  padding: 24px;
  border: 1px solid #e8e8e8;
  min-width: 0;
}

.q2-aside-box { background: #fff; border: 1px solid #e8e8e8; padding: 16px; margin-bottom: 16px; }
.q2-aside-box h3 { margin: 0 0 12px; font-family: 'Playfair Display', serif; color: var(--midnight); border-bottom: 2px solid var(--mag-red); padding-bottom: 8px; }
.q2-aside-link { display: block; padding: 8px 0; font-size: 0.85rem; color: #555; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
.q2-aside-link:hover { color: var(--mag-red); }
.q2-aside-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.q2-aside-tags a { padding: 4px 10px; border: 1px solid var(--tag-blue); color: var(--tag-blue); font-size: 0.78rem; text-decoration: none; }

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

@media (max-width: 900px) {
  .q2-magazine { grid-template-columns: 1fr; }
  .q2-mag-main { grid-row: auto; }
  .q2-main .match_zhibo_list { grid-template-columns: 1fr; }
  .q2-cards-grid { grid-template-columns: 1fr; }
  .q2-list-layout { grid-template-columns: 1fr; }
}

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

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

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

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

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

.q2-body .container_left .match_zhibo_list { display: block !important; }

.q2-body .container_left .match-item {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #eee !important;
  border-radius: 0 !important;
  padding: 15px 5px !important;
}

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