/* ===================================================
   HỘI THAO 2026 – Xứ Đoàn TNTT Kitô Vua Hàng Sanh
   Event Page Styles
=================================================== */
/* ── Font Awesome icon helpers ── */
.fa-solid, .fa-regular { line-height: inherit; vertical-align: middle; }

/* Soccer ball VS separator in match chips — keep small */
.match-chip .fa-solid.fa-futbol {
  font-size: .75rem;
  color: #94a3b8;
}
/* Trophy / medal icons in match cells */
.team .fa-solid.fa-trophy  { color: var(--ck); }
.team .fa-solid.fa-medal   { color: var(--bk); }
.team .fa-solid.fa-clover  { color: #16a34a; margin-right: 2px; }

/* Ngành icon in weekly schedule and tab buttons */
.wk-nganh .fa-solid { font-size: 1rem; }
.nganh-tab .fa-solid { margin-right: 5px; }

/* Timeline icons */
.tl-circle .fa-solid { font-size: 1rem; }
.tl-circle.ck .fa-solid { font-size: 1.3rem; }

/* Date chip calendar icon */
.date-chip .fa-solid { margin-right: 5px; opacity: .75; font-size: .85em; }

/* Nr-match team icons */
.nr-team .fa-solid { margin-right: 3px; font-size: .85em; }

/* --- Variables & Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Phase colors */
  --vl:          #16a34a;   /* Vòng Loại – green */
  --vl-light:    #dcfce7;
  --vl-mid:      #4ade80;
  --bk:          #d97706;   /* Bán Kết – amber */
  --bk-light:    #fef3c7;
  --bk-mid:      #fbbf24;
  --ck:          #dc2626;   /* Chung Kết – red */
  --ck-light:    #fee2e2;
  --ck-mid:      #f87171;
  /* Ngành colors */
  --au:          #22c55e;   /* Ấu Nhi – green */
  --au-light:    #d1fae5;
  --thieu:       #0ea5e9;   /* Thiếu Nhi – sky blue */
  --thieu-light: #e0f2fe;
  --nghia:       #eab308;   /* Nghĩa-Hiệp – yellow */
  --nghia-light: #fef9c3;
  --lucky:       #a855f7;   /* 2C lucky – purple */
  /* Site colors */
  --navy:        #0f1f3a;
  --navy2:       #1b3a6b;
  --gold:        #c9860a;
  --gold-light:  #f0c040;
  --white:       #ffffff;
  --bg:          #f8fafc;
  --text:        #1e293b;
  --muted:       #64748b;
  --radius:      12px;
  --shadow:      0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.15);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
h1,h2,h3 { font-family: 'Playfair Display', serif; }
h2 em, h1 em { color: var(--gold-light); font-style: italic; }
.ht-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===================================================
   TOP NAV
=================================================== */
.ht-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.ht-back {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  transition: .3s;
}
.ht-back:hover { background: rgba(255,255,255,.12); color: var(--white); }
.ht-topnav-title { color: var(--gold-light); font-weight: 800; font-size: .95rem; flex: 1; text-align: center; }
.ht-topnav-links {
  display: flex;
  gap: 6px;
}
.ht-topnav-links a {
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.15);
  transition: .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ht-topnav-links a:hover { color: #fff; border-color: var(--gold); }
.ht-topnav-year {
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===================================================
   HERO
=================================================== */
.ht-hero {
  position: relative;
  background: linear-gradient(160deg, #0a3d1f 0%, #1b5e20 30%, #0f1f3a 70%, #0a1628 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px 120px;
}
.ht-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.bg-ball {
  position: absolute;
  font-size: 5rem;
  opacity: .06;
  animation: drift linear infinite;
}
.bg-cross {
  position: absolute;
  font-size: 8rem;
  opacity: .05;
}
.bg-star {
  position: absolute;
  font-size: 4rem;
  opacity: .05;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', serif;
}
.b1 { left: 5%;  top: 20%; animation-duration: 14s; }
.b2 { right: 8%; top: 40%; animation-duration: 18s; animation-delay: -6s; }
.b3 { left: 40%; bottom: 20%; animation-duration: 12s; animation-delay: -3s; }
.c1 { right: 15%; top: 10%; }
.c2 { left: 10%;  bottom: 30%; }
.s1 { left: 55%; top: 15%; }
@keyframes drift {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(20px, -30px) rotate(180deg); }
  100% { transform: translate(0,0) rotate(360deg); }
}

.ht-hero-inner { position: relative; z-index: 2; }
.ht-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(240,192,64,.35);
  color: var(--gold-light);
  padding: 7px 22px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.ht-title {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
  margin-bottom: 28px;
}
.ht-title em {
  color: var(--gold-light);
  font-style: italic;
  display: block;
  font-size: .85em;
}
.ht-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.date-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}
.date-chip.end {
  background: rgba(201,134,10,.35);
  border-color: rgba(240,192,64,.5);
  color: var(--gold-light);
}
.date-sep { color: rgba(255,255,255,.4); font-size: 1.4rem; }
.ht-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ht-tags span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
}
.ht-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.ht-wave svg { display: block; width: 100%; height: 80px; }

