/* ===== DLS 2026 — Dark Gaming Theme ===== */
:root {
  --bg: #09090b;          /* zinc-950 */
  --bg-2: #18181b;        /* zinc-900 */
  --bg-3: #27272a;        /* zinc-800 */
  --border: #27272a;
  --text: #e4e4e7;        /* zinc-200 */
  --muted: #a1a1aa;       /* zinc-400 */
  --dim: #71717a;         /* zinc-500 */
  --accent: #10b981;      /* emerald-500 */
  --accent-2: #34d399;    /* emerald-400 */
  --accent-d: #059669;    /* emerald-600 */
  --radius: 16px;
}

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

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-d); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px; height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  display: grid; place-items: center; color: #fff; font-weight: 900;
}
.logo .accent { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--muted); transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-3); color: var(--text); }
.nav a.active { background: rgba(16,185,129,0.15); color: var(--accent-2); }
.nav .btn-login {
  background: var(--accent-d); color: #fff;
}
.nav .btn-login:hover { background: var(--accent); color: #fff; }

/* ===== App shell: sidebar trái + nội dung (layout toàn site) ===== */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 240px; z-index: 50;
  background: rgba(10,10,12,0.96); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 12px;
  overflow-y: auto;
}
.app-sidebar .logo { padding: 6px 8px 18px; font-size: 20px; }
.app-side-nav { display: flex; flex-direction: column; gap: 4px; }
.app-side-sep { height: 1px; background: var(--border); margin: 8px 12px; opacity: .6; }
.app-side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 15px;
  color: var(--muted); transition: background .2s, color .2s;
}
.app-side-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.app-side-nav a:hover { background: var(--bg-3); color: var(--text); }
.app-side-nav a.active { background: rgba(16,185,129,0.15); color: var(--accent-2); }

/* Tra cứu cầu thủ — mục "hot" nổi bật ở đầu menu, CHỈ hiện trên di động.
   Desktop đã có link hot ở thanh ngang nên ẩn mục này + dải ngăn cách của nó.
   Dùng selector .app-side-nav a... để thắng độ ưu tiên của .app-side-nav a. */
.app-side-nav a.side-hot, .app-side-nav .side-hot-sep { display: none; }
.app-side-nav a.side-hot {
  position: relative; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(251,146,60,.20), rgba(239,68,68,.16));
  border: 1px solid rgba(251,146,60,.45); color: #fdba74 !important;
}
.app-side-nav a.side-hot svg { width: 20px; height: 20px; flex-shrink: 0; }
.app-side-nav a.side-hot .ct-fire {
  font-size: 17px; line-height: 1; display: inline-block;
  transform-origin: 50% 90%; animation: ct-flame 1s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(251,146,60,.7));
}
.app-side-nav a.side-hot.active { background: linear-gradient(135deg, rgba(251,146,60,.30), rgba(239,68,68,.24)); color: #fdba74 !important; }
.app-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.app-side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.app-side-user .uname { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-content { flex: 1; min-width: 0; margin-left: 240px; }

/* ===== Thanh ngang trên cùng vùng nội dung (tìm kiếm + tài khoản) ===== */
.content-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 20px;
  background: rgba(9,9,11,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.ct-burger { display: none; cursor: pointer; color: var(--text); font-size: 24px; line-height: 1; flex-shrink: 0; }
/* Logo trong thanh ngang — chỉ hiện trên di động, căn giữa */
.ct-brand { display: none; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--text); }
.ct-brand .accent { color: var(--accent); }
/* Lớp phủ mobile — bấm ra ngoài để đóng menu */
.nav-overlay { display: none; }

/* Link nhanh trên thanh ngang */
.ct-quick { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ct-quick a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--muted); white-space: nowrap; transition: background .18s, color .18s;
}
.ct-quick a svg { width: 18px; height: 18px; flex-shrink: 0; }
.ct-quick a:hover { background: var(--bg-3); color: var(--text); }
.ct-quick a.active { background: rgba(16,185,129,.15); color: var(--accent-2); }
/* Tra cứu cầu thủ — nổi bật "hot" */
.ct-quick-hot {
  position: relative;
  background: linear-gradient(135deg, rgba(251,146,60,.18), rgba(239,68,68,.14));
  border: 1px solid rgba(251,146,60,.45); color: #fdba74 !important;
}
.ct-quick-hot:hover { background: linear-gradient(135deg, rgba(251,146,60,.28), rgba(239,68,68,.22)); }
.ct-quick-hot.active { color: #fdba74 !important; }
.ct-fire {
  font-size: 15px; line-height: 1; display: inline-block;
  transform-origin: 50% 90%; animation: ct-flame 1s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(251,146,60,.7));
}
@keyframes ct-flame {
  0%,100% { transform: scale(1) rotate(-3deg); }
  25%     { transform: scale(1.18) rotate(3deg); }
  50%     { transform: scale(.95) rotate(-2deg); }
  75%     { transform: scale(1.12) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .ct-fire { animation: none; } }

.ct-search {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 12px; height: 40px; transition: border-color .18s;
}
.ct-search:focus-within { border-color: rgba(16,185,129,.5); }
.ct-search svg { width: 18px; height: 18px; color: var(--dim); flex-shrink: 0; }
.ct-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 14px; height: 100%; }
.ct-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
/* Nút chuyển ngôn ngữ VI | EN */
.ct-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.ct-lang a { padding: 5px 9px; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1; }
.ct-lang a:hover { background: var(--bg-3); color: var(--text); }
.ct-lang a.active { background: var(--accent-d); color: #fff; }
.ct-icon {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: var(--muted);
  transition: background .18s, color .18s;
}
.ct-icon:hover { background: var(--bg-3); color: var(--text); }
.ct-icon svg { width: 20px; height: 20px; }
.ct-badge {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; border: 2px solid var(--bg);
}
/* Tài khoản: dropdown không cần JS (details/summary) */
.ct-account { position: relative; }
.ct-account summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px; border-radius: 10px; transition: background .18s;
}
.ct-account summary::-webkit-details-marker { display: none; }
.ct-account summary:hover { background: var(--bg-3); }
.ct-account .ct-uname { font-weight: 600; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-account .ct-caret { width: 16px; height: 16px; color: var(--dim); }
.ct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); z-index: 60;
}
.ct-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text);
}
.ct-menu a:hover { background: var(--bg-3); }
.ct-menu a svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.ct-menu .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.ct-auth { display: flex; gap: 8px; }

