@font-face {
  font-family: 'ThuPhap';
  src: url('/fonts/thuphap.ttf') format('truetype');
  font-display: swap;
  font-weight: 400 700;
}

:root {
  --ink-black: #0a0b0f;
  --ink-deep: #13141a;
  --ink-mid: #1c1e26;
  --ink-soft: #252834;
  --jade-deep: #064e3b;
  --jade: #0d9488;
  --jade-bright: #2dd4bf;
  --jade-glow: #5eead4;
  --azure: #0891b2;
  --azure-bright: #22d3ee;
  --gold: #c9a961;
  --gold-bright: #e4c674;
  --gold-pale: #f5e6c0;
  --seal-red: #b91c1c;
  --seal-blood: #7f1d1d;
  --ivory: #f5f0e1;
  --bone: #d6cdb4;
  --ash: #8a8475;
  --slate: #4a4d5a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--ink-black);
  color: var(--ivory);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== ATMOSPHERIC BACKGROUND ===== */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.bg-gradient {
  background:
    radial-gradient(ellipse at 15% 5%, rgba(13, 148, 136, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(8, 145, 178, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 85%, rgba(201, 169, 97, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(94, 234, 212, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, #0a0b0f 0%, #0d0f15 50%, #0a0b0f 100%);
}

.bg-moon { z-index: 1; }
.bg-moon::before {
  content: '';
  position: absolute; top: 8%; right: 12%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 230, 192, 0.12) 0%, rgba(245, 230, 192, 0.04) 40%, transparent 70%);
  filter: blur(2px);
  animation: moonGlow 8s ease-in-out infinite;
}
.bg-moon::after {
  content: '';
  position: absolute; top: 11%; right: 15%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 230, 192, 0.18) 0%, rgba(228, 198, 116, 0.08) 30%, transparent 60%);
  box-shadow: 0 0 80px 20px rgba(228, 198, 116, 0.08);
}
@keyframes moonGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.bg-mountains { z-index: 2; bottom: 0; height: 100vh; }
.bg-mountains svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }

.bg-mist { z-index: 3; overflow: hidden; }
.mist {
  position: absolute; width: 200%; height: 120px;
  background: linear-gradient(90deg, transparent 0%, rgba(94, 234, 212, 0.04) 20%, rgba(94, 234, 212, 0.08) 40%, rgba(94, 234, 212, 0.06) 60%, rgba(94, 234, 212, 0.03) 80%, transparent 100%);
  filter: blur(20px);
  animation: mistDrift 60s linear infinite;
}
.mist-1 { top: 25%; animation-duration: 80s; opacity: 0.6; }
.mist-2 { top: 55%; animation-duration: 110s; animation-direction: reverse; opacity: 0.5; height: 80px; }
.mist-3 { top: 75%; animation-duration: 95s; opacity: 0.4; height: 150px; }
@keyframes mistDrift { from { transform: translateX(-50%); } to { transform: translateX(0%); } }

.bg-pattern {
  z-index: 4;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%235eead4' stroke-width='0.6'%3E%3Cpath d='M20 60 Q20 50 30 50 Q40 50 40 60 Q40 70 30 70 Q20 70 20 60 Z M40 60 L60 60 M60 60 Q60 50 70 50 Q80 50 80 60 Q80 70 70 70 Q60 70 60 60 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.bg-petals { z-index: 5; overflow: hidden; }
.petal {
  position: absolute; top: -20px; width: 8px; height: 8px;
  opacity: 0; animation: petalFall linear infinite;
}
.petal svg { width: 100%; height: 100%; }
@keyframes petalFall {
  0% { opacity: 0; transform: translateY(-20px) translateX(0) rotate(0deg); }
  5% { opacity: 0.5; }
  50% { transform: translateY(50vh) translateX(40px) rotate(180deg); opacity: 0.7; }
  95% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(110vh) translateX(-30px) rotate(360deg); }
}

.bg-grain {
  z-index: 6;
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255,255,255,0.008) 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.7 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.bg-stars { z-index: 1; }
.star {
  position: absolute; width: 2px; height: 2px;
  background: var(--gold-pale); border-radius: 50%;
  box-shadow: 0 0 4px var(--gold-pale);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.ink-splash { position: fixed; pointer-events: none; z-index: 2; opacity: 0.08; }
.ink-splash.left { top: 30%; left: -100px; transform: rotate(-15deg); width: 400px; }
.ink-splash.right { bottom: 20%; right: -120px; transform: rotate(20deg); width: 350px; }

.container { position: relative; z-index: 10; max-width: 1400px; margin: 0 auto; padding: 4rem 2rem 5rem; }

/* ===== TOP NAV (overlay on hero / persistent on sub-pages) ===== */
.top-nav {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 0.6rem 1.5rem;
  background: rgba(10, 11, 15, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 999px;
}
.top-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.top-nav a:hover { color: var(--gold-bright); }
.top-nav a.active {
  color: var(--gold-bright);
}
.top-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

/* Sub-page hero (smaller, no video) */
.subpage-hero {
  position: relative;
  z-index: 10;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 8rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  margin-bottom: 3rem;
}
.subpage-hero h1 {
  font-family: 'ThuPhap', 'Tangerine', cursive;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  background: linear-gradient(180deg, #f5f6f0 0%, #c9d8d2 55%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(94, 234, 212, 0.30));
}
.subpage-hero .eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--jade-bright);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.subpage-hero .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ash);
  margin-top: 0.6rem;
}
.subpage-content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bone);
  max-width: 800px;
  margin: 0 auto;
}
.subpage-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  margin: 2rem 0 0.75rem;
}
.subpage-content p { margin-bottom: 1rem; }
.subpage-content .placeholder {
  padding: 3rem 2rem;
  background: rgba(28, 30, 38, 0.4);
  border: 1px dashed rgba(201, 169, 97, 0.2);
  border-radius: 4px;
  text-align: center;
  font-style: italic;
  color: var(--ash);
}

