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

:root {
  --white: #FFFFFF;
  --dark: #2C3E50;
  --red: #E74C3C;
  --tag-blue: #3498DB;
  --bg: #F0F3F6;
  --sidebar-w: 240px;
  --max: 1200px;
}

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

h1, h2, h3, .m3-display {
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.m3-shell {
  min-height: 100vh;
  padding-left: var(--sidebar-w);
  box-sizing: border-box;
}

.m3-sidebar {
  width: var(--sidebar-w);
  background: var(--dark);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 2px 0 16px rgba(44, 62, 80, 0.25);
  display: flex;
  flex-direction: column;
}

.m3-sidebar-logo {
  padding: 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.m3-sidebar-logo a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.m3-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  flex: 1;
}

.m3-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.m3-nav-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.m3-sidebar-nav li a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--red);
  color: var(--white);
}

.m3-shell > #adSwitch {
  max-width: 100%;
  z-index: 1;
}

.m3-content {
  margin-left: 0;
  min-width: 0;
  width: 100%;
  max-width: var(--max);
  box-sizing: border-box;
  padding: 0 28px 36px;
}

.m3-leagues-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 18px 0;
  border-bottom: 1px solid #dde3ea;
  margin-bottom: 22px;
}

.m3-league-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 76px;
  flex-shrink: 0;
}

.m3-league-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  margin: 0 auto 5px;
}

.m3-league-item span {
  font-size: 0.75rem;
  color: var(--dark);
  font-family: 'Noto Sans SC', sans-serif;
}

.m3-news-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.m3-news-hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.m3-news-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.m3-news-hero-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: linear-gradient(transparent, rgba(44, 62, 80, 0.85));
  color: var(--white);
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.m3-news-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m3-news-side a {
  background: var(--white);
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(44, 62, 80, 0.06);
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

.m3-news-side a:hover {
  border-left-color: var(--red);
}

.m3-section {
  font-size: 1.2rem;
  color: var(--dark);
  margin: 26px 0 14px;
}

.m3-body .site-subtitle {
  color: var(--tag-blue);
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  margin-left: 8px;
}

.m3-body .match_filter_item.on a,
.m3-body .match_filter_item.on {
  background: var(--red) !important;
  color: var(--white) !important;
}

.m3-body .info_right.start a {
  background: var(--red) !important;
  color: var(--white) !important;
}

.m3-video-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.m3-video-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  text-align: center;
  padding-bottom: 12px;
  min-width: 200px;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.m3-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.12);
}

.m3-video-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #ddd;
}

.m3-video-card div {
  padding: 10px 12px 0;
  font-size: 0.85rem;
  font-family: 'Noto Sans SC', sans-serif;
}

.m3-video-card span {
  font-size: 0.75rem;
  color: #888;
}

.m3-players-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.m3-player-chip {
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 84px;
  flex-shrink: 0;
}

.m3-player-chip img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tag-blue);
  margin-bottom: 7px;
}

.m3-player-chip span {
  font-size: 0.8rem;
  color: var(--dark);
}

.m3-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.m3-team-cell {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(44, 62, 80, 0.06);
}

.m3-team-cell:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(52, 152, 219, 0.18);
}

.m3-team-cell img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.m3-team-cell span {
  display: block;
  font-size: 0.78rem;
  margin-top: 7px;
  color: var(--dark);
}

.m3-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 18px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(44, 62, 80, 0.06);
}

.m3-tags-group a {
  padding: 6px 15px;
  background: rgba(52, 152, 219, 0.1);
  color: var(--tag-blue);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.m3-tags-group a:hover {
  background: rgba(52, 152, 219, 0.2);
}

.m3-footer.footer-wrapper {
  margin-left: 0;
  margin-top: 32px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}

.m3-footer p,
.m3-footer .footer-desc {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.m3-footer a {
  color: var(--white);
}

.m3-body .container {
  max-width: var(--max);
}

.m3-body .position {
  background: transparent;
  padding: 12px 0;
}

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

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

.m3-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 24px;
}

.m3-breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: #888;
  font-family: 'Noto Sans SC', sans-serif;
}

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

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

.m3-list-main {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.06);
  min-width: 0;
}

.m3-aside-box {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(44, 62, 80, 0.05);
}

.m3-aside-box h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--dark);
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
}

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

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

.m3-aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.m3-aside-tags a {
  padding: 4px 11px;
  background: rgba(52, 152, 219, 0.1);
  color: var(--tag-blue);
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
}

.m3-detail h1 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  color: var(--dark);
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  line-height: 1.4;
}

.m3-detail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 20px;
  font-family: 'Noto Sans SC', sans-serif;
}

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

.m3-detail-body {
  line-height: 1.85;
  word-break: break-word;
  font-family: 'Noto Sans SC', sans-serif;
}

.m3-detail-body a {
  color: var(--red);
}

.m3-detail-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 20px;
}

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

.m3-prenext {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.m3-prenext a {
  color: #555;
  text-decoration: none;
  font-size: 0.88rem;
}

.m3-record-play {
  color: var(--red);
  font-weight: 600;
}

@media (max-width: 900px) {
  .m3-shell {
    padding-left: 0;
  }

  .m3-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .m3-content {
    max-width: 100%;
    padding: 0 16px 28px;
  }

  .m3-news-split {
    grid-template-columns: 1fr;
  }

  .m3-list-layout {
    grid-template-columns: 1fr;
  }
}

.m3-body .container.flex-between:has(.ny_leftside) {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
  float: none !important;
}

.m3-body .container.flex-between:not(:has(.ny_leftside)) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  float: none !important;
}

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

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

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

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

.m3-content > .match_zhibo_list {
  display: block;
}

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

/* 赛事详情页 */
.m3-body .match_allinfo .top {
  background: linear-gradient(135deg, var(--dark), #34495e);
  border-radius: 10px 10px 0 0;
}

.m3-body .match_allinfo .top,
.m3-body .match_allinfo .top p,
.m3-body .match_allinfo .qiudui_name { color: #fff; }

.m3-body .match_analysis .senav span.on {
  background: var(--red);
  color: #fff;
}

.m3-body .zhibo_btn .redirectLink {
  background: var(--red);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  margin: 4px;
  display: inline-block;
}

.m3-body .container.mt10.flex-between {
  display: grid !important;
  gap: 24px;
  float: none !important;
  padding-bottom: 40px;
}

.m3-body .position .container {
  font-size: 0.85rem;
  padding: 12px 0;
}

.m3-body .position .crumb { color: var(--dark); }