@media (max-width: 1080px) {
  /* Màn vừa: thu link nhanh về icon-only cho đỡ chật (giữ icon lửa) */
  .ct-quick a span:not(.ct-fire) { display: none; }
  .ct-quick a { padding: 8px 10px; }
}
@media (max-width: 860px) {
  .ct-burger { display: block; }
  .ct-brand { display: flex; }
  /* Mobile: dòng 1 = burger | logo (giữa) | công cụ (phải) trên 1 hàng; dòng 2 = ô tìm full */
  .content-topbar { flex-wrap: wrap; height: auto; padding: 10px 12px; row-gap: 10px; column-gap: 6px; }
  .ct-burger { order: 0; flex: 0 0 auto; }
  .ct-brand { order: 1; flex: 1 1 auto; justify-content: center; min-width: 0; }
  .ct-tools { order: 2; flex: 0 0 auto; margin-left: 0; gap: 4px; }
  .ct-search { order: 3; flex-basis: 100%; max-width: none; }
  /* Ép gọn công cụ cho vừa 1 hàng trên màn hẹp */
  .ct-tools .ct-icon { width: 34px; height: 34px; }
  .ct-lang a { padding: 4px 7px; font-size: 11px; }
  .ct-auth .btn { padding: 8px 12px; font-size: 13px; }
  .ct-account .ct-uname { display: none; }
  .ct-account summary { padding: 3px 4px; gap: 4px; }
  .ct-quick { display: none; } /* mobile: 4 link đã có trong menu dọc (burger) */
}
@media (max-width: 560px) {
  .ct-brand { font-size: 16px; }
  .ct-tools { gap: 2px; }
  .ct-tools .ct-icon { width: 32px; height: 32px; }
  .ct-account .ct-caret { display: none; }
}

/* Khối phụ trong sidebar (vd: lọc danh mục forum) */
.app-side-extra { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.app-side-extra .side-title { padding: 4px 8px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--dim); }
.app-side-extra > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--muted); transition: background .2s, color .2s;
}
.app-side-extra > a:hover { background: var(--bg-3); color: var(--text); }
.app-side-extra > a.active { background: rgba(16,185,129,0.15); color: var(--accent-2); }
.app-side-extra .count { font-size: 12px; color: var(--dim); }

@media (max-width: 860px) {
  .app-sidebar {
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.5);
  }
  #navtoggle:checked ~ .app-shell .app-sidebar { transform: translateX(0); }
  /* Mobile: hiện mục "Tra cứu cầu thủ" hot ở đầu menu, ẩn mục trùng phía dưới */
  .app-side-nav a.side-hot { display: flex; }
  .app-side-nav .side-hot-sep { display: block; }
  .app-side-nav a.side-players-dup { display: none; }
  /* Lớp phủ: hiện khi menu mở, bấm vào để đóng (nó là <label for="navtoggle">) */
  #navtoggle:checked ~ .app-shell .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(0,0,0,.5);
  }
  .app-content { margin-left: 0; }
}
@media (min-width: 861px) { #navtoggle { display: none; } }

/* Hộp liên hệ người bán (dùng details/summary, không cần JS) */
.contact-box summary { cursor: pointer; }
.contact-box summary::-webkit-details-marker { display: none; }

/* ===== Trang tin nhắn ===== */
.msg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.msg-back { display: none; } /* nút quay lại — chỉ hiện trên di động */
@media (max-width: 720px) {
  /* Mobile: 1 cột. Chưa chọn ai → hiện danh sách; mở hội thoại → hiện khung chat. */
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout[data-view="list"] .msg-chat { display: none; }
  .msg-layout[data-view="thread"] .msg-list { display: none; }
  .msg-list, .msg-chat { max-height: none; }
  .msg-chat { min-height: 70vh; max-height: 78vh; }
  .msg-back {
    display: inline-grid; place-items: center; width: 36px; height: 36px;
    border-radius: 10px; color: var(--muted); flex-shrink: 0;
  }
  .msg-back:hover { background: var(--bg-3); color: var(--text); }
  .msg-back svg { width: 22px; height: 22px; }
}

/* Phân trang */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination .dots {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted);
}
.pagination a:hover { border-color: rgba(16,185,129,.4); color: var(--accent-2); }
.pagination a.active { background: var(--accent-d); color: #fff; border-color: var(--accent-d); }
.pagination .dots { background: none; border: none; }

/* Ô tìm kiếm */
.search-bar { display: flex; gap: 8px; margin-bottom: 18px; }
.search-bar input { flex: 1; }

/* ===== Kit & Logo nổi bật (trang chủ) ===== */
.kit-home-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.kit-home-card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.kit-home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,.5);
  box-shadow: 0 12px 28px -14px rgba(16,185,129,.5);
}
.kit-home-limited { border-color: rgba(251,191,36,.5); }
.kit-home-limited:hover { border-color: rgba(251,191,36,.8); box-shadow: 0 12px 28px -14px rgba(251,191,36,.5); }
.kit-home-thumb { position: relative; aspect-ratio: 1; background: var(--bg-3); }
.kit-home-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-home-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 54px; }
.kit-home-type { position: absolute; top: 10px; left: 10px; font-size: 11px; }
.kit-home-pin { position: absolute; top: 8px; right: 10px; font-size: 15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.kit-home-badge { position: absolute; bottom: 10px; right: 10px; font-size: 11px; }
.kit-home-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kit-home-name {
  font-weight: 700; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kit-home-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.kit-home-price { font-weight: 800; color: var(--accent-2); font-size: 14px; }
.kit-home-cat { font-size: 11px; color: var(--dim); background: var(--bg-3); padding: 2px 8px; border-radius: 9999px; }
@media (max-width: 900px) { .kit-home-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kit-home-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ===== Card quà tặng (trang đổi quà) ===== */
.gift-card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gift-card:hover {
  transform: translateY(-4px); border-color: rgba(251,191,36,.5);
  box-shadow: 0 14px 30px -14px rgba(251,191,36,.45);
}
.gift-thumb { position: relative; aspect-ratio: 4/3; background: var(--bg-3); overflow: hidden; }
.gift-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gift-card:hover .gift-thumb img { transform: scale(1.06); }
.gift-thumb .gift-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 52px;
  background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(16,185,129,.08)); }
/* badge giá nổi bật ở góc ảnh */
.gift-price-badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1c1917;
  font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 9999px;
  box-shadow: 0 4px 12px -4px rgba(251,191,36,.6); display: flex; align-items: center; gap: 4px;
}
.gift-free-badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #059669, #34d399); color: #fff;
  font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 9999px;
}
.gift-corner { position: absolute; top: 10px; right: 10px; font-size: 11px; }
.gift-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gift-name { font-weight: 700; font-size: 15px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.gift-stock { font-size: 12px; color: var(--dim); }
.gift-stock.low { color: #fb7185; font-weight: 600; }

/* ===== Dòng chữ chạy quảng bá (marquee) ===== */
.promo-ticker {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, rgba(251,191,36,.14), rgba(16,185,129,.10));
  border: 1px solid rgba(251,191,36,.3); border-radius: 12px;
  margin: 16px 0 4px; padding: 0; overflow: hidden;
}
.promo-ticker .promo-tag {
  flex: 0 0 auto; background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1c1917;
  font-weight: 800; font-size: 13px; padding: 9px 14px; display: flex; align-items: center; gap: 6px;
}
.promo-track { flex: 1; overflow: hidden; white-space: nowrap; position: relative; }
.promo-move { display: inline-block; padding-left: 100%; animation: promo-scroll 22s linear infinite; }
.promo-ticker:hover .promo-move { animation-play-state: paused; }
.promo-move a { color: var(--text); font-weight: 600; font-size: 14px; margin-right: 48px; }
.promo-move a:hover { color: var(--accent-2); }
.promo-move .sep { color: var(--accent-2); margin-right: 48px; }
@keyframes promo-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 560px) { .promo-ticker .promo-tag span.txt { display: none; } }