/* ===== ARTICLE GRID (Tang Kinh Cac listing) ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

/* Homepage variant: flex so 1-3 cards auto-center, 4 cards fill the row */
.article-grid-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: none;
}
.article-grid-home .article-card {
  flex: 1 1 240px;
  max-width: 320px;
  min-width: 0;
}
@media (max-width: 600px) {
  .article-grid-home .article-card { flex-basis: 100%; max-width: 400px; }
}

.recent-articles-section { margin-bottom: 5rem; animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards; }
.section-more {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--jade-bright);
  text-decoration: none;
  border-bottom: 1px dashed rgba(94, 234, 212, 0.4);
  padding-bottom: 0.1rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.section-more:hover { color: var(--jade-glow); border-bottom-color: var(--jade-glow); }

.article-card {
  display: block;
  background: linear-gradient(180deg, rgba(28, 30, 38, 0.5) 0%, rgba(19, 20, 26, 0.85) 100%);
  border: 1px solid rgba(201, 169, 97, 0.15);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 198, 116, 0.5);
  box-shadow: 0 12px 32px -8px rgba(228, 198, 116, 0.25);
}
.article-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-mid);
  position: relative;
  overflow: hidden;
}
.article-banner::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10, 11, 15, 0.7) 0%, transparent 100%);
  pointer-events: none;
}
.article-card .article-meta {
  padding: 1.25rem 1.25rem 1.5rem;
}
.article-card .article-tag {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--jade-bright);
  margin-bottom: 0.5rem;
}
.article-card .article-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ivory);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.article-card:hover .article-title { color: var(--gold-bright); }
.article-card .article-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ash);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .article-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ash);
  letter-spacing: 0.1em;
}

/* ========== YouTube video grid (PvP Guide page) ========== */
.yt-section {
  margin: 2.5rem auto 4rem;
  padding: 0 1rem;
  max-width: 1280px;
}
.yt-channel-link {
  color: var(--jade-bright);
  text-decoration: none;
  border-bottom: 1px dashed rgba(94, 234, 212, 0.4);
}
.yt-channel-link:hover { color: var(--jade-glow); border-bottom-color: var(--jade-glow); }

/* Shorts grid: cards 9:16 poster style, nhieu cot hon */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

.yt-empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ash);
  font-size: 1.05rem;
}

.yt-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(28, 30, 38, 0.5) 0%, rgba(19, 20, 26, 0.85) 100%);
  border: 1px solid rgba(201, 169, 97, 0.15);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.yt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 198, 116, 0.5);
  box-shadow: 0 12px 32px -8px rgba(228, 198, 116, 0.25);
}
.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--ink-mid);
  overflow: hidden;
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.yt-card:hover .yt-thumb img { transform: scale(1.05); }

/* Play button overlay - red YouTube color with subtle glass */
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 0, 0.88);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  opacity: 0.9;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
  pointer-events: none;
  padding-left: 4px;
}
.yt-card:hover .yt-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(255, 30, 30, 1);
}