/* ===================================================
   TIMELINE
=================================================== */
.ht-timeline {
  background: var(--navy);
  padding: 32px 0;
}
.tl-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-width: 90px;
}
.tl-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.tl-circle.vl { background: var(--vl); }
.tl-circle.bk { background: var(--bk); }
.tl-circle.ck { background: var(--ck); font-size: 1.4rem; width: 50px; height: 50px; }

.tl-info { text-align: center; }
.tl-info strong { display: block; color: var(--white); font-size: .85rem; }
.tl-info span   { display: block; color: rgba(255,255,255,.55); font-size: .76rem; }
.tl-info em     { display: block; font-style: normal; font-size: .72rem; font-weight: 700; margin-top: 2px; }
.tl-item.vl  .tl-info em { color: var(--vl-mid); }
.tl-item.bk  .tl-info em { color: var(--bk-mid); }
.tl-item.ck  .tl-info em { color: var(--ck-mid); }

.tl-line {
  flex: 1;
  height: 2px;
  min-width: 20px;
  background: rgba(255,255,255,.15);
  align-self: flex-start;
  margin-top: 30px;
}
.tl-line.bk { background: rgba(217,119,6,.4); }
.tl-line.ck { background: rgba(220,38,38,.4); }

/* ===================================================
   SECTION HEADER (shared)
=================================================== */
.ht-section-header { text-align: center; margin-bottom: 48px; }
.ht-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy2);
  margin-bottom: 10px;
}
.ht-section-header p { color: var(--muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.ht-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vl);
  margin-bottom: 10px;
}
.ht-section-tag::before, .ht-section-tag::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--vl);
}

/* ===================================================
   BRACKET TABLE
=================================================== */
.ht-bracket {
  padding: 80px 0;
  background: var(--bg);
}
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.bracket-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--white);
}

/* Phase header row */
.tr-phase th { padding: 0; }
.th-corner {
  background: var(--navy);
  min-width: 140px;
  width: 140px;
}
.corner-box {
  position: relative;
  height: 72px;
  overflow: hidden;
}
.corner-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom left,
    transparent calc(50% - 1px),
    rgba(255,255,255,.25) 50%,
    transparent calc(50% + 1px)
  );
}
.corner-ngay {
  position: absolute;
  top: 10px; right: 12px;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 700;
}
.corner-nganh {
  position: absolute;
  bottom: 10px; left: 12px;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 700;
}

