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

:root {
  --primary: #333333;
  --accent: #E53935;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text: #333333;
}

body.t3-body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 110px;
}

h1, h2, h3, h4 { font-weight: 600; }
a { color: inherit; text-decoration: none; }

/* ── Fixed header + tags ── */
.t3-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.t3-header-top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t3-logo { font-weight: 600; font-size: 1.2rem; color: var(--accent); }
.t3-logo img { height: 34px; }

.t3-nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.t3-nav-links a { font-size: 0.9rem; font-weight: 500; }
.t3-nav-links a:hover { color: var(--accent); }

.t3-hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

.t3-tags {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.t3-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--primary);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.t3-tag.active, .t3-tag:hover { background: var(--accent); color: #fff; }

/* ── Layout ── */
.t3-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.t3-content { flex: 1; min-width: 0; }

.t3-masonry {
  columns: 3;
  column-gap: 20px;
}

.t3-card {
  break-inside: avoid;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  display: block;
  transition: transform 0.2s;
}

.t3-card:hover { transform: translateY(-3px); }

.t3-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #ddd;
  display: block;
}

.t3-card-body { padding: 16px; }

.t3-card-title { font-weight: 600; font-size: 1rem; margin: 0 0 8px; line-height: 1.4; }

.t3-card-summary {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t3-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #999;
}

.t3-card-source { display: flex; align-items: center; gap: 6px; }
.t3-card-source img { width: 20px; height: 20px; object-fit: contain; border-radius: 50%; }