/* SHORTS tag on thumbnail */
.yt-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 0, 0, 0.9);
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.yt-meta { padding: 0.85rem 0.95rem 1rem; }
.yt-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ivory);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.yt-card:hover .yt-title { color: var(--gold-bright); }
.yt-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ash);
}
.yt-sep { opacity: 0.5; }

/* ========== Bracket Tree (shared admin + homepage) ========== */
.bracket-tree-scroll { overflow-x: auto; padding-bottom: 1rem; }
.bracket-tree {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem 1rem;
  padding: 1.5rem;
  background: #000;
  border: 1px solid #1e293b;
  border-radius: 8px;
  min-width: 1100px;
  position: relative;
}
.bracket-tree .bracket-row-wb,
.bracket-tree .bracket-row-lb { display: contents; }

.bracket-tree .bracket-svg {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 0;
}
.bracket-tree .bracket-svg .bc-winner {
  stroke: rgba(94, 234, 212, 0.45);
  stroke-width: 1;
  fill: none;
}
.bracket-tree .bracket-svg .bc-loser {
  stroke: rgba(244, 114, 182, 0.25);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  fill: none;
}
.bracket-tree .round-col,
.bracket-tree .bracket-footer {
  position: relative;
  z-index: 1;
}

.bracket-tree .bracket-footer {
  grid-column: 1 / -1;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: #475569;
  text-transform: uppercase;
  border-top: 1px solid #1e293b;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.bracket-tree .round-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bracket-tree .round-col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: #60a5fa;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
}
.bracket-tree .round-col-label.gf {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(120, 53, 15, 0.15);
}

.bracket-tree .bracket-match {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}
.bracket-tree .bracket-match[data-readonly] { cursor: default; }
.bracket-tree .bracket-match:hover:not([data-readonly]) {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15);
}
.bracket-tree .bracket-match.settled {
  background: #0d1f1a;
  border-color: #064e3b;
}
.bracket-tree .bracket-match.is-gf {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
}
.bracket-tree .bracket-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
}
.bracket-tree .bracket-row + .bracket-row {
  border-top: 1px solid rgba(30, 41, 59, 0.6);
}
.bracket-tree .bracket-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
}
.bracket-tree .bracket-name.placeholder {
  color: #475569;
  font-style: italic;
}
.bracket-tree .bracket-name.winner {
  color: #34d399;
  font-weight: 600;
}
.bracket-tree .bracket-score {
  font-weight: 600;
  color: #94a3b8;
  min-width: 1.2em;
  text-align: right;
}
.bracket-tree .bracket-row.winner .bracket-score { color: #34d399; }
.bracket-tree .bracket-empty {
  font-size: 0.7rem;
  color: #475569;
  font-style: italic;
  text-align: center;
}

/* Homepage variant: tighter padding */
.home-bracket .bracket-tree {
  padding: 1rem;
  min-width: 900px;
  background: rgba(0, 0, 0, 0.6);
}

/* Active tournament section on homepage */
.active-tournament-section {
  margin-bottom: 4rem;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}
.att-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  max-width: 800px;
}
.att-progress {
  flex: 1;
  height: 6px;
  background: rgba(28, 30, 38, 0.6);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.att-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--jade) 0%, var(--gold-bright) 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.att-progress-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ash);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Article detail page */
.article-detail {
  max-width: 850px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--bone);
}
.article-detail .article-banner-full {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(201, 169, 97, 0.15);
}
.article-detail h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1.2;
  color: var(--gold-bright);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.article-detail .article-meta-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ash);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  padding-bottom: 1rem;
}
.article-detail h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--gold-bright);
  margin: 2rem 0 0.75rem;
}
.article-detail h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ivory);
  margin: 1.5rem 0 0.5rem;
}
.article-detail p { margin-bottom: 1.1rem; }
.article-detail img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(201, 169, 97, 0.1);
}
.article-detail blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--bone);
  background: rgba(201, 169, 97, 0.05);
}
.article-detail a { color: var(--jade-bright); text-decoration: none; border-bottom: 1px dashed rgba(94, 234, 212, 0.4); }
.article-detail a:hover { color: var(--jade-glow); border-bottom-color: var(--jade-glow); }
.article-detail ul, .article-detail ol { margin: 1rem 0 1rem 1.5rem; }
.article-detail li { margin-bottom: 0.5rem; }
.article-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ash);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.article-back:hover { color: var(--gold-bright); }

