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

:root {
  --white: #FFFFFF;
  --red: #FF4D4D;
  --bg: #F0F2F5;
  --tag: #FF9500;
}

body.q1-body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, .q1-display {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.q1-header {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.q1-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: center;
}

.q1-logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;
}

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

.q1-nav a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.q1-nav a:hover,
.q1-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.q1-leagues {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex-wrap: wrap;
}

.q1-league-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--white);
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}

.q1-league-pill:hover,
.q1-league-pill.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: scale(1.03);
}

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

.q1-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: transform 0.2s;
}

.q1-hero:hover { transform: scale(1.01); }
.q1-hero img { width: 100%; height: 320px; object-fit: cover; display: block; }

.q1-hero-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}

.q1-hero-mask a {
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.q1-section {
  font-size: 1.1rem;
  color: #222;
  margin: 24px 0 12px;
}

.q1-main .match_zhibo_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.q1-main .match-item {
  flex-direction: column;
  align-items: stretch;
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.q1-main .match-item:hover { transform: scale(1.02); }
.q1-body .site-subtitle { color: var(--red); font-weight: 500; }
.q1-body .match_filter_item.on a { background: var(--red) !important; color: #fff !important; }
.q1-body .info_right.start a { background: var(--tag) !important; color: #fff !important; }

.q1-video-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.q1-video-card {
  min-width: 260px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.q1-video-card:hover { transform: scale(1.03); }

.q1-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #ddd;
}

.q1-video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.q1-video-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.q1-video-info { padding: 12px; font-size: 0.85rem; }
.q1-video-views { font-size: 0.75rem; color: #888; }

.q1-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.q1-dual-col {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.q1-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}

.q1-rank-row:hover { transform: scale(1.01); }
.q1-rank-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.q1-rank-no { font-weight: 700; color: var(--red); min-width: 20px; }

.q1-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.q1-tag {
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s;
}

.q1-tag:hover { transform: scale(1.05); }
.q1-tag-0, .q1-tag-4, .q1-tag-8 { background: #ffe5e5; color: var(--red); }
.q1-tag-1, .q1-tag-5, .q1-tag-9 { background: #fff3e0; color: var(--tag); }
.q1-tag-2, .q1-tag-6 { background: #e8f5e9; color: #2e7d32; }
.q1-tag-3, .q1-tag-7 { background: #e3f2fd; color: #1565c0; }

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

.q1-body .container { width: 100% !important; max-width: 1200px; box-sizing: border-box; }
.q1-body .position { background: var(--bg); }

/* 列表 / 详情页 — 独立布局，覆盖 a1.css 旧样式 */
.q1-body .header { display: none !important; }
.q1-body .second-header { display: none !important; }

.q1-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

.q1-breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: #888;
}

.q1-breadcrumb a { color: var(--red); text-decoration: none; }

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

.q1-list-main {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  min-width: 0;
}

.q1-list-aside { min-width: 0; }

.q1-aside-box {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.q1-aside-box h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--red);
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.q1-aside-link {
  display: block;
  padding: 8px 0;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
}

.q1-aside-link:hover { color: var(--red); }

.q1-aside-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.q1-aside-tags a {
  padding: 4px 10px;
  background: #fff5f5;
  color: var(--red);
  border-radius: 999px;
  font-size: 0.78rem;
  text-decoration: none;
}

.q1-detail h1 { margin: 0 0 12px; font-size: 1.5rem; color: #222; line-height: 1.4; }

.q1-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;
}

.q1-detail-meta a { color: var(--red); text-decoration: none; }

.q1-detail-body { font-size: 0.95rem; line-height: 1.8; word-break: break-word; }
.q1-detail-body a { color: var(--red); }
.q1-detail-body .q1-record-play { font-weight: 700; }

.q1-detail-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.q1-detail-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.q1-prenext {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q1-prenext a { color: #555; text-decoration: none; font-size: 0.9rem; }
.q1-prenext a:hover { color: var(--red); }

@media (max-width: 900px) {
  .q1-list-layout { grid-template-columns: 1fr; }
  .q1-dual { grid-template-columns: 1fr; }
}

/* 栏目列表页 — 三栏布局（联赛导航 + 赛事 + 侧栏） */
.q1-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;
  box-sizing: border-box;
}

.q1-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;
  box-sizing: border-box;
}

.q1-body .container.flex-between:has(.ny_leftside) .ny_leftside {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  float: none !important;
  border-radius: 10px;
  overflow: hidden;
}

.q1-body .container.flex-between:has(.ny_leftside) .ny_leftside .all {
  width: 100%;
  background: var(--red);
  line-height: 48px;
}

.q1-body .container.flex-between:has(.ny_leftside) .ny_leftside .navlist li a.on,
.q1-body .container.flex-between:has(.ny_leftside) .ny_leftside .navlist li a:hover {
  color: var(--red);
  font-weight: 600;
}

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

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

.q1-body .container_left .match-item {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 15px 5px !important;
  box-shadow: none !important;
  border-bottom: 1px solid #dedede !important;
}

.q1-body .container_left .match-item:hover {
  transform: none !important;
  background: #f7f7f7 !important;
}

.q1-body .container_left .match_zhibo_list > .match_time {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  color: #222;
  margin-bottom: 8px;
}

.q1-body .container_left .match_zhibo_list > .update-time {
  float: right;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 8px;
}

.q1-body .position .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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