.t3-card-hover {
  position: absolute;
  inset: 0;
  background: rgba(229,57,53,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.t3-card:hover .t3-card-hover { opacity: 1; }

.t3-read-more {
  padding: 10px 22px;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  border-radius: 4px;
}

.t3-like { color: #fff; font-size: 1.4rem; }

/* contest_list block */
.t3-live-block {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.t3-body .match_filter_item.active a { background: var(--accent) !important; color: #fff !important; }
.t3-body .bt-view { background: var(--accent) !important; color: #fff !important; }
.t3-body .bt-view.start { background: var(--primary) !important; }
.t3-body .load_more, .t3-body .zb-area_btn.load_more { background: var(--accent) !important; color: #fff !important; }
.t3-body .score-wrapper { color: var(--accent) !important; font-weight: 600; }

.t3-body .left-wrapper,
.t3-body .list-match-container.left-wrapper {
  background: var(--card);
  border-radius: 8px;
  margin-bottom: 16px;
}

.t3-body .left-container .title { color: var(--primary) !important; }
.t3-body .match-row { border-bottom: 1px solid #eee !important; }
.t3-body .match-row:hover { background: #fafafa; color: var(--accent); }
.t3-body .list-match-home { background: var(--card); border-radius: 8px; overflow: hidden; }
.t3-body .page-content-title {
  color: var(--primary);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.t3-body .breadcrumb a { color: var(--accent); }
.t3-body #pages .current { color: var(--accent); font-weight: 600; }

.t3-body .theme-detail {
  background: var(--card);
  border-radius: 8px;
  padding: 28px;
  margin: 20px 0 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.t3-body .theme-detail-title { font-weight: 600; font-size: 1.25rem; margin: 0 0 14px; line-height: 1.4; }
.t3-body .theme-detail-meta { font-size: 0.85rem; color: #999; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.t3-body .theme-detail-meta a { color: var(--accent); }
.t3-body .theme-detail-label { font-weight: 600; color: var(--primary); margin: 0 0 10px; }
.t3-body .theme-detail-watch a { display: inline-block; padding: 10px 18px; background: var(--accent); color: #fff !important; font-weight: 600; border-radius: 4px; }
.t3-body .theme-detail-note { font-size: 0.82rem; color: #999; margin: 14px 0 0; }
.t3-body .theme-detail-info { list-style: none; margin: 0 0 20px; padding: 0; line-height: 2; }
.t3-body .theme-detail-info a { color: var(--accent); }
.t3-body .theme-detail-nav { border-top: 1px solid #eee; padding-top: 18px; font-size: 0.88rem; line-height: 2; }
.t3-body .theme-detail-nav a { color: var(--accent); }

.t3-body .theme-detail-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 20px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.t3-body .theme-detail-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.t3-body .theme-detail-article {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}
.t3-body .theme-detail-article img { max-width: 100%; height: auto; border-radius: 4px; margin: 12px 0; }
.t3-body .theme-detail-article p { margin: 0 0 14px; }
.t3-body .theme-detail-article a { color: var(--accent); }

/* ── Live detail page ── */
.t3-body .body-wrapper { background: transparent !important; }

.t3-body .theme-live-title {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--primary);
  margin: 8px 0 16px;
  text-align: center;
}

.t3-body .teams-info {
  background: var(--card);
  border-color: #eee;
  border-radius: 8px;
}

.t3-body .teams-info .item-info a { color: var(--accent); }
.t3-body .teams-info .match-info .item-match-info { color: var(--text); }
.t3-body .teams-info .match-info .item-match-info .status {
  background: var(--accent);
  color: #fff;
}

.t3-body .server-share .list-server {
  align-items: center;
  background: var(--card);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: 0;
}

.t3-body .server-share .xhytit {
  color: var(--primary);
  font-weight: 600;
  line-height: 44px;
  flex-shrink: 0;
}

.t3-body .server-share .detail-list-server .item-server {
  background: var(--bg);
  color: var(--text);
  border-radius: 4px;
}

.t3-body .server-share .detail-list-server .item-server.active,
.t3-body .server-share .detail-list-server .item-server:hover {
  background: var(--accent);
  color: #fff;
}

.t3-body .common-table-wrapper {
  background: var(--card);
  border-color: #eee;
  margin-top: 16px;
}

.t3-body .common-table-wrapper .txt-live-title,
.t3-body .common-table-wrapper .header-title {
  color: var(--primary);
  margin: 0;
}

.t3-body .list-match-container .match-row {
  background: var(--card);
  border-top-color: #eee;
  color: var(--text);
}

.t3-body .list-match-container .match-row:hover {
  background: rgba(229, 57, 53, 0.06);
}

.t3-body .list-match-container .club-name,
.t3-body .list-match-container .league-name,
.t3-body .list-match-container .match-time {
  color: var(--text);
}

.t3-body .list-match-container .score-wrapper {
  color: var(--accent);
  font-weight: 600;
}

.t3-body .list-match-container .bt-view {
  background: var(--bg);
  color: var(--accent);
  border-radius: 4px;
  padding: 4px 12px;
}

.t3-body .list-match-container .bt-view.start {
  background: var(--accent);
  color: #fff;
}

/* Sidebar */
.t3-sidebar { width: 280px; flex-shrink: 0; }

.t3-sidebar-block {
  background: var(--card);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.t3-sidebar-title {
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.t3-sidebar-block { counter-reset: hot-rank; }

.t3-hot-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.t3-hot-item:last-child { border-bottom: none; }
.t3-hot-item:hover { color: var(--accent); }

.t3-hot-rank {
  font-weight: 600;
  color: var(--accent);
  min-width: 22px;
}

.t3-hot-rank::before {
  counter-increment: hot-rank;
  content: counter(hot-rank);
}

.t3-hot-text { font-size: 0.85rem; line-height: 1.4; }
.t3-hot-date { font-size: 0.7rem; color: #999; margin-top: 4px; }

.t3-league-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.t3-league-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 16px;
  font-size: 0.75rem;
}

.t3-league-chip img { width: 16px; height: 16px; }

.t3-footer {
  background: var(--primary);
  color: #ccc;
  text-align: center;
  padding: 32px 20px;
  font-size: 0.85rem;
  line-height: 2;
}

.t3-footer a { color: #fff; }

.t3-body .t1-main,
.t3-body .body-wrapper,
.t3-body .home-page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 1024px) {
  .t3-masonry { columns: 2; }
  .t3-sidebar { width: 240px; }
}

@media (max-width: 768px) {
  body.t3-body { padding-top: 100px; }
  .t3-nav-links { display: none; }
  .t3-hamburger { display: block; }
  .t3-layout { flex-direction: column; }
  .t3-masonry { columns: 1; }
  .t3-sidebar { width: 100%; }
}