@media (max-width: 768px) {
  .top-nav { gap: 0.75rem; padding: 0.4rem 0.8rem; }
  .top-nav a { font-size: 0.72rem; letter-spacing: 0.06em; }
}
@media (max-width: 520px) {
  .top-nav {
    top: 0.7rem;
    gap: 0.5rem;
    padding: 0.3rem 0.65rem;
    flex-wrap: nowrap;
    border-radius: 999px;
  }
  .top-nav a { font-size: 0.62rem; letter-spacing: 0.04em; }
}

/* ===== USER WIDGET (top right - scrolls with page) ===== */
.user-widget {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
}
.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 3px 12px -4px rgba(88, 101, 242, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px -4px rgba(88, 101, 242, 0.7);
}
.btn-discord-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
}
.btn-discord-icon svg { width: 18px; height: 18px; fill: #fff; }

.user-card-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.4rem 0.25rem 0.3rem;
  background: rgba(19, 20, 26, 0.85);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.user-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.user-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  display: block;
}
.user-card-compact.pending .user-avatar-wrap img,
.user-card-compact.pending .user-avatar-wrap .initial {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(228, 198, 116, 0.4);
}
.user-avatar-wrap .initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--ink-soft);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-bright);
}
.user-avatar-wrap .discord-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #5865F2;
  border: 1.5px solid var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-avatar-wrap .discord-badge svg {
  width: 9px;
  height: 9px;
  fill: #fff;
}
.btn-logout-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ash);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.btn-logout-icon:hover {
  color: var(--seal-red);
  background: rgba(185, 28, 28, 0.1);
}

.flash-msg {
  position: absolute;
  top: 5rem;
  right: 1.5rem;
  padding: 0.7rem 1.1rem;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid var(--jade-bright);
  color: var(--jade-glow);
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  z-index: 100;
  max-width: 320px;
  animation: fadeUp 0.4s, fadeOutSlow 0.4s 6s forwards;
}
.flash-msg.warn { background: rgba(228, 198, 116, 0.12); border-color: var(--gold-bright); color: var(--gold-pale); }
.flash-msg.error { background: rgba(185, 28, 28, 0.15); border-color: var(--seal-red); color: #fca5a5; }
@keyframes fadeOutSlow { to { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 640px) {
  /* Widget is icon-only now, fits beside the nav at top-right */
  .user-widget { top: 0.75rem; right: 0.75rem; }
  .btn-discord-icon { width: 34px; height: 34px; }
  .btn-discord-icon svg { width: 16px; height: 16px; }
  .user-avatar-wrap { width: 28px; height: 28px; }
  .user-avatar-wrap .discord-badge { width: 13px; height: 13px; }
  .user-avatar-wrap .discord-badge svg { width: 8px; height: 8px; }
  .user-avatar-wrap .initial { font-size: 0.85rem; }
}

/* ===== HEADER (centered calligraphy) ===== */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  margin-bottom: 3.5rem;
  position: relative;
}

.header-title { text-align: center; }

.calli-line {
  font-family: 'ThuPhap', 'Tangerine', cursive;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #f5f6f0 0%, #c9d8d2 55%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(94, 234, 212, 0.30)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.calli-top    { font-size: 4.5rem; }
.calli-bottom {
  font-size: 6.2rem;
  margin-top: -0.25rem;
  background: linear-gradient(180deg, #f8f5ea 0%, #d6cdb4 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 22px rgba(245, 230, 192, 0.40)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}

.header-sub {
  margin-top: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  color: var(--jade-bright);
  text-transform: uppercase;
  text-indent: 0.5em;
}

.header-meta {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ash);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  justify-content: center;
}
.header-meta .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--jade-bright); border-radius: 50%;
  box-shadow: 0 0 8px var(--jade-bright);
  animation: pulse 2s infinite;
  margin-right: 0.4rem; vertical-align: middle;
}
.header-meta .season {
  color: var(--gold-bright);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}
.section-title-block { display: flex; flex-direction: column; gap: 0.5rem; }
.section-title-block .eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem; letter-spacing: 0.4em;
  color: var(--jade-bright);
  text-transform: uppercase;
}
.section-title-block h2 {
  font-family: 'ThuPhap', 'Tangerine', cursive;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0;
  color: var(--gold-bright);
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(228, 198, 116, 0.25);
}
.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ash);
  font-size: 1rem;
}

