@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@400;700&display=swap');

:root {
  --primary: #121212;
  --accent: #FFD700;
  --highlight: #C62828;
  --text: #FFFFFF;
}

body.t4-body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}

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

/* ── Shell ── */
.t4-shell {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  grid-template-rows: 1fr auto auto;
  min-height: 100vh;
}

.t4-sidebar {
  grid-row: 1 / 2;
  background: #0a0a0a;
  border-right: 1px solid rgba(255,215,0,0.15);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.t4-sidebar-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 28px;
}

.t4-sidebar-logo img { max-width: 100px; display: block; margin: 0 auto; }

.t4-sidebar-section { margin-bottom: 24px; }

.t4-sidebar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 3px;
  border-bottom: 1px solid rgba(255,215,0,0.2);
  padding-bottom: 6px;
  margin: 0 0 10px;
}

.t4-sidebar-link {
  display: block;
  padding: 7px 0;
  font-size: 0.85rem;
  color: #ccc;
}

.t4-sidebar-link:hover { color: var(--accent); }

.t4-sponsor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.t4-sponsor-item {
  text-align: center;
  padding: 6px;
}

.t4-sponsor-item img { width: 36px; height: 36px; object-fit: contain; }
.t4-sponsor-item span { display: block; font-size: 0.6rem; color: #888; margin-top: 4px; }

/* ── Center ── */
.t4-center {
  grid-row: 1 / 2;
  padding: 32px 24px;
  overflow-y: auto;
}

.t4-hero {
  text-align: center;
  padding: 20px 0 32px;
}

.t4-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  margin: 0 0 8px;
}

.t4-hero p { color: #aaa; margin: 0 0 28px; }

.t4-jersey-showcase {
  width: 240px;
  height: 280px;
  margin: 0 auto 24px;
  perspective: 800px;
}

.t4-jersey-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: t4-spin 14s linear infinite;
}

@keyframes t4-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.t4-jersey-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255,215,0,0.25));
}

.t4-btn-gold {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #121212;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 3px;
  border: 2px solid rgba(255,215,0,0.45);
  box-shadow: 0 0 16px rgba(255,215,0,0.2);
}

.t4-btn-gold:hover { box-shadow: 0 0 28px rgba(255,215,0,0.4); }

.t4-live-wrap {
  margin-top: 24px;
  background: #0a0a0a;
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: 4px;
  overflow: hidden;
}

/* ── Right player wall ── */
.t4-right {
  grid-row: 1 / 2;
  background: #0a0a0a;
  border-left: 1px solid rgba(255,215,0,0.15);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.t4-right-title {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--accent);
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: 2px;
}

.t4-player-card {
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent);
}

.t4-player-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.t4-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.t4-player-name {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--accent);
  font-size: 0.95rem;
}

.t4-player-quote {
  font-size: 0.78rem;
  color: #bbb;
  font-style: italic;
  margin: 0 0 8px;
  line-height: 1.5;
}