.th-phase {
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 8px;
  border-right: 2px solid rgba(255,255,255,.1);
}
.ph-vl { background: var(--vl); }
.ph-bk { background: var(--bk); }
.ph-ck {
  background: linear-gradient(135deg, var(--ck), #991b1b);
  font-size: .85rem;
  letter-spacing: .06em;
}

/* Round row */
.tr-round th {
  padding: 10px 12px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
}
.th-round { background: var(--white); }
.th-round.vl-col { background: var(--vl-light); }
.th-round.bk-col { background: var(--bk-light); }
.th-round.ck-col { background: var(--ck-light); }
.round-lbl {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: .9rem;
  color: var(--white);
  margin: 0 auto 4px;
}
.round-lbl.vl { background: var(--vl); }
.round-lbl.bk { background: var(--bk); }
.round-lbl.ck { background: var(--ck); font-size: 1.1rem; width: 34px; height: 34px; }
.round-dt { font-size: .76rem; color: var(--muted); font-weight: 600; }

/* Ngành column */
.td-nganh {
  background: var(--navy);
  text-align: center;
  padding: 16px 12px;
  border-right: 2px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ng-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  position: relative;
  margin: 0 auto 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  flex-shrink: 0;
}
.ng-icon::before { content: ''; position: absolute; inset: 12%; clip-path: polygon(30% 5%, 70% 5%, 60% 40%, 95% 30%, 95% 70%, 60% 60%, 70% 95%, 30% 95%, 40% 60%, 5% 70%, 5% 30%, 40% 40%); }
.ng-name { color: var(--white); font-weight: 800; font-size: .95rem; }
.ng-time { color: rgba(255,255,255,.5); font-size: .75rem; margin-top: 2px; }

/* Row colors */
.au-row .td-nganh    { background: linear-gradient(135deg, #14532d, #166534); }
.thieu-row .td-nganh { background: linear-gradient(135deg, #0c4a6e, #0369a1); }
.nghia-row .td-nganh { background: linear-gradient(135deg, #78350f, #92400e); }

/* ng-icon badge: background = scarf, cross = gold (đỏ cho Nghĩa) */
.au-row .ng-icon    { background: #4ade80; }
.au-row .ng-icon::before    { background: #fbbf24; }
.thieu-row .ng-icon { background: #38bdf8; }
.thieu-row .ng-icon::before { background: #fbbf24; }
.nghia-row .ng-icon { background: #facc15; }
.nghia-row .ng-icon::before { background: #dc2626; }

/* Match cells */
.mc {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.vl-cell { background: #f0fdf4; }
.bk-cell { background: #fffbeb; }
.ck-cell { background: #fff1f2; }
.special  { background: #faf5ff; }

.match-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.team {
  font-weight: 800;
  font-size: .88rem;
  color: var(--navy2);
  min-width: 24px;
}
.vs-dot {
  background: var(--navy);
  color: var(--white);
  font-size: .65rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: .06em;
}
.match-chip.tbd .vs-dot    { background: var(--bk); }
.match-chip.champion .vs-dot { background: var(--ck); }
.tbd-t  { color: var(--bk); }
.champ-t{ color: var(--ck); font-size: .9rem; }
.lucky  { color: var(--lucky); font-weight: 900; }

.special-chip .vs-dot { background: var(--lucky); }

/* Score rows */
.tr-score td {
  background: #f8fafc;
  padding: 6px 10px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 2px solid #cbd5e1;
  text-align: center;
}
.au-score    td { background: #f0fdf4; }
.thieu-score td { background: #f0f9ff; }
.nghia-score td { background: #fffbeb; }
.score-lbl {
  background: var(--navy) !important;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.score-cell {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy2);
  min-width: 60px;
  height: auto;
  padding: 4px 6px;
  vertical-align: middle;
  text-align: center;
  line-height: 1.3;
}
.sc-pen {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: #7c3aed;
}
.bracket-legend {
  margin-top: 12px;
  font-size: .78rem;
  color: #64748b;
  text-align: center;
}
.leg-y, .leg-r {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 14px; border-radius: 2px;
  font-size: .68rem; font-weight: 900; padding: 0 4px;
  vertical-align: middle;
}
.leg-y { background: #fbbf24; color: #78350f; }
.leg-r { background: #ef4444; color: #fff; }
@keyframes ht-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ht-shimmer-bar {
  display: inline-block; width: 52px; height: 16px; border-radius: 4px; vertical-align: middle;
  background: linear-gradient(90deg, rgba(10,22,40,.06) 25%, rgba(10,22,40,.18) 50%, rgba(10,22,40,.06) 75%);
  background-size: 200% 100%;
  animation: ht-shimmer 1.6s ease-in-out infinite;
}
.nr-score-box.ht-score-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: ht-shimmer 1.6s ease-in-out infinite;
  border-style: solid;
  color: transparent;
}
.nr-score-box.ht-score-played {
  flex-direction: column;
  gap: 3px;
  background: rgba(255,255,255,.1);
  border-style: solid;
  border-color: rgba(255,255,255,.3);
  padding: 6px 8px;
}
.nrs-score { display: block; font-size: 1.05rem; font-weight: 900; color: #fff; }
.nrs-pen   { display: block; font-size: .72rem;  font-weight: 700; color: #c4b5fd; margin-top: 2px; }
.nrs-cards { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.12); }
.nrs-sep   { color: rgba(255,255,255,.3); font-size: .65rem; }
.nrs-cy, .nrs-cr {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: .72rem; font-weight: 800; padding: 1px 5px; border-radius: 3px;
}
.nrs-cy { background: #92400e; color: #fcd34d; }
.nrs-cr { background: #7f1d1d; color: #fca5a5; }
.nrs-cy::before { content: ''; display: inline-block; width: 5px; height: 8px; background: #fcd34d; border-radius: 1px; margin-right: 2px; }
.nrs-cr::before { content: ''; display: inline-block; width: 5px; height: 8px; background: #fca5a5; border-radius: 1px; margin-right: 2px; }

/* ===================================================
   NGÀNH TABS
=================================================== */
.ht-nganh-section {
  padding: 80px 0;
  background: linear-gradient(160deg, var(--navy) 0%, #1a3460 100%);
}
.ht-nganh-section .ht-section-header h2 { color: var(--white); }
.ht-nganh-section .ht-section-tag { color: var(--gold-light); }
.ht-nganh-section .ht-section-tag::before,
.ht-nganh-section .ht-section-tag::after { background: var(--gold-light); }

.nganh-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.ntab {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ntab:hover  { background: rgba(255,255,255,.15); color: var(--white); }
.ntab.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* CSS-drawn cross badge inside tab button */
.ntab-cross {
  width: 22px; height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.ntab-cross::before { content: ''; position: absolute; inset: 12%; clip-path: polygon(30% 5%, 70% 5%, 60% 40%, 95% 30%, 95% 70%, 60% 60%, 70% 95%, 30% 95%, 40% 60%, 5% 70%, 5% 30%, 40% 40%); }
.ntab[data-tab="au"] .ntab-cross    { background: #4ade80; }
.ntab[data-tab="au"] .ntab-cross::before    { background: #fbbf24; }
.ntab[data-tab="thieu"] .ntab-cross { background: #38bdf8; }
.ntab[data-tab="thieu"] .ntab-cross::before { background: #fbbf24; }
.ntab[data-tab="nghia"] .ntab-cross { background: #facc15; }
.ntab[data-tab="nghia"] .ntab-cross::before { background: #dc2626; }

.nganh-panel { display: none; }
.nganh-panel.active { display: block; }

/* Panel header */
.np-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
}
.au-header    { background: linear-gradient(135deg, #14532d, #166534); }
.thieu-header { background: linear-gradient(135deg, #0c4a6e, #0369a1); }
.nghia-header { background: linear-gradient(135deg, #78350f, #92400e); }
.np-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.2);
}
.np-icon::before { content: ''; position: absolute; inset: 12%; clip-path: polygon(30% 5%, 70% 5%, 60% 40%, 95% 30%, 95% 70%, 60% 60%, 70% 95%, 30% 95%, 40% 60%, 5% 70%, 5% 30%, 40% 40%); }
.au-header .np-icon    { background: #4ade80; }
.au-header .np-icon::before    { background: #fbbf24; }
.thieu-header .np-icon { background: #38bdf8; }
.thieu-header .np-icon::before { background: #fbbf24; }
.nghia-header .np-icon { background: #facc15; }
.nghia-header .np-icon::before { background: #dc2626; }
.np-meta h3 { font-size: 1.4rem; color: var(--white); }
.np-meta span { font-size: .88rem; color: rgba(255,255,255,.7); }
.np-teams-badge {
  margin-left: auto;
  background: rgba(255,255,255,.15);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.lucky-note { font-size: .75rem; color: #d8b4fe; }

/* Round cards */
.np-rounds {
  background: rgba(255,255,255,.04);
  border-radius: 0 0 16px 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.nr-card {
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  transition: .3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nr-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
}
.nr-card.ck {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(220,38,38,.15), rgba(153,27,27,.2));
  border-color: rgba(248,113,113,.3);
}

.nr-round-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: .9rem;
  color: var(--white);
  flex-shrink: 0;
}
.nr-round-badge.vl { background: var(--vl); }
.nr-round-badge.bk { background: var(--bk); }
.nr-round-badge.ck { background: var(--ck); font-size: 1.4rem; width: 44px; height: 44px; margin: 0 auto; }

.nr-details { display: flex; flex-direction: column; gap: 6px; }
.nr-phase {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 2px 10px;
  border-radius: 50px;
}
.nr-phase.vl { background: var(--vl-light); color: var(--vl); }
.nr-phase.bk { background: var(--bk-light); color: var(--bk); }
.nr-phase.ck { background: var(--ck-light); color: var(--ck); }

.nr-match-display {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
}
.nr-match-display.tbd .nr-team { color: rgba(255,255,255,.65); font-style: italic; }
.nr-match-display.champion .nr-team { color: var(--gold-light); font-weight: 900; }
.nr-ball { font-size: 1.1rem; }

.nr-date-tag { font-size: .78rem; color: rgba(255,255,255,.5); }
.nr-note {
  font-size: .78rem;
  color: #d8b4fe;
  font-style: italic;
  margin-top: 2px;
}
.nr-score-box {
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 8px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: .78rem;
  font-style: italic;
}
.nr-score-box.champion-box {
  font-size: 1.5rem;
  color: var(--gold-light);
  border-color: rgba(240,192,64,.4);
  background: rgba(240,192,64,.08);
}
.special-bk { border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.08) !important; }

/* ===================================================
   WEEKLY SCHEDULE
=================================================== */
.ht-weekly {
  padding: 80px 0;
  background: var(--bg);
}
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.week-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .3s;
}
.week-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.champion-week { box-shadow: 0 8px 32px rgba(220,38,38,.2); }

.wk-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wk-header.vl { background: var(--vl); }
.wk-header.bk { background: var(--bk); }
.wk-header.ck { background: linear-gradient(135deg, var(--ck), #991b1b); }
.wk-badge {
  background: rgba(255,255,255,.25);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 800;
}
.wk-date { color: var(--white); font-weight: 800; font-size: .95rem; flex: 1; text-align: center; }
.wk-tag { color: rgba(255,255,255,.8); font-size: .75rem; font-weight: 600; }

.wk-matches { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.wk-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .88rem;
}
.wk-match.au    { background: var(--au-light); }
.wk-match.thieu { background: var(--thieu-light); }
.wk-match.nghia { background: var(--nghia-light); }
.wk-match.tbd-match { opacity: .75; }
.wk-match.special-match { background: #faf5ff; }
.wk-match.ck-match { font-weight: 800; opacity: 1; }
.wk-nganh {
  width: 26px; height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
  position: relative;
}
.wk-nganh::before { content: ''; position: absolute; inset: 12%; clip-path: polygon(30% 5%, 70% 5%, 60% 40%, 95% 30%, 95% 70%, 60% 60%, 70% 95%, 30% 95%, 40% 60%, 5% 70%, 5% 30%, 40% 40%); }
.wk-match.au .wk-nganh    { background: #4ade80; }
.wk-match.au .wk-nganh::before    { background: #fbbf24; }
.wk-match.thieu .wk-nganh { background: #38bdf8; }
.wk-match.thieu .wk-nganh::before { background: #fbbf24; }
.wk-match.nghia .wk-nganh { background: #facc15; }
.wk-match.nghia .wk-nganh::before { background: #dc2626; }
.wk-time { font-size: .78rem; color: var(--muted); font-weight: 700; min-width: 36px; }
.wk-vs { font-weight: 700; color: var(--text); font-size: .85rem; }

/* ===================================================
   NOTES
=================================================== */
.ht-notes { padding: 60px 0; background: #f1f5f9; }
.notes-box {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}
.notes-box h3 {
  font-size: 1.4rem;
  color: var(--navy2);
  margin-bottom: 24px;
}
.notes-box ul { display: flex; flex-direction: column; gap: 16px; list-style: none; }
.notes-box li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.note-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.notes-box li div { font-size: .95rem; color: var(--muted); line-height: 1.7; }
.notes-box li strong { color: var(--text); }

/* ===================================================
   FOOTER
=================================================== */
.ht-footer { background: var(--navy); padding: 40px 0; }
.ht-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.hf-back-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: .3s;
}
.hf-back-btn:hover { background: rgba(255,255,255,.18); color: var(--white); }
.hf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.hf-cross { font-size: 2rem; color: var(--gold-light); }
.hf-brand strong { display: block; font-family: 'Playfair Display', serif; font-size: 1rem; }
.hf-brand span { font-size: .8rem; opacity: .6; }
.ht-footer p { color: rgba(255,255,255,.4); font-size: .82rem; }

/* ===================================================
   THỂ LỆ THI ĐẤU SECTION
=================================================== */
.ht-thele {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}
.ht-thele .ht-section-header h2 { color: var(--navy2); }
.ht-thele .ht-section-tag { color: var(--gold); }
.ht-thele .ht-section-tag::before,
.ht-thele .ht-section-tag::after { background: var(--gold); }
.ht-thele .ht-section-header p { color: #64748b; }

/* ── Info cards row ── */
.tl-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.tl-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
}
.tl-info-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--navy2), #1e3a5f);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tl-info-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  margin-bottom: 3px;
}
.tl-info-val {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy2);
  line-height: 1.4;
}

/* ── Phụ trách block ── */
.tl-block {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
}
.tl-block-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--navy2);
}
.tl-block-hd .fa-solid { color: var(--gold); font-size: 1.1rem; }
.tl-block-hd h4 { font-size: 1.05rem; font-weight: 800; }

.tl-phutach-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tl-pt-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 20px;
  flex: 1;
  min-width: 130px;
  text-align: center;
}
.tl-pt-item .fa-solid { font-size: 1.3rem; color: #94a3b8; }
.tl-pt-item.chief .fa-solid { color: var(--gold); }
.tl-pt-role { font-size: .75rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.tl-pt-name { font-size: .92rem; font-weight: 800; color: var(--navy2); }

/* ── Rule accordion blocks ── */
.tl-rules { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.tl-rule-block {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.tl-rule-block.spirit {
  border-color: rgba(201,134,10,.3);
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
}

.tl-rule-hd {
  list-style: none;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy2);
  transition: background .2s;
}
.tl-rule-hd::-webkit-details-marker { display: none; }
.tl-rule-block[open] > .tl-rule-hd { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.tl-rule-block.spirit[open] > .tl-rule-hd { background: rgba(201,134,10,.08); }
.tl-rule-hd:hover { background: #f8fafc; }

.tl-rule-num {
  width: 28px; height: 28px;
  background: var(--navy2);
  color: #fff;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tl-chevron { margin-left: auto; font-size: .8rem; color: #94a3b8; transition: transform .25s; }
.tl-rule-block[open] .tl-chevron { transform: rotate(180deg); }

.tl-rule-list {
  list-style: none;
  padding: 16px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: #475569;
  line-height: 1.6;
}
.tl-rule-list li .fa-solid { color: var(--vl); font-size: .9rem; margin-top: 3px; flex-shrink: 0; }

/* ── Penalty cards ── */
.tl-card-row {
  display: flex;
  gap: 12px;
  padding: 12px 22px 4px;
  flex-wrap: wrap;
}
.tl-penalty-card {
  flex: 1; min-width: 120px;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-weight: 800;
}
.tl-penalty-card .fa-solid { font-size: 1.6rem; }
.tl-penalty-card strong { font-size: .9rem; }
.tl-penalty-pts { font-size: 1.1rem; font-weight: 900; }
.tl-penalty-card.yellow { background: #fef9c3; border: 2px solid #fbbf24; color: #92400e; }
.tl-penalty-card.yellow .fa-solid { color: #eab308; }
.tl-penalty-card.red    { background: #fee2e2; border: 2px solid #f87171; color: #991b1b; }
.tl-penalty-card.red .fa-solid { color: #ef4444; }
.tl-penalty-card.dark   { background: #f1f5f9; border: 2px solid #94a3b8; color: #1e293b; }

/* ── Awards ── */
.tl-awards {
  padding: 16px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-award {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .92rem;
}
.tl-award .fa-solid { font-size: 1.4rem; flex-shrink: 0; }
.tl-award div { display: flex; flex-direction: column; gap: 2px; }
.tl-award strong { font-size: .95rem; color: var(--navy2); }
.tl-award span { font-size: .8rem; color: #64748b; }
.tl-award.first  { background: #fef9c3; }
.tl-award.first  .fa-solid { color: #ca8a04; }
.tl-award.second { background: #f1f5f9; }
.tl-award.second .fa-solid { color: #64748b; }
.tl-award.third  { background: #fff7ed; }
.tl-award.third  .fa-solid { color: #c2410c; }

/* ── Spirit quote ── */
.tl-spirit-quote {
  margin: 0;
  padding: 18px 22px 22px;
  font-size: .95rem;
  color: #78350f;
  line-height: 1.8;
  font-style: italic;
  border-left: 4px solid var(--gold);
  background: rgba(201,134,10,.06);
}

/* ── Signatures ── */
.tl-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding: 24px 32px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}
.tl-sig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 160px;
}
.tl-sig .fa-solid { font-size: 1.2rem; color: var(--gold); }
.tl-sig span {
  font-size: .85rem;
  font-weight: 800;
  color: var(--navy2);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  text-align: center;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  .tl-info-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-signatures { padding: 16px 20px; }
  .tl-sig { min-width: 120px; }
}
@media (max-width: 640px) {
  .tl-info-grid { grid-template-columns: 1fr 1fr; }
  .tl-phutach-row { gap: 8px; }
  .tl-pt-item { min-width: 100px; padding: 12px 12px; }
  .tl-rule-hd { font-size: .9rem; padding: 14px 16px; }
  .tl-rule-list { padding: 12px 16px 16px; }
  .tl-card-row { flex-direction: column; }
  .tl-awards { padding: 12px 16px 16px; }
  .tl-signatures { flex-direction: column; align-items: center; gap: 24px; }
}
  .np-rounds { grid-template-columns: 1fr 1fr; }
  .nr-card.ck { grid-column: span 2; }
  .weekly-grid { grid-template-columns: 1fr 1fr; }
  .tl-wrap { gap: 0; }
  .tl-item { min-width: 70px; padding: 6px 6px; }
  .tl-line { min-width: 8px; }
}
/* ===================================================
   BRACKET PICKER SECTION
=================================================== */
.ht-bracket-picker {
  padding: 80px 0;
  background: #f0f4f8;
}
.ht-bracket-picker .ht-section-header h2 { color: var(--navy2); }
.ht-bracket-picker .ht-section-tag { color: var(--gold); }
.ht-bracket-picker .ht-section-tag::before,
.ht-bracket-picker .ht-section-tag::after { background: var(--gold); }
.ht-bracket-picker .ht-section-header p { color: #64748b; }

.picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.picker-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  transition: .3s;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.picker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.picker-card.v1 { border-color: rgba(201,134,10,.3); }
.picker-card.v1:hover { border-color: var(--gold); }
.picker-card.v2 { border-color: rgba(34,197,94,.2); }
.picker-card.v2:hover { border-color: #22c55e; }
.picker-card.v3 { border-color: rgba(14,165,233,.2); }
.picker-card.v3:hover { border-color: #0ea5e9; }

/* Preview mockup area */
.pc-preview {
  padding: 24px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.picker-card.v1 .pc-preview { background: #0d1c36; }
.picker-card.v2 .pc-preview { background: #f8fafc; }
.picker-card.v3 .pc-preview { background: #f1f5f9; }

.pc-mockup {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.pc-mockup.light { background: transparent; }
.pm-col { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pm-box {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  height: 18px;
}
.pm-box.mid { background: rgba(251,146,60,.25); border-color: rgba(251,146,60,.3); }
.pm-box.ck-box { background: rgba(239,68,68,.25); border-color: rgba(239,68,68,.4); height: 28px; }
.pm-lines { width: 48px; flex-shrink: 0; }
.pm-lines svg { width: 100%; height: 90px; }

.pm-row-stack { width: 100%; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.pm-hrow { width: 100%; height: 12px; border-radius: 3px; }
.pm-hrow.green  { background: #bbf7d0; }
.pm-hrow.amber  { background: #fde68a; }
.pm-hrow.red    { background: #fecaca; }
.pm-arrow-row   { font-size: .65rem; color: #94a3b8; letter-spacing: 4px; }

.pc-mockup.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; align-items: start; }
.pm-g3col { display: flex; flex-direction: column; gap: 3px; }
.pm-box.sm { height: 12px; }
.pm-g3col.au  .pm-box { background: #bbf7d0; border: 1px solid #86efac; }
.pm-g3col.th  .pm-box { background: #bae6fd; border: 1px solid #7dd3fc; }
.pm-g3col.ng  .pm-box { background: #fde68a; border: 1px solid #fbbf24; }

/* Info area */
.pc-info {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pc-num {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  color: #94a3b8;
}
.pc-info h3 { font-size: 1.1rem; color: var(--navy2); }
.pc-info p { font-size: .85rem; color: #64748b; line-height: 1.6; flex: 1; }
.pc-btn {
  display: inline-block;
  background: var(--navy2);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 800;
  margin-top: 4px;
  transition: .2s;
  width: fit-content;
}
.picker-card.v1 .pc-btn { background: var(--gold); }
.picker-card.v2 .pc-btn { background: #16a34a; }
.picker-card.v3 .pc-btn { background: #0369a1; }
.picker-card:hover .pc-btn { opacity: .85; }

@media (max-width: 900px) {
  .picker-grid { grid-template-columns: 1fr; }
  .picker-card { flex-direction: row; }
  .pc-preview { min-height: unset; width: 120px; flex-shrink: 0; }
}
@media (max-width: 640px) {
  .picker-card { flex-direction: column; }
  .pc-preview { width: 100%; }
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 640px) {
  .ht-topnav { flex-wrap: wrap; padding: 10px 16px 0; gap: 6px; }
  .ht-topnav-title { font-size: .8rem; }
  .ht-topnav-year { display: none; }
  .ht-back { font-size: .8rem; padding: 4px 10px; }
  .ht-topnav-links {
    display: flex;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 6px 0 8px;
    gap: 0;
    justify-content: stretch;
  }
  .ht-topnav-links a {
    flex: 1;
    justify-content: center;
    font-size: .76rem;
    padding: 7px 4px;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255,255,255,.12);
    gap: 4px;
  }
  .ht-topnav-links a:last-child { border-right: none; }
  .ht-title { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .tl-wrap  { overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; padding-bottom: 8px; }
  .np-rounds { grid-template-columns: 1fr; }
  .nr-card.ck { grid-column: span 1; }
  .weekly-grid { grid-template-columns: 1fr; }
  .nganh-tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .nganh-tab { flex: 1; min-width: 100px; text-align: center; font-size: .82rem; padding: 8px 10px; }
  .np-header { flex-wrap: wrap; }
  .np-teams-badge { margin-left: 0; }
  .notes-box { padding: 24px 18px; }

  /* Bracket table cells — more compact on mobile */
  .mc { padding: 8px 5px; }
  .team { font-size: .75rem; }
  .vs-dot { font-size: .6rem; padding: 1px 3px; }
  .match-chip { gap: 3px; }
  /* Stack match chip vertically on very small screens */
  .match-chip { flex-direction: column; gap: 1px; }
  .vs-dot { align-self: center; }
  .td-nganh { padding: 8px 6px; }
  .ng-name { font-size: .75rem; font-weight: 800; }
  .ng-time { font-size: .65rem; }
  .ng-icon { font-size: 1.1rem; }
  .th-round .round-lbl { font-size: .72rem; }
  .th-round .round-dt  { font-size: .62rem; }

  /* Nr-round match display */
  .nr-match-display { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nr-team { font-size: .88rem; }
  .nr-vs { display: none; }

  /* Bracket picker */
  .picker-grid { grid-template-columns: 1fr; }

  /* Hero */
  .ht-hero { padding: 56px 16px 80px; }
  .ht-title-wrap { gap: 8px; }
  .date-chips { flex-direction: column; align-items: center; gap: 6px; }
  .ht-hero-badge { font-size: .72rem; }

  /* Section header */
  .ht-section-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Notes */
  .notes-list li { font-size: .85rem; }
}

@media (max-width: 380px) {
  /* Very small phones */
  .match-chip { gap: 0; }
  .team { font-size: .68rem; }
  .nganh-tab { font-size: .75rem; padding: 6px 8px; }
  .tl-item { min-width: 60px; padding: 4px; }
  .tl-circle { width: 36px; height: 36px; font-size: .9rem; }
  .tl-circle.ck { width: 42px; height: 42px; font-size: 1.1rem; }
}