/* ===== HERO VIDEO (full-viewport hero with overlay text) ===== */
.hero-video {
  position: relative;
  z-index: 20; /* tren tat ca bg-layer (max z-index 6) de theme nui+suong khong de video */
  width: 100vw;
  /* Full viewport height, hoi gioi han toi da 100vh */
  height: min(100vh, calc(100vw * 9 / 16));
  min-height: 70vh;
  background: #000;
  overflow: hidden;
  margin: 0;
}
/* Dark gradient overlay at bottom for text readability */
.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 11, 15, 0.85) 0%, rgba(10, 11, 15, 0.2) 35%, transparent 60%),
    linear-gradient(to bottom, rgba(10, 11, 15, 0.4) 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}

/* Hero overlay - calligraphy positioned at bottom-center over video */
.hero-overlay {
  position: absolute;
  bottom: 8vh;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  pointer-events: none;
}
.hero-title {
  display: inline-block;
}

@media (max-width: 1100px) {
  .hero-video { min-height: 60vh; }
  .hero-overlay { bottom: 6vh; }
}
@media (max-width: 640px) {
  .hero-video { min-height: 50vh; height: min(70vh, 100vw * 9 / 16); }
  .hero-overlay { bottom: 4vh; }
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-mute-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: rgba(10, 11, 15, 0.75);
  color: var(--ivory);
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}
.video-mute-btn:hover {
  background: rgba(10, 11, 15, 0.9);
  border-color: var(--gold-bright);
}
.video-mute-btn .hidden { display: none; }
.video-mute-btn.pulse {
  border-color: var(--gold-bright);
  background: rgba(228, 198, 116, 0.18);
  animation: mutePulse 1.6s ease-in-out infinite;
}
@keyframes mutePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228, 198, 116, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(228, 198, 116, 0); }
}
@media (max-width: 640px) {
  .hero-video { margin-bottom: 2.5rem; max-height: 60vh; }
  .video-mute-btn { bottom: 0.75rem; right: 0.75rem; padding: 0.4rem 0.7rem; font-size: 0.85rem; }
}

/* ===== TOP 3 PODIUM ===== */
.podium-section { margin-bottom: 5rem; }

.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1.5rem;
  align-items: end;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 4rem 1rem 0;
}

.podium-spotlight {
  position: absolute; top: -60px;
  width: 200px; height: 600px;
  pointer-events: none; z-index: 0;
  transform-origin: top center;
}
.podium-spotlight.center {
  left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(228, 198, 116, 0.18) 0%, transparent 70%);
  filter: blur(8px); width: 280px;
}
.podium-spotlight.left {
  left: 14%;
  background: linear-gradient(180deg, rgba(180, 200, 215, 0.10) 0%, transparent 70%);
  filter: blur(6px);
}
.podium-spotlight.right {
  right: 14%;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.10) 0%, transparent 70%);
  filter: blur(6px);
}

.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.podium-spot.empty { opacity: 0.35; filter: grayscale(0.8); }

.rank-medal {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.crown-svg { width: 50px; height: 50px; filter: drop-shadow(0 0 12px rgba(228, 198, 116, 0.6)); }
.spot-2 .crown-svg { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.5)); }
.spot-3 .crown-svg { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.5)); }

