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

:root {
  --primary: #C62828;
  --accent: #F7C948;
  --bg: #0D1B2A;
  --card: #152238;
  --text: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

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

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.t1-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.97);
  border-bottom: 2px solid var(--primary);
}

.t1-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.t1-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
}

.t1-logo img { height: 40px; display: block; }

.t1-nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }

.t1-nav a { font-weight: 600; font-size: 0.9rem; }
.t1-nav a:hover { color: var(--accent); }

.t1-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.t1-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

.t1-mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
  padding: 16px 20px;
  z-index: 999;
}

.t1-mobile-nav.open { display: block; }
.t1-mobile-nav a { display: block; padding: 12px 0; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ── Hero Carousel ── */
.t1-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--bg);
}

.t1-hero-track { display: flex; height: 100%; transition: transform 0.6s ease; }

.t1-hero-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.t1-hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.85), rgba(198,40,40,0.35));
}

.t1-hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.t1-hero-text h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: 2px;
}

.t1-hero-text p { opacity: 0.9; margin: 0; font-size: 1.05rem; }

.t1-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.t1-hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
}

.t1-hero-dot.active { background: var(--accent); }

/* ── Featured Cards Grid ── */
.t1-featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.t1-section-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 0 24px;
  text-align: center;
}

.t1-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.t1-card {
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  border: 1px solid rgba(247,201,72,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}

.t1-card:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px rgba(198,40,40,0.35);
}

.t1-card-league { font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.t1-card-time { font-size: 0.78rem; opacity: 0.65; margin-bottom: 12px; }

.t1-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.t1-card-team { flex: 1; text-align: center; }
.t1-card-team img { width: 44px; height: 44px; object-fit: contain; }
.t1-card-team span { display: block; font-size: 0.8rem; font-weight: 600; margin-top: 6px; }
.t1-card-score { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--accent); }