.t4-player-stats { display: flex; gap: 14px; font-size: 0.72rem; }
.t4-stat-val { font-family: 'Bebas Neue', sans-serif; color: var(--accent); font-size: 1rem; }
.t4-stat-lbl { color: #666; font-size: 0.62rem; }

/* ── Member bar ── */
.t4-member-bar {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #0a0a0a, #1a1500, #0a0a0a);
  border-top: 1px solid rgba(255,215,0,0.2);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.t4-member-text h3 { color: var(--accent); margin: 0 0 4px; font-size: 1.4rem; }
.t4-member-text p { color: #888; margin: 0; font-size: 0.85rem; }

.t4-member-actions { display: flex; gap: 12px; }

.t4-btn-red {
  padding: 12px 24px;
  background: var(--highlight);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  border: none;
}

/* contest_list + list pages */
.t4-body .match_filter_item.active a { background: var(--accent) !important; color: #121212 !important; }
.t4-body .match_filter_item a { color: #ccc; }
.t4-body .match_filter_item a:hover { color: var(--accent); }
.t4-body .bt-view {
  background: linear-gradient(135deg, #FFD700, #FFA000) !important;
  color: #121212 !important;
  border: 1px solid rgba(255,215,0,0.4) !important;
}
.t4-body .bt-view.start { background: var(--highlight) !important; color: #fff !important; }
.t4-body .load_more, .t4-body .zb-area_btn.load_more {
  background: linear-gradient(135deg, #FFD700, #FFA000) !important;
  color: #121212 !important;
}
.t4-body .club-name, .t4-body .league-name { color: #fff !important; }
.t4-body .score-wrapper { color: var(--accent) !important; }
.t4-body .match-time { color: var(--accent) !important; }
.t4-body .match-row { border-bottom-color: rgba(255,255,255,0.06) !important; }
.t4-body .match-row:hover { background: rgba(255,215,0,0.04); }

.t4-body .left-wrapper,
.t4-body .list-match-container.left-wrapper {
  background: #0a0a0a;
  border: 1px solid rgba(255,215,0,0.12);
  margin-bottom: 16px;
}

.t4-body .left-container .title { color: var(--accent) !important; font-family: 'Bebas Neue', sans-serif; }
.t4-body .list-match-home { background: #0a0a0a; border: 1px solid rgba(255,215,0,0.12); }
.t4-body .page-content-title { color: var(--accent); font-family: 'Bebas Neue', sans-serif; margin-bottom: 16px; }
.t4-body .breadcrumb a { color: var(--accent); }
.t4-body #pages .current { color: var(--accent); }

.t4-body .theme-detail {
  background: #0a0a0a;
  border: 1px solid rgba(255,215,0,0.15);
  padding: 28px;
  margin: 20px 0 40px;
}
.t4-body .theme-detail-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--accent); letter-spacing: 2px; margin: 0 0 14px; }
.t4-body .theme-detail-meta { color: #888; font-size: 0.85rem; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.t4-body .theme-detail-meta a { color: var(--accent); }
.t4-body .theme-detail-label { font-family: 'Bebas Neue', sans-serif; color: var(--accent); letter-spacing: 2px; margin: 0 0 12px; }
.t4-body .theme-detail-watch a { display: inline-block; padding: 12px 24px; background: linear-gradient(135deg, #FFD700, #FFA000); color: #121212 !important; font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; border: 1px solid rgba(255,215,0,0.45); }
.t4-body .theme-detail-note { color: #666; font-size: 0.82rem; margin: 14px 0 0; }
.t4-body .theme-detail-info { list-style: none; margin: 0 0 22px; padding: 0; line-height: 2; color: #ccc; }
.t4-body .theme-detail-info a { color: var(--accent); }
.t4-body .theme-detail-nav { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; color: #ccc; font-size: 0.88rem; line-height: 2; }
.t4-body .theme-detail-nav a { color: var(--accent); }

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

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

.t4-body .theme-live-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 2px;
  margin: 8px 0 16px;
  text-align: center;
}

.t4-body .teams-info {
  background: #0a0a0a;
  border-color: rgba(255, 215, 0, 0.15);
  border-radius: 4px;
}

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

.t4-body .server-share .list-server {
  align-items: center;
  background: #0a0a0a;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 4px;
  padding: 16px;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: 0;
}

.t4-body .server-share .xhytit {
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  line-height: 44px;
  flex-shrink: 0;
}

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

.t4-body .server-share .detail-list-server .item-server.active,
.t4-body .server-share .detail-list-server .item-server:hover {
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #121212;
}

.t4-body .common-table-wrapper {
  background: #0a0a0a;
  border-color: rgba(255, 215, 0, 0.15);
  margin-top: 16px;
}

.t4-body .common-table-wrapper .txt-live-title,
.t4-body .common-table-wrapper .header-title {
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  margin: 0;
}

.t4-body .list-match-container .match-row {
  background: #0a0a0a;
  border-top-color: rgba(255, 255, 255, 0.06);
}

.t4-body .list-match-container .match-row:hover {
  background: rgba(255, 215, 0, 0.04);
}

.t4-body .list-match-container .club-name,
.t4-body .list-match-container .league-name {
  color: #fff;
}

.t4-body .list-match-container .match-time {
  color: var(--accent);
}

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

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

.t4-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,215,0,0.2);
}

.t4-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
}

.t4-topbar-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 2px;
}

.t4-topbar-logo img { height: 36px; }

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

.t4-topbar-nav a { color: #ccc; font-size: 0.9rem; }
.t4-topbar-nav a:hover { color: var(--accent); }

.t4-topbar .t4-mobile-toggle { position: static; display: none; }

.t4-body { padding-top: 56px; }

.t4-mobile-toggle {
  display: none;
  background: var(--accent);
  color: #121212;
  border: none;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
}

.t4-footer {
  grid-column: 1 / -1;
  background: #080808;
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: #666;
  line-height: 2;
}

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

@media (max-width: 1024px) {
  .t4-shell { grid-template-columns: 1fr; }
  .t4-sidebar, .t4-right {
    display: none;
    position: fixed;
    z-index: 1000;
    width: 260px;
    height: 100vh;
    top: 56px;
  }
  .t4-sidebar.open, .t4-right.open { display: block; }
  .t4-topbar .t4-mobile-toggle, .t4-mobile-toggle { display: block; }
  .t4-center { padding: 20px 16px 16px; }
  .t4-topbar-nav {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: #0a0a0a;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,215,0,0.2);
  }
  .t4-topbar-nav.open { display: flex; }
}