.medal-roman {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}
.spot-1 .medal-roman { color: var(--gold-bright); text-shadow: 0 0 10px rgba(228, 198, 116, 0.6); font-size: 1.7rem; }
.spot-2 .medal-roman { color: #d4d4d4; text-shadow: 0 0 8px rgba(192, 192, 192, 0.4); }
.spot-3 .medal-roman { color: #cd7f32; text-shadow: 0 0 8px rgba(205, 127, 50, 0.4); }

.portrait-wrapper { position: relative; margin-bottom: 1.25rem; }

.portrait-frame {
  width: 170px; height: 170px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--jade-deep), var(--ink-mid));
  box-shadow: 0 0 0 4px var(--ink-deep), 0 0 0 5px rgba(201, 169, 97, 0.3), 0 0 40px rgba(228, 198, 116, 0.3);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.spot-1 .portrait-frame {
  width: 200px; height: 200px;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 4px var(--ink-deep), 0 0 0 6px var(--gold), 0 0 0 7px rgba(228, 198, 116, 0.4), 0 0 60px rgba(228, 198, 116, 0.5);
}
.spot-2 .portrait-frame {
  width: 160px; height: 160px;
  border-color: #d4d4d4;
  box-shadow: 0 0 0 4px var(--ink-deep), 0 0 0 5px rgba(192, 192, 192, 0.4), 0 0 35px rgba(192, 192, 192, 0.25);
}
.spot-3 .portrait-frame {
  width: 150px; height: 150px;
  border-color: #cd7f32;
  box-shadow: 0 0 0 4px var(--ink-deep), 0 0 0 5px rgba(205, 127, 50, 0.4), 0 0 30px rgba(205, 127, 50, 0.25);
}
.portrait-frame:hover { transform: translateY(-4px) scale(1.02); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-frame .initial {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 4rem;
  color: var(--gold-bright);
}
.spot-2 .portrait-frame .initial { color: #e0e0e0; font-size: 3.5rem; }
.spot-3 .portrait-frame .initial { color: #e09850; font-size: 3.2rem; }

.player-banner { text-align: center; margin-bottom: 1.25rem; }
.player-banner .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.spot-1 .player-banner .name {
  font-size: 1.6rem;
  color: var(--gold-pale);
  text-shadow: 0 0 20px rgba(228, 198, 116, 0.4);
}
.player-banner .tier-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: 0.06em;
}
.spot-1 .player-banner .tier-line {
  font-size: 1.35rem;
  color: var(--gold-pale);
}

/* ========== TIER CALLIGRAPHY (ThuPhap text, escalation L1→L9) ==========
   Triết lý: rank thấp = phẳng, đơn sắc → rank cao = gradient + glow + animation
   Dùng font 'ThuPhap' đã cài, fallback 'Tangerine' rồi cursive. */
.tier-calli {
  font-family: 'ThuPhap', 'Tangerine', cursive;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-block;
  position: relative;
}

/* Level 1 — Trượng Kiếm: thép xám, phẳng tuyệt đối */
.tier-calli-l1 {
  color: #94a3b8;
}

/* Level 2 — Du Nhận: tím nhạt, viền mờ nhẹ */
.tier-calli-l2 {
  color: #c4b5fd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Level 3 — Khai Sơn: lam ngọc, halo dịu */
.tier-calli-l3 {
  color: #93c5fd;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(96, 165, 250, 0.35);
}

/* Level 4 — Đoạn Thủy: ngọc lưu ly, glow gấp đôi */
.tier-calli-l4 {
  color: #67e8f9;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(34, 211, 238, 0.45),
    0 0 22px rgba(34, 211, 238, 0.2);
}

/* Level 5 — Trảm Phong: gradient ngọc bích dọc */
.tier-calli-l5 {
  background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.45));
}

/* Level 6 — Lưu Vân: gradient mây trôi (teal → cyan), thêm halo bên */
.tier-calli-l6 {
  background: linear-gradient(95deg, #a7f3d0 0%, #5eead4 45%, #67e8f9 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(94, 234, 212, 0.45))
          drop-shadow(0 0 22px rgba(94, 234, 212, 0.18));
}

/* Level 7 — Trường Phong: hoàng kim, gradient + đổ bóng vàng */
.tier-calli-l7 {
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.55))
          drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* Level 8 — Phi Hoa: lửa cháy, gradient cam-đỏ-hồng + glow đa lớp */
.tier-calli-l8 {
  background: linear-gradient(100deg, #fde68a 0%, #fb923c 35%, #ef4444 70%, #ec4899 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(251, 146, 60, 0.6))
          drop-shadow(0 0 24px rgba(239, 68, 68, 0.35));
}

/* Level 9 — Vô Ngã: tối thượng — gradient nhiều màu + shimmer chạy + double glow */
.tier-calli-l9 {
  background: linear-gradient(100deg,
    #fff 0%, #fde68a 18%, #f97316 36%, #ef4444 54%,
    #fde68a 72%, #fff 90%, #ef4444 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.7))
          drop-shadow(0 0 28px rgba(251, 191, 36, 0.4));
  animation: tier-calli-shimmer 4s linear infinite;
}
@keyframes tier-calli-shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

/* Kích thước theo ngữ cảnh */

/* Podium spot 2 & 3 */
.player-banner .tier-line .tier-calli { font-size: 2.4rem; }
/* Podium champion (spot 1): lớn hơn */
.spot-1 .player-banner .tier-line .tier-calli { font-size: 2.9rem; }

/* Tier ladder (section "Các Cấp Đẳng Cấp") */
.tier-info .tier-calli { font-size: 2.4rem; }

/* Bảng Anh Hùng Lệnh — cột Đẳng Cấp */
.rank-tier-cell .tier-calli { font-size: 1.7rem; }

.podium-block {
  width: 100%;
  background: linear-gradient(180deg, rgba(28, 30, 38, 0.6) 0%, rgba(19, 20, 26, 0.9) 100%);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-bottom: none;
  padding: 1.25rem 1rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.block-1 {
  height: 200px;
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.12) 0%, rgba(28, 30, 38, 0.7) 50%, rgba(19, 20, 26, 0.95) 100%);
  box-shadow: 0 -10px 60px -10px rgba(228, 198, 116, 0.3);
}
.block-2 {
  height: 150px;
  border-color: rgba(192, 192, 192, 0.4);
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.08) 0%, rgba(28, 30, 38, 0.7) 50%, rgba(19, 20, 26, 0.95) 100%);
}
.block-3 {
  height: 110px;
  border-color: rgba(205, 127, 50, 0.4);
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.06) 0%, rgba(28, 30, 38, 0.7) 50%, rgba(19, 20, 26, 0.95) 100%);
}