.t1-btn-red {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.t1-btn-red:hover { background: #b71c1c; }

/* ── Main Layout (sidebar + contest_list) ── */
.t1-main { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }

.t1-site-title {
  margin: 20px 0;
  font-size: 1.4rem;
  color: var(--accent);
}

.t1-site-title span {
  font-size: 15px;
  color: #fff;
  font-weight: 400;
  margin-left: 8px;
  font-family: 'Open Sans', sans-serif;
}

.t1-body .left-wrapper,
.t1-body .list-match-container.left-wrapper {
  background: var(--card);
  border: 1px solid rgba(247,201,72,0.12);
  border-radius: 8px;
  margin-bottom: 16px;
}

.t1-body .left-container .title { color: var(--accent) !important; font-family: 'Montserrat', sans-serif; }
.t1-body .match-row { border-bottom-color: rgba(255,255,255,0.07) !important; }
.t1-body .match-row:hover { background: rgba(198,40,40,0.1); }
.t1-body .match-time { color: var(--accent) !important; }
.t1-body .club-name, .t1-body .league-name { color: #fff !important; }
.t1-body .score-wrapper { color: var(--accent) !important; }

.t1-body .list-match-home {
  background: var(--card);
  border-radius: 8px;
  border: 1px solid rgba(247,201,72,0.12);
  overflow: hidden;
}

.t1-body .match_filter_item.active a { background: var(--primary) !important; color: #fff !important; }
.t1-body .match_filter_item a { color: #ccc; border-radius: 4px; }
.t1-body .match_filter_item a:hover { color: var(--accent); }

.t1-body .bt-view {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.t1-body .bt-view.start { background: var(--accent) !important; color: #121212 !important; }

.t1-body .load_more,
.t1-body .zb-area_btn.load_more {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 4px;
}

/* ── Dashboard ── */
.t1-dashboard {
  background: linear-gradient(180deg, var(--bg), #080f18);
  padding: 48px 20px;
  border-top: 2px solid var(--primary);
}

.t1-dashboard-inner { max-width: 1200px; margin: 0 auto; }

.t1-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.t1-stat {
  text-align: center;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid rgba(247,201,72,0.15);
}

.t1-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.t1-stat-label { font-size: 0.82rem; opacity: 0.7; margin-top: 4px; }

.t1-progress-group { margin-bottom: 18px; }

.t1-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.t1-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.t1-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ffe082);
  border-radius: 4px;
  transition: width 1.2s ease;
}

/* ── List pages ── */
.t1-body .page-content-title {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.t1-body .breadcrumb a { color: var(--accent); }
.t1-body .body-wrapper { padding-bottom: 40px; }
.t1-body #pages .current { color: var(--accent); font-weight: 700; }

/* ── Detail pages ── */
.t1-body .theme-detail {
  background: var(--card);
  border: 1px solid rgba(247,201,72,0.15);
  border-radius: 8px;
  padding: 32px;
  margin: 20px 0 40px;
}

.t1-body .theme-detail-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 16px;
  line-height: 1.4;
}

.t1-body .theme-detail-meta {
  font-size: 0.88rem;
  opacity: 0.75;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.t1-body .theme-detail-meta a { color: var(--accent); }

.t1-body .theme-detail-block { margin-bottom: 24px; }

.t1-body .theme-detail-label {
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--accent);
}

.t1-body .theme-detail-watch a {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: 4px;
}

.t1-body .theme-detail-watch a:hover { background: #b71c1c; }

.t1-body .theme-detail-note {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 16px 0 0;
}

.t1-body .theme-detail-info {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  line-height: 2;
}

.t1-body .theme-detail-info a { color: var(--accent); }

.t1-body .theme-detail-nav {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 0.9rem;
  line-height: 2;
}

.t1-body .theme-detail-nav a { color: var(--accent); }

.t1-body .theme-detail-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 24px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

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

.t1-body .theme-detail-article {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

.t1-body .theme-detail-article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 12px 0;
}

.t1-body .theme-detail-article p { margin: 0 0 16px; }
.t1-body .theme-detail-article a { color: var(--accent); }

/* ── Footer ── */
.t1-footer {
  background: #080f18;
  padding: 32px 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 2;
}

.t1-footer a { color: var(--accent); }

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

.t1-body .theme-live-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 8px 0 16px;
  text-align: center;
}

.t1-body .teams-info {
  background: var(--card);
  border-color: rgba(247, 201, 72, 0.15);
  border-radius: 8px;
}

.t1-body .teams-info .item-info a { color: var(--accent); }
.t1-body .teams-info .item-info a:hover { color: #fff; }
.t1-body .teams-info .match-info .item-match-info { color: rgba(255, 255, 255, 0.9); }
.t1-body .teams-info .match-info .item-match-info .status {
  background: var(--primary);
  color: #fff;
}

.t1-body .server-share { margin-top: 0; }

.t1-body .server-share .list-server {
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(247, 201, 72, 0.15);
  border-radius: 8px;
  padding: 16px;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: 0;
}

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

.t1-body .server-share .detail-list-server .item-server {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #fff;
}

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

.t1-body .server-share #product_frame {
  flex: 1;
  min-width: 200px;
  border: none;
  overflow: hidden;
  margin: 0;
}

.t1-body .common-table-wrapper {
  background: var(--card);
  border-color: rgba(247, 201, 72, 0.15);
  margin-top: 20px;
}

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

.t1-body .list-match-container .match-row {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.t1-body .list-match-container .match-row:hover {
  background: rgba(198, 40, 40, 0.12);
}

.t1-body .list-match-container .bt-view {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  border-radius: 4px;
  padding: 4px 12px;
}

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

.t1-body .list-match-container .club-name,
.t1-body .list-match-container .league-name,
.t1-body .list-match-container .match-time {
  color: rgba(255, 255, 255, 0.85);
}

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

@media (max-width: 768px) {
  .t1-nav { display: none; }
  .t1-hamburger { display: flex; }
  .t1-cards-grid { grid-template-columns: 1fr; }
  .t1-stats-row { grid-template-columns: repeat(2, 1fr); }
  .t1-hero { height: 300px; }
}