/* ===== Banner quảng cáo + layout 2 cột trang chủ ===== */
.home-layout { display: block; }
.home-layout.has-aside { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.home-main { min-width: 0; }
.home-aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.ad-top { margin: 16px 0 4px; }
.ad-item { border-radius: 12px; overflow: hidden; }
.ad-item.ad-image img { width: 100%; height: auto; display: block; border-radius: 12px; }
.ad-top .ad-item.ad-image img { max-height: 140px; object-fit: cover; }
.ad-item.ad-code { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px; text-align: center; }
.home-aside .ad-item { border: 1px solid var(--border); }
@media (max-width: 960px) {
  /* Màn hẹp: cột phải xuống dưới nội dung, trải ngang */
  .home-layout.has-aside { grid-template-columns: 1fr; }
  .home-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .home-aside .ad-item { flex: 1; min-width: 240px; }
}
@media (max-width: 560px) {
  .home-aside { flex-direction: column; }
}

/* ===== Quảng cáo trên trang cầu thủ + khoá chỉ số (blur) ===== */
.ad-slot { display: flex; flex-direction: column; gap: 12px; }
.ad-players-top .ad-item.ad-image img,
.ad-players-bottom .ad-item.ad-image img { max-height: 140px; object-fit: cover; }
.ad-inline-row td { padding: 10px 0 !important; background: transparent; }
.ad-inline-row .ad-item.ad-image img { max-height: 110px; object-fit: cover; }
/* Số giả + blur: khêu gợi "có dữ liệu", giá trị KHÔNG thật (chống cào). */
.stat-locked {
  filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
  opacity: .85;
  pointer-events: none;
}

/* ===== Popup quảng cáo: thẻ nổi góc dưới-phải (slide-in, an toàn SEO) ===== */
.ad-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 320px;
  max-width: calc(100vw - 36px);
  background: var(--bg-2, #18181b);
  border: 1px solid var(--border, #27272a);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  overflow: hidden;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s;
}
.ad-popup.show { transform: translateY(0); opacity: 1; }
.ad-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ad-popup-close:hover { background: rgba(0, 0, 0, .8); }
.ad-popup-body .ad-item { border-radius: 0; }
.ad-popup-body .ad-item.ad-image img { width: 100%; height: auto; display: block; }
.ad-popup-body .ad-item.ad-code { padding: 12px; }
/* Video nhúng (YouTube/TikTok) trong popup co giãn đúng khung */
.ad-popup-body iframe { width: 100%; border: 0; display: block; }
@media (max-width: 480px) {
  .ad-popup { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
}

/* ===== Bàn thắng đẹp: bố cục video + bình luận (responsive) ===== */
.goal-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.goal-comments { border-left: 1px solid var(--border); padding-left: 14px; }
@media (max-width: 720px) {
  /* Mobile: xếp dọc — video full chiều rộng ở trên, bình luận xuống dưới */
  .goal-layout { grid-template-columns: 1fr; }
  .goal-comments { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 14px; }
}

/* ===== Khung video nhúng (YouTube/TikTok) — responsive + fix chạm trên iOS ===== */
/* KHÔNG dùng overflow:hidden + transform trên khung: chính "vùng cắt" đó khiến
   Safari iOS chặn thao tác chạm vào iframe. Thay vào đó bo góc trực tiếp lên iframe
   -> không tạo clipping context, chạm/bấm play xuyên tới iframe ở mọi trình duyệt. */
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #000;
}
.video-frame--vertical { aspect-ratio: 9/16; max-width: 325px; margin: 0 auto; }
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* ===== Bục giải thi đua (podium top 3) ===== */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 8px 0 24px; flex-wrap: nowrap; }
.podium-col { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 200px; }
.podium-cup { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.podium-name {
  font-weight: 800; font-size: 14px; text-align: center; margin-bottom: 2px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.podium-score { font-size: 12px; color: #fbbf24; font-weight: 700; margin-bottom: 8px; }
.podium-empty { color: var(--dim); font-weight: 600; }
.podium-block {
  width: 100%; border-radius: 10px 10px 0 0; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 30px; position: relative;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25);
}
.podium-1 .podium-block { height: 130px; background: linear-gradient(180deg,#fbbf24,#d97706); }
.podium-2 .podium-block { height: 100px; background: linear-gradient(180deg,#cbd5e1,#94a3b8); }
.podium-3 .podium-block { height: 78px;  background: linear-gradient(180deg,#f0a868,#c2703a); }
.podium-prize {
  font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.3;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.podium-prize img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--bg-3); }
@media (max-width: 480px) {
  .podium-cup { font-size: 26px; }
  .podium-1 .podium-block { height: 100px; } .podium-2 .podium-block { height: 78px; } .podium-3 .podium-block { height: 60px; }
  .podium-name { font-size: 12px; }
}

/* Card giải thưởng thi đua (có ảnh) */
.cprize-card { flex: 1; min-width: 150px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-align: center; }
.cprize-thumb { aspect-ratio: 16/10; background: var(--bg-3); }
.cprize-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cprize-thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 36px; }
.cprize-body { padding: 10px 12px; }


/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: none; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--accent-d); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-3); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(16,185,129,0.4); color: var(--accent-2); }
.btn-block { width: 100%; }
.btn:disabled { background: var(--bg-3); color: var(--dim); cursor: not-allowed; transform: none; }

/* Nút đăng nhập bằng Google + dải "hoặc" ngăn cách (trang login/register) */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: #fff; color: #1f2937; border: 1px solid var(--border);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-google:hover { background: #f3f4f6; transform: translateY(-1px); }
.btn-google svg { flex: 0 0 auto; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 0;
  color: var(--dim); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ===== Hero (trang chủ) ===== */
.hero {
  position: relative; overflow: hidden;
  border-radius: 20px; margin: 18px 0;
  background:
    linear-gradient(115deg, rgba(9,9,11,0.96) 0%, rgba(9,9,11,0.7) 45%, rgba(5,46,35,0.55) 100%),
    url("https://picsum.photos/seed/dlshero/1400/600") center/cover no-repeat;
  border: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 320px at 75% 0%, rgba(16,185,129,0.28), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 44px 40px; max-width: 640px; }
.hero h1 { font-size: 38px; line-height: 1.1; font-weight: 900; letter-spacing: -1px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
.hero h1 .accent { color: var(--accent-2); }
.hero p { margin-top: 12px; color: #d4d4d8; font-size: 16px; max-width: 520px; }
.hero .actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-glow {
  position: absolute; right: -80px; bottom: -80px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(16,185,129,0.35), transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ===== Section heading ===== */
.section { margin: 40px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.section-head h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head .more { color: var(--accent-2); font-size: 14px; font-weight: 600; }
.section-head .bar { width: 4px; height: 22px; border-radius: 4px; background: var(--accent); }

/* ===== Stat strip (trang chủ) ===== */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0;
}
.stat-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; text-align: left;
  position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
/* dải sáng mờ ở góc theo màu nhấn của từng ô */
.stat-box::after {
  content: ""; position: absolute; top: -40%; right: -20%;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--sc, var(--accent)); opacity: .08; filter: blur(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--sc, var(--accent));
  box-shadow: 0 10px 26px -12px var(--sc, var(--accent));
}
.stat-box:hover::after { opacity: .18; transform: scale(1.25); }
.stat-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--sc, var(--accent));
  background: color-mix(in srgb, var(--sc, var(--accent)) 14%, transparent);
  transition: transform .18s ease;
}
.stat-box:hover .stat-icon { transform: scale(1.08) rotate(-4deg); }
.stat-icon svg { width: 24px; height: 24px; }
.stat-text { min-width: 0; }
.stat-box .num {
  font-size: 28px; font-weight: 900; line-height: 1.1;
  color: var(--sc, var(--accent-2));
}
.stat-box .label { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* màu nhấn riêng cho từng ô */
.stat-posts    { --sc: #34d399; } /* emerald */
.stat-accounts { --sc: #38bdf8; } /* sky */
.stat-tours    { --sc: #fbbf24; } /* amber */
.stat-users    { --sc: #a78bfa; } /* violet */

@media (max-width: 640px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-box { padding: 14px; gap: 12px; }
  .stat-icon { width: 40px; height: 40px; }
  .stat-box .num { font-size: 23px; }
}

/* ===== Grid ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== Card chung ===== */
.card {
  background: rgba(24,24,27,0.6); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .3s;
}
.card:hover {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 12px 40px -12px rgba(16,185,129,0.25);
  transform: translateY(-2px);
}
.card-body { padding: 18px; }

/* ===== Post card ===== */
.post-card .post-head { display: flex; align-items: center; gap: 12px; }

/* ===== Post row (layout diễn đàn: nội dung trái, thumbnail phải) ===== */
.post-row { display: flex; gap: 16px; padding: 16px; align-items: stretch; }
.post-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-row-head { display: flex; align-items: center; gap: 8px; }
.post-row-head .post-author { font-weight: 600; font-size: 13px; color: var(--text); }
.post-row-head .post-time { font-size: 12px; color: var(--dim); }
.post-row-title { font-size: 18px; font-weight: 800; margin-top: 10px; color: var(--text); }
.post-row:hover .post-row-title { color: var(--accent-2); }
.post-featured { border-color: rgba(245,158,11,.5); box-shadow: 0 0 0 1px rgba(245,158,11,.3), 0 4px 20px rgba(245,158,11,.12); }
.post-row-thumb {
  flex-shrink: 0; width: 200px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); align-self: stretch;
}
.post-row-thumb img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; }

/* Tab thanh ngang (Mới nhất / Nổi bật / Thịnh hành) */
.feed-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.feed-tabs a {
  padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.feed-tabs a:hover { color: var(--text); }
.feed-tabs a.active { color: var(--accent-2); border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .post-row { flex-direction: column-reverse; }
  .post-row-thumb { width: 100%; }
  .post-row-thumb img { aspect-ratio: 16/9; min-height: 0; }
}

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  display: grid; place-items: center; color: #fff; font-weight: 700;
  border: 2px solid var(--bg-3); object-fit: cover;
}
.avatar-sm { width: 30px; height: 30px; font-size: 13px; }
.post-author { font-weight: 600; font-size: 14px; }
.post-time { color: var(--dim); font-size: 12px; }
.post-card h3 { margin-top: 14px; font-size: 18px; font-weight: 800; }
.post-card h3:hover { color: var(--accent-2); }
.post-excerpt { color: var(--muted); font-size: 14px; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-stats { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.post-stats span { display: flex; align-items: center; gap: 5px; }

/* ===== Tags & badges ===== */
.tag, .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 9999px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.tag-emerald, .badge-emerald { background: rgba(16,185,129,.15); color: #34d399; border-color: rgba(16,185,129,.3); }
.tag-sky, .badge-sky { background: rgba(14,165,233,.15); color: #38bdf8; border-color: rgba(14,165,233,.3); }
.tag-amber, .badge-amber { background: rgba(245,158,11,.15); color: #fbbf24; border-color: rgba(245,158,11,.3); }
.tag-rose, .badge-rose { background: rgba(244,63,94,.15); color: #fb7185; border-color: rgba(244,63,94,.3); }
.tag-violet, .badge-violet { background: rgba(139,92,246,.15); color: #a78bfa; border-color: rgba(139,92,246,.3); }
.tag-zinc, .badge-zinc { background: rgba(82,82,91,.2); color: #a1a1aa; border-color: rgba(82,82,91,.4); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ===== Account card ===== */
.acc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
.acc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .acc-media img { transform: scale(1.05); }
.acc-media .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 50%); }
.acc-ovr {
  position: absolute; top: 12px; right: 12px; text-align: center;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  border-radius: 12px; padding: 6px 12px; border: 1px solid rgba(245,158,11,.4);
}
.acc-ovr .n { font-size: 20px; font-weight: 900; color: #fbbf24; line-height: 1; }
.acc-ovr .l { font-size: 9px; color: var(--muted); text-transform: uppercase; }
.acc-badge-pos { position: absolute; top: 12px; left: 12px; }
.acc-team { position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.acc-resources { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.res-box { background: rgba(39,39,42,.5); border-radius: 10px; padding: 8px; text-align: center; }
.res-box .v { font-weight: 700; font-size: 14px; }
.res-box .l { font-size: 10px; color: var(--dim); }
.acc-foot { display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.price { font-size: 18px; font-weight: 900; color: var(--accent-2); }
.price-label { font-size: 11px; color: var(--dim); }

/* ===== Tournament card ===== */
.tour-banner { position: relative; aspect-ratio: 21/9; overflow: hidden; background: linear-gradient(135deg,#064e3b,#18181b); }
.tour-banner img { width: 100%; height: 100%; object-fit: cover; }
.tour-banner .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 60%); }
.tour-prize { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.5); padding: 5px 10px; border-radius: 8px; font-weight: 700; color: #fbbf24; font-size: 14px; }
.progress { height: 8px; background: var(--bg-3); border-radius: 9999px; overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--accent-d), var(--accent-2)); }
.progress.full > div { background: linear-gradient(90deg, #d97706, #fbbf24); }
.meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }

/* ===== Giải đấu gọn (trang chủ) ===== */
.tour-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tour-mini {
  display: flex; gap: 12px; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); transition: transform .18s ease, border-color .18s ease;
}
.tour-mini:hover { transform: translateY(-2px); border-color: rgba(16,185,129,.4); }
.tour-mini-thumb {
  flex: 0 0 auto; width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg,#064e3b,#18181b);
}
.tour-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tour-mini-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 36px; }
.tour-mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tour-mini-top { display: flex; align-items: flex-start; gap: 8px; }
.tour-mini-title {
  flex: 1; min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tour-mini-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.tour-mini-prize { color: #fbbf24; font-weight: 700; }
.progress.mini { height: 5px; margin-top: auto; }
@media (max-width: 720px) { .tour-mini-grid { grid-template-columns: 1fr; } }

/* ===== Trang Giải đấu (tournaments.php) ===== */
.tour-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.tour-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 0; }

/* Bộ chuyển số cột xem */
.tour-views { display: inline-flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.tour-view-btn {
  display: grid; place-items: center; width: 34px; height: 30px; border-radius: 7px;
  background: transparent; border: 0; cursor: pointer; color: var(--dim); font-size: 14px;
  transition: all .15s ease;
}
.tour-view-btn:hover { color: var(--text); background: var(--bg-3); }
.tour-view-btn.active { background: var(--accent-d); color: #fff; }

/* Lưới giải đấu co giãn theo số cột (mặc định 2). Tự về 1 cột trên mobile. */
.tour-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.tour-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.tour-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
/* Cột càng nhiều, chữ/padding gọn lại cho cân đối */
.tour-grid[data-cols="3"] .card-body,
.tour-grid[data-cols="4"] .card-body { padding: 14px; }
.tour-grid[data-cols="4"] .tour-title { font-size: 16px !important; }
@media (max-width: 1100px) { .tour-grid[data-cols="4"] { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .tour-grid[data-cols="3"], .tour-grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .tour-grid, .tour-grid[data-cols="3"], .tour-grid[data-cols="4"] { grid-template-columns: 1fr; } }
@media (max-width: 760px)  { .tour-views { display: none; } } /* mobile chỉ 1 cột, ẩn nút chọn */

.tour-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(16,185,129,.18), transparent 55%),
    linear-gradient(135deg, #0b2c22 0%, #18181b 60%);
  padding: 28px 26px; margin-bottom: 22px;
}
.tour-hero::after {
  content: "\1F3C6"; position: absolute; right: 20px; bottom: -18px;
  font-size: 120px; opacity: .12; line-height: 1; transform: rotate(-8deg);
  pointer-events: none;
}
.tour-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.tour-hero p { color: var(--muted); margin-top: 6px; max-width: 560px; }
.tour-hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1; }
.tour-stat { display: flex; flex-direction: column; }
.tour-stat b { font-size: 22px; font-weight: 800; color: var(--accent-2); line-height: 1; }
.tour-stat span { font-size: 12px; color: var(--dim); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }

/* Chip lọc dạng pill */
.tour-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tour-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 9999px; font-size: 13px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted);
  transition: all .18s ease; cursor: pointer;
}
.tour-chip:hover { border-color: rgba(16,185,129,.45); color: var(--text); transform: translateY(-1px); }
.tour-chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(16,185,129,.6);
}

/* Banner placeholder khi giải chưa có ảnh */
.tour-banner .tour-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 54px; opacity: .35;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(16,185,129,.22), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px);
}
.card:hover .tour-banner img { transform: scale(1.05); }
.tour-banner img { transition: transform .4s ease; }
.tour-prize {
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  border: 1px solid rgba(251,191,36,.35);
}
.card:hover .tour-title { color: var(--accent-2); }
.tour-title { transition: color .18s ease; }
@media (max-width: 640px) {
  .tour-hero { padding: 22px 18px; }
  .tour-hero h1 { font-size: 23px; }
  .tour-hero::after { font-size: 88px; }
}


/* ===== Bracket ===== */
.bracket { display: flex; gap: 32px; overflow-x: auto; padding: 24px;
  background: rgba(24,24,27,.4); border: 1px solid var(--border); border-radius: var(--radius); }
.bracket-round { display: flex; flex-direction: column; min-width: 200px; }
.bracket-round .round-name { text-align: center; margin-bottom: 16px; }
.bracket-round .round-name span { background: var(--bg-3); padding: 4px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.bracket-matches { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 16px; }
.match { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; width: 200px; }
.match.final { border-color: rgba(245,158,11,.4); }
.match-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; }
.match-row + .match-row { border-top: 1px solid var(--border); }
.match-row.winner { background: rgba(16,185,129,.1); }
.match-row .seed { width: 16px; font-size: 10px; color: var(--dim); text-align: center; }
.match-row .tname { flex: 1; }
.match-row.winner .tname { color: var(--accent-2); font-weight: 700; }
.match-row .tbd { font-style: italic; color: var(--dim); }
.match-row .score { width: 20px; text-align: center; font-weight: 700; color: var(--muted); }
.match-note { width: 200px; font-size: 11px; padding: 4px 8px; border-radius: 8px; margin-top: 2px; }
.match-note.pending { background: rgba(245,158,11,.12); color: #fcd34d; }
.match-note.disputed { background: rgba(244,63,94,.12); color: #fb7185; }

/* Danh sách đội đã đăng ký giải */
.reg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.reg-item { transition: border-color .2s ease, transform .2s ease; }
.reg-item:hover { transform: translateY(-2px); }
.reg-item.reg-mine { border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.06); }
.match-report { width: 200px; margin-top: 4px; }
.match-report summary { cursor: pointer; font-size: 12px; color: var(--accent-2); font-weight: 600; }
.match-report summary::-webkit-details-marker { display: none; }
.match-report input { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; color: var(--text); width: 100%; }
.match-confirm { width: 200px; margin-top: 6px; padding: 8px; background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.25); border-radius: 10px; }
.match-confirm input { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; color: var(--text); width: 100%; }

/* Tên đội bấm được -> mở chat hẹn giờ */
.match-row .tname-chat { flex: 1; text-align: left; background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--accent-2); cursor: pointer; }
.match-row .tname-chat:hover { text-decoration: underline; }
.match-row.winner .tname-chat { color: var(--accent-2); font-weight: 700; }

/* Popup chat hẹn giờ thi đấu */
.chat-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.chat-modal[hidden] { display: none; }
.chat-box { width: 100%; max-width: 420px; height: 70vh; max-height: 560px; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.chat-close { background: none; border: none; color: var(--dim); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-close:hover { color: var(--text); }
.chat-contact { font-size: 13px; color: var(--accent-2); font-weight: 600; margin-top: 3px; }
.chat-contact a { color: inherit; text-decoration: none; }
.chat-contact a:hover { text-decoration: underline; }
.chat-thread { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-empty { margin: auto; color: var(--dim); font-size: 14px; text-align: center; }
.chat-msg { display: flex; }
.chat-msg.mine { justify-content: flex-end; }
.chat-msg .bubble { max-width: 75%; padding: 8px 12px; border-radius: 12px; font-size: 14px; background: var(--bg-3); }
.chat-msg.mine .bubble { background: var(--accent); color: #04140e; }
.chat-msg .bubble .t { display: block; font-size: 10px; opacity: .7; margin-top: 2px; text-align: right; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); }

/* Khối phần thưởng có ảnh quà (thẻ cuộc thi bàn thắng đẹp) */
.prize-showcase { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px;
  border: 1px solid rgba(245,158,11,.28); border-radius: 12px;
  background: linear-gradient(120deg, rgba(245,158,11,.12), rgba(245,158,11,.03)); }
.prize-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.prize-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prize-thumb .ph { font-size: 28px; }
.prize-info { min-width: 0; }
.prize-cap { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.prize-name { font-size: 14px; font-weight: 800; color: #fbbf24; margin-top: 2px; line-height: 1.3; }
.contest-card:hover .prize-thumb img { transform: scale(1.06); }
.prize-thumb img { transition: transform .35s ease; }
/* Bản lớn cho khối phần thưởng ở trang chi tiết cuộc thi */
.prize-showcase-lg { margin-top: 0; }
.prize-showcase-lg .prize-thumb { width: 72px; height: 72px; }
.prize-showcase-lg .prize-name { font-size: 16px; }

/* ===== Detail layouts ===== */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.panel { background: rgba(24,24,27,.6); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h1 { font-size: 22px; font-weight: 800; }
.sticky { position: sticky; top: 80px; }
.prose { white-space: pre-line; color: #d4d4d8; font-size: 15px; line-height: 1.7; }

/* Player mini cards */
.players { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.player {
  display: flex; align-items: center; gap: 10px;
  background: rgba(39,39,42,.5); border: 1px solid var(--border); border-radius: 12px; padding: 10px;
}
.player .pavatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.player .pname { font-weight: 600; font-size: 14px; }
.player .ppos { font-size: 12px; color: var(--dim); }
.player .povr { margin-left: auto; font-weight: 900; color: #fbbf24; }

/* ===== Comments ===== */
.comment { display: flex; gap: 12px; margin-top: 18px; }
.comment .c-body { flex: 1; }
.comment .c-bubble { background: rgba(39,39,42,.6); border-radius: 16px; border-top-left-radius: 4px; padding: 10px 14px; }
.comment .c-author { font-weight: 600; font-size: 14px; }
.comment .c-time { font-size: 12px; color: var(--dim); margin-left: 8px; }
.comment .c-text { margin-top: 4px; font-size: 14px; color: #d4d4d8; }
.comment .c-actions { display: flex; gap: 16px; margin-top: 6px; padding-left: 8px; font-size: 12px; color: var(--dim); }
.comment .replies { margin-top: 16px; border-left: 1px solid var(--border); padding-left: 18px; }

/* ===== Forms ===== */
textarea, input[type=text], input[type=password], input[type=email], input[type=number],
input[type=date], input[type=datetime-local], input[type=time], input[type=search],
input[type=tel], input[type=url], select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; color: var(--text); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s;
  color-scheme: dark; /* để ô ngày/giờ + icon lịch theo nền tối */
}
textarea:focus, input:focus, select:focus {
  border-color: rgba(16,185,129,.6); box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
/* Icon lịch/đồng hồ của input ngày-giờ: làm sáng cho hợp nền tối */
input[type=date]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(.7); cursor: pointer;
}
input[type=date]::-webkit-calendar-picker-indicator:hover,
input[type=datetime-local]::-webkit-calendar-picker-indicator:hover,
input[type=time]::-webkit-calendar-picker-indicator:hover {
  filter: invert(1) opacity(1);
}
label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
.form-row { margin-bottom: 16px; }

/* ===== Sidebar (forum) ===== */
.layout-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.side-nav { background: rgba(24,24,27,.6); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.side-nav .side-title { padding: 8px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--dim); }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.side-nav a:hover { background: var(--bg-3); color: var(--text); }
.side-nav a.active { background: rgba(16,185,129,.15); color: var(--accent-2); }
.side-nav a .count { margin-left: auto; font-size: 12px; color: var(--dim); }

/* ===== Tables (admin) ===== */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 60px); }
.admin-side { background: rgba(24,24,27,.4); border-right: 1px solid var(--border); padding: 12px 8px; }
.admin-side .side-title { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--dim); }
/* Nhóm thứ 2 trở đi: cách trên + gạch phân cách nhẹ cho dễ phân khối */
.admin-side .side-title:not(:first-child) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.admin-side a, .admin-side button { display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; transition: background .2s, color .2s; }
.admin-side a:hover, .admin-side button:hover { background: var(--bg-3); color: var(--text); }
.admin-side a.active { background: rgba(16,185,129,.15); color: var(--accent-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.admin-main { padding: 24px 28px; }
table { width: 100%; border-collapse: collapse; background: rgba(24,24,27,.6);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
thead th { text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase;
  color: var(--dim); border-bottom: 1px solid var(--border); }
tbody td { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 14px; }
tbody tr:hover { background: rgba(39,39,42,.4); }
.row-actions { display: flex; gap: 4px; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--dim); padding: 7px;
  border-radius: 8px; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--bg-3); color: var(--accent-2); }
.icon-btn.danger:hover { color: #fb7185; }

/* dashboard stat cards */
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.dash-card { background: rgba(24,24,27,.6); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.dash-card .num { font-size: 28px; font-weight: 900; margin-top: 10px; }
.dash-card .label { font-weight: 600; font-size: 14px; }
.dash-card .sub { font-size: 12px; color: var(--dim); }

/* alert */
.alert { display: block; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; margin: 12px 0; }
.alert-warn { border: 1px solid rgba(245,158,11,.2); background: rgba(245,158,11,.05); color: #fcd34d; }
.alert-ok { border: 1px solid rgba(16,185,129,.2); background: rgba(16,185,129,.05); color: #6ee7b7; }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 30px 0; color: var(--dim); font-size: 13px; text-align: center; }

/* gallery thumbs */
.thumbs { display: flex; gap: 8px; padding: 12px; flex-wrap: wrap; }
.thumbs img { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.thumbs img:hover { border-color: var(--accent); }
.empty { text-align: center; color: var(--dim); padding: 48px; border: 1px dashed var(--border); border-radius: var(--radius); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { border-right: none; border-bottom: 1px solid var(--border); }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: 32px; }
  .hero-inner { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .players { grid-template-columns: repeat(2,1fr); }
  .nav a span { display: none; }
  .dash-stats { grid-template-columns: repeat(2,1fr); }
}

/* ===== Khu thông báo từ ban quản trị (trang chủ) ===== */
.ann-panel { background: rgba(24,24,27,.6); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.ann-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(16,185,129,.12), rgba(39,39,42,.5)); }
.ann-head h2 { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; letter-spacing: .5px; color: #ecfdf5; }
.ann-head-icon { font-size: 18px; line-height: 1; }
.ann-head-link { color: var(--accent-2); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ann-list { display: flex; flex-direction: column; }
.ann-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(63,63,70,.4); text-decoration: none; transition: background .15s, padding-left .15s; }
.ann-row:last-child { border-bottom: none; }

/* ===== Sân bóng dựng đội hình (Squad Builder) ===== */
.sb-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 860px) { .sb-layout { grid-template-columns: 1fr; } }

/* Sân dọc: tỉ lệ ~ 68:105 (chuẩn sân), vạch kẻ bằng SVG nền. */
.pitch {
  /* Sân dọc cao ~1.5x rộng -> giới hạn bề rộng theo CẢ 400px lẫn chiều cao khung
     nhìn (trừ chỗ cho header + thanh công cụ) để không bao giờ tràn quá màn hình. */
  position: relative; width: 100%; max-width: min(400px, calc((100vh - 220px) * 0.68)); margin: 0 auto;
  aspect-ratio: 68 / 100; border-radius: 14px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, #2e8b57 0 10%, #2f9159 10% 20%);
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  transition: filter .2s;
}
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Khối cầu thủ dịch lên/xuống theo lối đá (transform áp qua biến --shift). */
.pitch-players { position: absolute; inset: 0; transform: translateY(var(--shift, 0)); transition: transform .3s ease; }

/* Token 1 cầu thủ đặt tuyệt đối theo toạ độ %. */
.pl-token {
  position: absolute; transform: translate(-50%, -50%);
  width: 62px; text-align: center; cursor: pointer; user-select: none;
}
.pl-token .pl-photo {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto;
  background: rgba(9,9,11,.6) center/cover no-repeat; border: 2px solid #fff;
  display: grid; place-items: center; font-size: 18px; position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.pl-token.filled .pl-photo { border-color: var(--accent-2); }
.pl-token.active .pl-photo { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.5); }
.pl-ovr {
  position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 3px;
  border-radius: 10px; background: #fbbf24; color: #111; font-size: 11px; font-weight: 900;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.pl-pos { font-size: 10px; font-weight: 700; color: #d1fae5; margin-top: 2px; letter-spacing: .5px; }
.pl-name {
  font-size: 11px; font-weight: 600; color: #fff; margin-top: 1px; line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-name.empty { color: rgba(255,255,255,.7); }

/* Nút chọn lối đá */
.style-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.style-tab {
  flex: 1; min-width: 90px; padding: 8px 6px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2); text-align: center;
  font-size: 13px; font-weight: 600; transition: all .15s;
}
.style-tab .st-ic { font-size: 18px; display: block; margin-bottom: 2px; }
.style-tab.on { border-color: var(--accent-2); background: rgba(16,185,129,.12); color: var(--accent-2); }

/* Thẻ chiến thuật */
.tactic-card { font-size: 13px; line-height: 1.55; }
.tactic-card .tc-row { padding: 8px 0; border-bottom: 1px solid rgba(63,63,70,.4); }
.tactic-card .tc-row:last-child { border-bottom: none; }
.tactic-card .tc-label { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .5px; margin-bottom: 2px; }
.tactic-card .tc-good { color: #6ee7b7; }
.tactic-card .tc-bad { color: #fca5a5; }

/* Kết quả tìm cầu thủ (có ảnh) */
.psearch { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.psearch:hover { background: var(--bg-3); }
.psearch .ps-photo { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3) center/cover no-repeat; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; }
.psearch .ps-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psearch .ps-ovr { color: var(--accent-2); font-weight: 700; font-size: 13px; }
.ann-row:hover { background: rgba(39,39,42,.55); padding-left: 22px; }
.ann-pin { flex-shrink: 0; font-size: 13px; }
.ann-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; overflow: hidden; }
.ann-label { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 2px 9px; }
.ann-icon { flex-shrink: 0; font-size: 15px; line-height: 1; }
.ann-text { color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ann-row:hover .ann-text { color: #fff; }
.ann-date { flex-shrink: 0; color: var(--dim); font-size: 13px; }
.ann-views { flex-shrink: 0; color: var(--dim); font-size: 13px; min-width: 52px; text-align: right; }
.ann-author { flex-shrink: 0; min-width: 56px; text-align: right; color: #60a5fa; font-size: 13px; font-weight: 700; }
@media (max-width: 720px) {
  .ann-date { display: none; }
  .ann-views { display: none; }
  .ann-title { font-size: 14px; }
  .ann-head-link { display: none; }
}

/* ===== Top 5 cầu thủ tìm nhiều nhất trong ngày (5 ô 1 hàng) ===== */
.top-search-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.top-search-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 14px 10px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border); transition: border-color .18s, transform .18s;
}
.top-search-card:hover { border-color: rgba(251,146,60,.5); transform: translateY(-2px); }
.top-search-rank {
  position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; color: #fdba74;
  background: rgba(251,146,60,.15); border-radius: 6px; padding: 1px 6px;
}
.top-search-ovr { font-size: 26px; font-weight: 900; line-height: 1; color: var(--accent-2); margin-top: 6px; }
.top-search-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.top-search-pos { font-size: 11px; color: var(--dim); }
.top-search-cnt { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) {
  /* Màn hẹp: cuộn ngang để không tràn, mỗi ô đủ rộng đọc tên */
  .top-search-row {
    display: flex; grid-template-columns: none; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; scrollbar-width: none;
  }
  .top-search-row::-webkit-scrollbar { display: none; }
  .top-search-card {
    flex: 0 0 40%; min-width: 132px; scroll-snap-align: start;
    padding: 12px 8px;
  }
  .top-search-ovr { font-size: 22px; }
  .top-search-name { font-size: 12px; }
  .top-search-rank { font-size: 10px; padding: 1px 5px; }
}

/* ===== Layout so sánh cầu thủ (biểu đồ + bảng) ===== */
.compare-layout { margin-top: 20px; }
.compare-layout.has-radar { display: grid; grid-template-columns: minmax(360px, 460px) 1fr; gap: 18px; align-items: start; }
.compare-chart .radar-panel { margin: 0; position: sticky; top: 76px; }
.compare-table { min-width: 0; }
.compare-table .players-table { min-width: auto; }
@media (max-width: 920px) {
  /* Màn hẹp: xếp dọc — biểu đồ trên, bảng dưới */
  .compare-layout.has-radar { grid-template-columns: 1fr; }
  .compare-chart .radar-panel { position: static; }
}

/* ===== Bảng tra cứu cầu thủ (nhiều cột chỉ số) ===== */
.players-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.players-table th, .players-table td { padding: 9px 8px; }
.players-table th[style*="center"], .players-table td[style*="center"] { padding-left: 4px; padding-right: 4px; font-variant-numeric: tabular-nums; }
.players-table thead th { position: sticky; top: 0; background: var(--bg-2); font-size: 12px; }

/* ===== Tin acc nổi bật (featured) ===== */
.card-featured { border-color: rgba(245,158,11,.5); box-shadow: 0 0 0 1px rgba(245,158,11,.3), 0 4px 20px rgba(245,158,11,.12); }
.acc-featured-tag { position: absolute; top: 12px; right: 12px; background: linear-gradient(90deg,#f59e0b,#fbbf24); color: #1c1304; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 7px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