.block-rank-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.block-1 .block-rank-num { color: var(--gold-bright); text-shadow: 0 0 20px rgba(228, 198, 116, 0.5); font-size: 3rem; }
.block-2 .block-rank-num { color: #d4d4d4; }
.block-3 .block-rank-num { color: #cd7f32; }

.block-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}
.block-stat { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.block-stat .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--ash);
  text-transform: uppercase;
}
.block-stat .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--ivory);
  font-weight: 500;
}
.block-1 .block-stat .value { font-size: 1.3rem; color: var(--gold-pale); }
.block-divider {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* ===== RANKING TABLE ===== */
.ranking-section { margin-bottom: 5rem; }

.ranking-table {
  background: linear-gradient(180deg, rgba(28, 30, 38, 0.5) 0%, rgba(19, 20, 26, 0.85) 100%);
  border: 1px solid rgba(201, 169, 97, 0.15);
}

.ranking-head {
  display: grid;
  grid-template-columns: 70px 1fr 220px 130px 100px;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  background: rgba(201, 169, 97, 0.04);
  gap: 1rem;
}
.ranking-head span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
}
.ranking-head .col-wr { text-align: right; }
.ranking-head .col-pts { text-align: right; }

.ranking-empty {
  padding: 4rem 1.75rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ash);
  font-size: 1.05rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: 70px 1fr 220px 130px 100px;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.05);
  align-items: center;
  gap: 1rem;
  transition: background 0.25s, transform 0.25s;
}
.ranking-row:last-child { border-bottom: none; }
.ranking-row:hover {
  background: rgba(45, 212, 191, 0.04);
  transform: translateX(4px);
}

.rank-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ash);
}
.rank-num.top-1 { color: var(--gold-bright); }
.rank-num.top-2 { color: #d4d4d4; }
.rank-num.top-3 { color: #cd7f32; }

.rank-player { display: flex; align-items: center; gap: 0.85rem; }
.rank-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jade-deep), var(--ink-mid));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-bright);
  flex-shrink: 0;
  overflow: hidden;
}
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rank-info .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.rank-tier-cell { display: flex; align-items: center; gap: 0.6rem; }
.tier-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.rank-tier-cell .tier-name-cell {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
/* Cot Dang Cap trong bang giờ dùng .tier-calli (xem block tier-calligraphy) */

.rank-winrate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--bone);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.rank-winrate .wr-bar {
  width: 80px; height: 3px;
  background: rgba(201, 169, 97, 0.15);
  overflow: hidden;
  border-radius: 2px;
}
.rank-winrate .wr-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--jade), var(--jade-bright));
  box-shadow: 0 0 6px rgba(45, 212, 191, 0.4);
}

.rank-points {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--gold-bright);
  text-align: right;
  font-weight: 500;
}

.rank-trend {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: center;
}
.rank-trend.up { color: var(--jade-bright); }
.rank-trend.down { color: var(--seal-red); opacity: 0.8; }
.rank-trend.same { color: var(--ash); opacity: 0.5; }
.rank-trend.new { color: var(--gold); opacity: 0.7; }

/* ===== BOTTOM GRID ===== */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ===== TIER LADDER SECTION (full-width, horizontal) ===== */
.tier-ladder-section { margin-top: 2rem; }
.tier-ladder-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
}
.tier-ladder-horizontal .tier-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.5rem;
  border-bottom: none;
  border-radius: 8px;
  background: rgba(28, 30, 38, 0.3);
  border: 1px solid rgba(201, 169, 97, 0.08);
}
.tier-ladder-horizontal .tier-row:hover {
  background: rgba(201, 169, 97, 0.06);
  border-color: rgba(201, 169, 97, 0.2);
}
.tier-ladder-horizontal .tier-info {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.tier-ladder-horizontal .tier-info .tier-calli { font-size: 2.1rem; }
.tier-ladder-horizontal .tier-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ash);
  text-align: center;
}
@media (max-width: 768px) {
  .tier-ladder-horizontal {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    padding: 1rem;
  }
}

.panel {
  background: linear-gradient(180deg, rgba(28, 30, 38, 0.5) 0%, rgba(19, 20, 26, 0.85) 100%);
  border: 1px solid rgba(201, 169, 97, 0.15);
  position: relative;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.12);
}
.panel-title .en {
  font-family: 'ThuPhap', 'Tangerine', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--gold-bright);
  text-transform: none;
  text-shadow: 0 2px 12px rgba(228, 198, 116, 0.2);
}

.score-structure { padding: 1.5rem 1.75rem 1.75rem; }

.formula-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  background: rgba(13, 148, 136, 0.05);
  border: 1px dashed rgba(94, 234, 212, 0.2);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--bone);
  text-transform: uppercase;
}
.formula-bar .op { color: var(--gold-bright); font-size: 1rem; }
.formula-bar .eq { color: var(--jade-bright); font-size: 1rem; }
.formula-bar .var {
  padding: 0.25rem 0.6rem;
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.score-components { display: flex; flex-direction: column; gap: 1rem; }
.score-comp {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(201, 169, 97, 0.1);
}
.score-comp:last-of-type { border-bottom: none; }
.score-comp .comp-pct {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-align: center;
}
.score-comp .comp-info { display: flex; flex-direction: column; gap: 0.15rem; }
.score-comp .comp-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--ivory);
  letter-spacing: 0.05em;
}
.score-comp .comp-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ash);
}

/* Tier Ladder */
.tier-ladder { padding: 0; }

.tier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.05);
  transition: background 0.25s;
}
.tier-row:last-child { border-bottom: none; }
.tier-row:hover { background: rgba(201, 169, 97, 0.04); }

.tier-badge {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid;
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1rem;
}

.tier-info { display: flex; flex-direction: column; gap: 0.2rem; }
.tier-info .tier-vn-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--ivory);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.tier-info .tier-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ash);
}

.tier-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--bone);
  text-align: right;
  letter-spacing: 0.05em;
}
.tier-range .max { color: var(--ash); opacity: 0.6; }

/* ===== FOOTER ===== */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 169, 97, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ash);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.7;
}

/* ===== ENTRANCE ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.site-header, .podium-section, .ranking-section, .bottom-grid, .tier-ladder-section, footer {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.podium-section { animation-delay: 0.1s; }
.ranking-section { animation-delay: 0.3s; }
.bottom-grid { animation-delay: 0.45s; }
.tier-ladder-section { animation-delay: 0.55s; }
footer { animation-delay: 0.65s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .calli-top    { font-size: 3.5rem; }
  .calli-bottom { font-size: 4.8rem; }
  .podium { grid-template-columns: 1fr; gap: 2rem; max-width: 400px; }
  .spot-1, .spot-2, .spot-3 { order: unset; }
  .block-1, .block-2, .block-3 { height: auto; min-height: 110px; }
  .podium-spotlight { display: none; }
  .ranking-head, .ranking-row { grid-template-columns: 60px 1fr 130px 90px 70px; }
  .ranking-head .col-tier, .ranking-row .rank-tier-cell { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 1.5rem 1rem 3rem; }
  .calli-top    { font-size: 2.6rem; }
  .calli-bottom { font-size: 3.4rem; }
  .header-sub { font-size: 0.7rem; letter-spacing: 0.3em; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .section-title-block h2 { font-size: 2.2rem; }
  .panel-title .en { font-size: 1.6rem; }
  .ranking-head, .ranking-row { grid-template-columns: 50px 1fr 80px 50px; gap: 0.5rem; padding: 0.85rem 1rem; }
  .ranking-head .col-wr, .ranking-row .rank-winrate { display: none; }
  .tier-row { padding: 0.85rem 1rem; }
  .ranking-head .col-pts { text-align: right; }
}