/* SaiGon Fanleague: giao diện chính. Màu chủ đạo theo banner giải (đỏ + đen than) */
:root {
    --brand: #e0172d;
    --brand-dark: #b10f20;
    --ink: #10131a;
    --ink-2: #1a1f2b;
    --paper: #f4f5f7;
    --line: #e3e6eb;
    --muted: #6b7280;
    --win: #16a34a;
    --draw: #9ca3af;
    --loss: #dc2626;
    --radius: 14px;
}
body { font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--paper); color: var(--ink); }
a { color: var(--brand); }
.text-brand { color: var(--brand) !important; }
.text-white-75 { color: rgba(255,255,255,.78) !important; }

/* Nút */
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* Header */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 1030; border-bottom: 3px solid var(--brand); }
.site-header .nav-link { font-weight: 600; color: rgba(255,255,255,.75); }
.site-header .nav-link.active, .site-header .nav-link:hover { color: #fff; }
.site-header .nav-link.active { box-shadow: inset 0 -2px 0 var(--brand); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { background: var(--brand); color: #fff; font-weight: 900; font-style: italic; border-radius: 8px; padding: .15rem .45rem; font-size: 1.05rem; transform: skewX(-8deg); }
.brand-text { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; }
.brand-text small { color: var(--brand); font-weight: 900; }
.user-chip { white-space: nowrap; }
.brand-logo { height: 46px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.footer-logo { height: 54px; width: auto; }

/* Hero */
.hero { position: relative; background: radial-gradient(circle at 80% 20%, #3a0a10 0%, var(--ink) 60%); color: #fff; padding: 3.5rem 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; filter: blur(6px); transform: scale(1.1); }
.hero-banner { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .4rem; }
.display-title { font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.02; font-size: clamp(2rem, 5vw, 3.4rem); }
.display-title span { color: var(--brand); }

/* Khối chung */
.site-main { min-height: 60vh; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; }
.section-head h2 { font-weight: 800; font-size: 1.35rem; margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; font-size: .9rem; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { font-weight: 900; font-style: italic; text-transform: uppercase; margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.empty-box { background: #fff; border: 1px dashed #cfd5dd; border-radius: var(--radius); padding: 1.25rem; color: var(--muted); display: flex; gap: .75rem; align-items: center; }
.empty-box > i { font-size: 1.6rem; color: var(--brand); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { text-decoration: none; }
.seg-tabs { display: inline-flex; background: #e9ebef; border-radius: 999px; padding: 4px; }
.seg-tabs a { padding: .4rem 1rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.seg-tabs a.active { background: var(--ink); color: #fff; }
.fc-code { display: inline-block; font-weight: 800; font-size: .72rem; letter-spacing: .04em; background: var(--ink); color: #fff; border-radius: 6px; padding: .12rem .45rem; vertical-align: middle; }
.team-logo { object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 1px rgba(16,19,26,.45)); } /* viền mờ giúp logo nền trắng vẫn thấy trên nền sáng */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Huy hiệu trạng thái */
.badge-state { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.badge-state.is-open { background: #dcfce7; color: #166534; }
.badge-state.is-upcoming { background: #eef2ff; color: #3730a3; }
.badge-state.is-closed { background: #f3f4f6; color: #4b5563; }
.badge-state.is-finished { background: var(--ink); color: #fff; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }

/* Thẻ trận */
.fixture-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; height: 100%; }
.fixture-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,19,26,.08); border-color: #cfd5dd; color: var(--ink); }
.fixture-card.is-open { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.fc-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fc-meta { font-size: .78rem; color: var(--muted); margin-right: auto; }
.fc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-top: .8rem; }
.fc-team { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; font-weight: 700; font-size: .95rem; }
.fc-center { text-align: center; min-width: 84px; }
.fc-time { font-size: 1.5rem; font-weight: 900; }
.fc-score { font-size: 1.8rem; font-weight: 900; }
.fc-score span { color: var(--muted); margin: 0 .2rem; }
.fc-date { font-size: .78rem; color: var(--muted); text-transform: capitalize; }
.fc-cta { margin-top: .8rem; text-align: center; font-weight: 700; color: var(--brand); font-size: .9rem; border-top: 1px solid var(--line); padding-top: .6rem; }

/* Lịch thi đấu */
.round-title { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.2rem; border-left: 5px solid var(--brand); padding-left: .6rem; margin-bottom: .75rem; }
.day-head { background: #f8f9fb; font-weight: 700; padding: .55rem 1rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
.sched-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: .75rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sched-row:hover { background: #fafbfc; color: var(--ink); }
.sched-row:last-child { border-bottom: 0; }
.sched-row.is-event { background: #fff7f7; grid-template-columns: 64px 1fr; }
.sr-time { font-weight: 800; line-height: 1.1; }
.sr-time small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.sr-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.sr-team { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.sr-team.home { justify-content: flex-end; text-align: right; }
.sr-score { font-weight: 900; min-width: 54px; text-align: center; color: var(--ink); }
.sr-venue { font-size: .82rem; color: var(--muted); }

/* BXH */
.standings th { font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom-width: 2px; }
.standings td { vertical-align: middle; }
.standings .pos { font-weight: 800; color: var(--muted); }
.standings tbody tr:nth-child(-n+1) .pos { color: var(--brand); }
.standings .pts { font-weight: 900; }
.standings tr.is-highlight td { background: #fff1f2; }
.team-inline { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.team-inline:hover { color: var(--brand); }
.form-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: .7rem; font-weight: 800; color: #fff; margin-right: 2px; }
.form-W { background: var(--win); } .form-D { background: var(--draw); } .form-L { background: var(--loss); }

/* Trang trận */
.match-hero { background: var(--ink); border-radius: var(--radius); overflow: hidden; color: #fff; }
.match-banner { width: 100%; height: auto; display: block; }
.match-board { padding: 1.5rem 1rem 1.75rem; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.mb-meta { display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.mb-meta .fc-code { background: var(--brand); }
.mb-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.mb-team { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 800; font-size: clamp(1rem, 2.5vw, 1.35rem); text-align: center; }
.mb-team:hover { color: #fff; }
.mb-team:hover img { transform: scale(1.05); }
.mb-team img { transition: transform .2s; background: rgba(255,255,255,.06); border-radius: 50%; padding: 6px; }
.mb-center { text-align: center; }
.mb-time, .mb-score { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 900; line-height: 1; }
.mb-score span { color: var(--brand); }
.mb-date { margin-top: .4rem; font-weight: 600; }
.mb-venue { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: .2rem; }

/* Form dự đoán */
.score-picker { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; }
.sp-side { text-align: center; }
.sp-side label { display: block; font-weight: 800; margin-bottom: .4rem; }
.sp-ctrl { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.sp-ctrl input { width: 64px; text-align: center; font-size: 2rem; font-weight: 900; border: 0; outline: 0; -moz-appearance: textfield; }
.sp-ctrl input::-webkit-outer-spin-button, .sp-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-ctrl input.is-invalid { color: var(--loss); }
.sp-btn { width: 40px; height: 56px; border: 0; background: #f3f4f6; font-size: 1.4rem; font-weight: 700; }
.sp-btn:hover { background: #e5e7eb; }
.sp-sep { font-size: 2rem; font-weight: 900; padding-bottom: .6rem; }
.my-pick { text-align: center; padding: .5rem 0; }
.my-pick-score { font-size: 3rem; font-weight: 900; color: var(--brand); line-height: 1.1; }

/* Thống kê */
.stat-total { font-size: .95rem; margin-bottom: .6rem; }
.outcome-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #eef0f3; }
.ob-home { background: var(--brand); } .ob-draw { background: #9ca3af; } .ob-away { background: var(--ink); }
.ob-legend { width: 14px; height: 14px; border-radius: 4px; margin: 0 auto .3rem; }
.score-row { display: grid; grid-template-columns: 60px 1fr 52px; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.score-row .sr-label { font-weight: 800; }
.sr-track { background: #eef0f3; border-radius: 999px; height: 10px; overflow: hidden; }
.sr-track div { background: var(--brand); height: 100%; border-radius: 999px; }
.score-row .sr-val { text-align: right; font-size: .85rem; color: var(--muted); }

/* Người trúng */
.winner-list { list-style: none; padding: 0; margin: 0; }
.winner-list li { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.winner-list li:last-child { border-bottom: 0; }
.medal { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 900; color: #fff; }
.medal-1 { background: #d4a017; } .medal-2 { background: #9ca3af; } .medal-3 { background: #b46a3c; }
.w-name { font-weight: 700; }
.w-phone, .w-time { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.winner-match { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); flex-wrap: wrap; }

/* Trang đội */
.team-hero { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--ink) 55%, var(--team-color)); color: #fff; border-radius: var(--radius); padding: 1.75rem; }
.team-hero img { background: rgba(255,255,255,.08); border-radius: 50%; padding: 8px; }
.team-stats { display: flex; gap: 1.5rem; margin-left: auto; flex-wrap: wrap; }
.team-stats div { text-align: center; }
.team-stats strong { display: block; font-size: 1.7rem; font-weight: 900; }
.team-stats span { font-size: .75rem; text-transform: uppercase; color: rgba(255,255,255,.7); letter-spacing: .06em; }
.tf-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tf-row:last-child { border-bottom: 0; }
.tf-row:hover { color: var(--brand); }
.tf-date { font-weight: 800; width: 52px; line-height: 1.1; }
.tf-date small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
.tf-opp { display: flex; align-items: center; gap: .45rem; flex: 1; min-width: 0; flex-wrap: wrap; }
.tf-score { min-width: 48px; text-align: right; }
.ha-tag { font-size: .68rem; font-weight: 700; background: #eef0f3; color: var(--muted); border-radius: 4px; padding: .05rem .35rem; }

/* Xác thực OTP */
.verify-icon { font-size: 2.6rem; color: var(--brand); }
.verify-summary { background: #f8f9fb; border-radius: 10px; padding: .6rem; font-size: 1.05rem; }
.otp-input { text-align: center; font-size: 2rem; letter-spacing: .6em; font-weight: 800; padding-left: .6em; }

.rules li { margin-bottom: .7rem; line-height: 1.6; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sponsor-group { text-align: center; }
.sponsor-logos { display: flex; gap: 1rem; justify-content: center; align-items: center; }
.sponsor-logos img { height: 44px; width: auto; max-width: 120px; object-fit: contain; }
.sponsor-tier { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.65); margin-top: .4rem; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1.25rem; font-size: .88rem; }

@media (max-width: 767.98px) {
    .sched-row { grid-template-columns: 52px 1fr; }
    .sched-row .sr-state { grid-column: 2; justify-self: start; }
    .sr-team { font-size: .85rem; }
    .sr-team .team-logo { width: 24px; height: 24px; }
    .team-stats { margin-left: 0; }
    .winner-list li { grid-template-columns: 32px 1fr; }
    .winner-list .w-phone, .winner-list .w-time { grid-column: 2; }
    .mb-team img { width: 64px; height: 64px; }
    .mb-teams { gap: .5rem; }
    .mb-venue { font-size: .75rem; }
    .sp-ctrl input { width: 52px; }
    .sp-btn { width: 34px; }
}

/* ===== Slider đầu trang: mỗi slide = thông tin trận (trái) + banner (phải) ===== */
.hero { padding: 2.75rem 0 2.25rem; }
.hero-bg { transition: background-image .6s; }
.hero-slider { position: relative; }
.hero-slide { padding: 0 .25rem; }
.hero-match { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .9rem; }
.hero-match span { font-size: .6em; color: var(--brand); padding: 0 .2em; }
.hero-meta { list-style: none; padding: 0; margin: 0 0 .9rem; color: rgba(255,255,255,.85); }
.hero-meta li { margin-bottom: .3rem; }
.hero-meta i { color: var(--brand); margin-right: .35rem; }
.hero-state { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.hero-media { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: #fff; } /* không dùng bóng lớn vì Owl cắt khung gây viền vuông */
.hero-media:hover { color: #fff; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .4s; }
.hero-media:hover img { transform: scale(1.02); }
/* Khung tự tạo khi trận chưa có banner */
.hero-vs { aspect-ratio: 16 / 9; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.5rem;
    background: linear-gradient(115deg, color-mix(in srgb, var(--c1) 70%, #000) 0%, #10131a 50%, color-mix(in srgb, var(--c2) 70%, #000) 100%); color: #fff; }
.hv-team, .hv-mid { text-decoration: none; }
.hv-team { display: flex; flex-direction: column; align-items: center; gap: .6rem; font-weight: 900; font-size: clamp(1rem, 2.2vw, 1.5rem); text-align: center; }
/* Owl mặc định ép img width 100%: ghi đè để logo giữ kích thước */
.hero-slider .owl-item .hv-team img { width: clamp(72px, 11vw, 150px); height: clamp(72px, 11vw, 150px); object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.hv-mid { text-align: center; }
.hv-vs { font-weight: 900; font-style: italic; font-size: clamp(1.6rem, 4vw, 3rem); color: var(--brand); line-height: 1; }
.hv-time { font-weight: 900; font-size: clamp(1.2rem, 2.6vw, 2rem); margin-top: .4rem; }
.hv-date { font-size: .85rem; color: rgba(255,255,255,.75); }
/* Owl: nút trái/phải + chấm */
.hero-slider .owl-nav { margin: 0 !important; }
.hero-slider .owl-nav button.owl-prev, .hero-slider .owl-nav button.owl-next {
    position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50% !important;
    background: rgba(16,19,26,.6) !important; color: #fff !important; font-size: 1.2rem !important; margin: 0 !important;
    opacity: 0; transition: opacity .2s, background .2s;
}
.hero-slider:hover .owl-nav button { opacity: 1; }
.hero-slider .owl-nav button.owl-prev { left: -54px; }
.hero-slider .owl-nav button.owl-next { right: -54px; }
.hero-slider .owl-nav button:hover { background: var(--brand) !important; }
.hero-slider .owl-dots { margin-top: 1.2rem !important; }
.hero-slider.owl-theme .owl-dots .owl-dot span { background: rgba(255,255,255,.35); transition: width .2s; }
.hero-slider.owl-theme .owl-dots .owl-dot.active span, .hero-slider.owl-theme .owl-dots .owl-dot:hover span { background: var(--brand); width: 26px; }
/* Màn hình hẹp: ẩn nút trái/phải (vẫn có chấm, vuốt và tự chạy) */
@media (max-width: 1399.98px) { .hero-slider .owl-nav { display: none; } }
@media (hover: none) { .hero-slider .owl-nav button { opacity: 1; } }
@media (max-width: 991.98px) { .hero { padding: 1.25rem 0 1.5rem; } .hero-text { text-align: left; } }

/* ===== Tin tức ===== */
.post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,19,26,.08); color: var(--ink); }
.pc-thumb { position: relative; aspect-ratio: 16 / 9; background: #e9ebef; overflow: hidden; }
.pc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; } /* ảnh dọc (poster) vẫn giữ khung 16:9 */
.pc-thumb-empty { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.2rem; color: #b8bfca; }
.pc-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(224,23,45,.92); color: #fff; display: grid; place-items: center; font-size: 1.8rem; }
.pc-body { padding: .9rem 1rem 1.1rem; }
.pc-date { font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
.pc-pin { color: var(--brand); font-weight: 700; margin-left: .4rem; }
.pc-title { font-size: 1.02rem; font-weight: 800; line-height: 1.35; margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-excerpt { font-size: .88rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-title { font-weight: 900; font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; }
.post-meta { color: var(--muted); font-size: .88rem; margin-bottom: 1.25rem; }
.post-video, .post-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.post-cover { width: 100%; height: auto; }
.post-lead { font-size: 1.12rem; font-weight: 600; line-height: 1.6; }
.post-content { font-size: 1.05rem; line-height: 1.75; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.post-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.post-content .image-center { display: block; margin: 1rem auto; text-align: center; }
.post-content .image-left { float: left; margin: 0 1rem 1rem 0; max-width: 50%; }
.post-content .image-right { float: right; margin: 0 0 1rem 1rem; max-width: 50%; }
.post-content figure figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.post-content td, .post-content th { border: 1px solid var(--line); padding: .45rem .6rem; }
.post-content blockquote { border-left: 4px solid var(--brand); padding: .3rem 1rem; color: #374151; background: #fafafa; }
.post-content::after { content: ''; display: block; clear: both; }

/* Điện thoại: thu gọn logo + tên giải để nút menu không bị xuống dòng */
@media (max-width: 575.98px) {
    .brand-logo { height: 38px; }
    .brand-text { font-size: .82rem; }
    .brand { gap: .4rem; margin-right: .25rem; }
}
@media (max-width: 359.98px) { .brand-text { display: none; } }

/* Nút đang gửi: mờ nhẹ, không cho bấm thêm */
button.is-loading { cursor: wait; opacity: .85; }

/* ===== Banner đội + danh sách cầu thủ ===== */
.team-banner { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--ink); }
.team-banner img { width: 100%; height: clamp(240px, 45vw, 640px); object-fit: cover; object-position: center center; display: block; } /* banner đội: canh giữa, tối đa 640px */
.team-hero.has-banner { border-radius: 0 0 var(--radius) var(--radius); }
.squad-group { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .6rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.squad-group:first-of-type { margin-top: 0; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .9rem; }
.player-card { text-align: center; }
.pl-photo { position: relative; border-radius: 12px; overflow: hidden; background: #e3e6eb; }
.pl-photo img { display: block; width: 100%; height: auto; }
.pl-photo:has(img[src$="placeholder-player.svg"]) { aspect-ratio: 3 / 4; }
.pl-photo:has(img[src$="placeholder-player.svg"]) img { height: 100%; object-fit: cover; }
.pl-number { position: absolute; left: 6px; bottom: 6px; background: var(--ink); color: #fff; font-weight: 900; font-size: .95rem; min-width: 32px; padding: .1rem .4rem; border-radius: 8px; }
.pl-captain { position: absolute; right: 6px; top: 6px; background: var(--brand); color: #fff; font-weight: 900; font-size: .75rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.pl-name { font-weight: 700; margin-top: .45rem; line-height: 1.25; font-size: .92rem; }
.pl-pos { font-size: .78rem; color: var(--muted); }

/* ===== Đội hình trong trang trận ===== */
.lineup-head { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-size: 1.1rem; margin-bottom: .6rem; }
.lineup-head:hover { color: var(--brand); }
.lineup-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.lineup-list { list-style: none; padding: 0; margin: 0; }
.lineup-list li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.lineup-list li:last-child { border-bottom: 0; }
.ll-num { font-weight: 900; text-align: center; background: #f1f2f5; border-radius: 6px; padding: .15rem 0; }
.ll-name { font-weight: 600; }
.ll-c { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .65rem; font-weight: 900; margin-left: .3rem; vertical-align: middle; }
.ll-pos { font-size: .8rem; color: var(--muted); }

/* ===== Xem ảnh phóng to (lightbox) ===== */
[data-lightbox] { cursor: zoom-in; position: relative; display: block; }
.team-banner [data-lightbox]::after { content: '\F62C'; font-family: 'bootstrap-icons'; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(16,19,26,.65); color: #fff; display: grid; place-items: center; font-size: 1.1rem; opacity: .85; transition: opacity .2s; }
.team-banner [data-lightbox]:hover::after { opacity: 1; background: var(--brand); }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .modal-body { padding: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 3.5rem); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .btn-close { position: fixed; top: 14px; right: 18px; z-index: 2; width: 2rem; height: 2rem; opacity: .9; }
.lightbox .lb-caption { color: #fff; margin-top: .6rem; font-weight: 600; }
.modal-backdrop.show { opacity: .88; }

/* ===== Dải "Các đội tham dự" (trang chủ) ===== */
.team-strip .owl-stage { display: flex; align-items: flex-start; }
.team-strip-card { display: block; text-decoration: none; color: var(--ink, #111); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(15,23,42,.08); transition: transform .2s, box-shadow .2s; }
.team-strip-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,.14); color: inherit; }
/* Ảnh giữ nguyên tỉ lệ như lúc upload, chỉ thu nhỏ theo bề ngang thẻ */
.team-strip .team-strip-photo { display: block; width: 100%; height: auto; }
/* Chưa có ảnh: khung tỉ lệ poster dọc, logo ở giữa trên nền màu đội */
.team-strip-logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 7; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--team-color) 55%, #fff) 0%, var(--team-color) 75%); }
.team-strip .team-strip-logo img { width: 58%; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.team-strip-name { display: block; padding: .6rem .5rem .7rem; text-align: center; font-weight: 700; line-height: 1.2; }
.team-strip-name small { display: block; font-weight: 500; font-size: .75rem; color: #6b7280; margin-top: 2px; }

/* ===== Bình chọn Hot girl ===== */
.hg-tabs .nav-link { font-weight: 700; color: var(--ink); border-radius: 999px; }
.hg-tabs .nav-link.active { background: var(--ink); color: #fff; }
.vote-status { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; background: linear-gradient(90deg, #fff0f2, #fff); border: 1px solid #ffd3da; border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.vote-status i { color: var(--brand); margin-right: .25rem; }
.vote-status--ended, .vote-status--disabled { background: #f3f4f6; border-color: var(--line); color: var(--muted); }
.hg-filter { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.hg-filter .input-group { flex: 1 1 240px; }
.hg-filter .form-select { flex: 0 0 auto; width: auto; }

.hg-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(15,23,42,.07); height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.hg-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.13); }
.hg-photo { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #eef0f3; }
.hg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; }
.hg-card:hover .hg-photo img { transform: scale(1.04); }
.hg-code { position: absolute; left: 8px; bottom: 8px; background: rgba(16,19,26,.78); color: #fff; font-weight: 800; font-size: .72rem; padding: .15rem .5rem; border-radius: 6px; letter-spacing: .03em; }
.hg-rank { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 900; font-size: .78rem; padding: .15rem .5rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hg-rank.is-top { color: #fff; }
.is-top-1.hg-rank, .hg-rank-num.is-top-1 { background: linear-gradient(135deg, #f7c948, #d4a017); color: #3b2a00; }
.is-top-2.hg-rank, .hg-rank-num.is-top-2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.is-top-3.hg-rank, .hg-rank-num.is-top-3 { background: linear-gradient(135deg, #f0a46b, #b8642c); color: #fff; }
.hg-has-video { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.hg-body { padding: .7rem .75rem .8rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.hg-body form, .hg-body > .btn { margin-top: auto; }
.hg-name { font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-team { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); text-decoration: none; }
.hg-team img { width: 18px; height: 18px; object-fit: contain; }
.hg-team-lg { font-size: .95rem; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem .25rem .35rem; }
.hg-team-lg img { width: 24px; height: 24px; }
.hg-votes { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.hg-votes i { color: var(--brand); }
.hg-votes strong { color: var(--ink); font-size: 1rem; }

/* Chi tiết thí sinh */
.hg-side { position: sticky; top: 90px; }
.hg-main-photo { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(15,23,42,.18); }
.hg-main-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; display: block; }
.hg-main-photo .hg-rank { font-size: 1rem; padding: .3rem .8rem; left: 12px; top: 12px; }
.hg-vote-box { border-top: 4px solid var(--brand); }
.hg-vote-count { text-align: center; margin-bottom: .85rem; }
.hg-vote-count i { color: var(--brand); font-size: 1.4rem; vertical-align: -2px; }
.hg-vote-count strong { font-size: 2rem; font-weight: 900; margin: 0 .25rem; }
.hg-vote-count span { color: var(--muted); font-weight: 600; }
.hg-head h1 { font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .25rem 0 .6rem; }
.hg-head-code { display: inline-block; background: var(--brand); color: #fff; font-weight: 800; border-radius: 6px; padding: .1rem .55rem; font-size: .85rem; }
.hg-video { border-radius: 12px; overflow: hidden; background: #000; }
.hg-video.is-vertical { aspect-ratio: 9 / 16; }
.hg-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.hg-gallery { columns: 3 160px; column-gap: .6rem; }
.hg-gallery a { display: block; margin-bottom: .6rem; border-radius: 10px; overflow: hidden; break-inside: avoid; }
.hg-gallery img { width: 100%; height: auto; display: block; transition: transform .3s; }
.hg-gallery a:hover img { transform: scale(1.03); }
.verify-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin-right: .4rem; }

/* Bảng xếp hạng */
.hg-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; max-width: 760px; margin: 0 auto 1.75rem; }
.hg-podium-item { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); padding: 1rem .6rem; box-shadow: 0 6px 20px rgba(15,23,42,.08); position: relative; }
.hg-podium-item.is-top-1 { padding-top: 1.4rem; padding-bottom: 1.5rem; border: 2px solid #f0c33c; }
.hg-podium-photo { width: 64%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.is-top-1 .hg-podium-photo { width: 76%; border-color: #f7c948; }
.hg-podium-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hg-podium-medal { margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.is-top-1 .hg-podium-medal { background: linear-gradient(135deg, #f7c948, #d4a017); color: #3b2a00; }
.is-top-2 .hg-podium-medal { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.is-top-3 .hg-podium-medal { background: linear-gradient(135deg, #f0a46b, #b8642c); }
.hg-podium-item strong { margin-top: .45rem; line-height: 1.2; }
.hg-podium-item small { color: var(--muted); font-size: .75rem; }
.hg-podium-votes { margin-top: .35rem; font-weight: 800; color: var(--brand); }
.hg-table th { font-size: .78rem; text-transform: uppercase; color: var(--muted); font-weight: 700; background: #fafbfc; }
.hg-rank-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f1f2f4; font-weight: 800; }
.hg-row-name { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.hg-row-name img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center top; }
.hg-row-name small { display: block; color: var(--muted); }
.hg-bar { height: 8px; background: #f1f2f4; border-radius: 999px; overflow: hidden; }
.hg-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #ff6b81); border-radius: 999px; }
@media (max-width: 575.98px) {
    .hg-podium { gap: .5rem; }
    .hg-podium-item { padding: .75rem .35rem; }
    .hg-podium-item strong { font-size: .85rem; }
    .hg-side { position: static; }
}

/* Menu: không xuống dòng; màn hình laptop thu gọn khoảng cách để vừa 1 hàng */
.site-header .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-header .navbar-nav .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: .92rem; }
    .site-header .brand-text { font-size: .95rem; }
}

/* ===== Áo thi đấu (trang đội) ===== */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .kit-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; } }
.kit-card { margin: 0; background: #f8f9fb; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.kit-photo { display: flex; align-items: center; justify-content: center; background: #eef0f3; aspect-ratio: 1; overflow: hidden; }
.kit-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.kit-photo:hover img { transform: scale(1.04); }
.kit-photo-empty { color: #c3c8d0; font-size: 3rem; }
.kit-card figcaption { padding: .65rem .8rem .75rem; }
.kit-card figcaption strong { display: block; font-weight: 800; }
.kit-card figcaption span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; margin-top: 2px; }

/* ===== Menu có mục con (Giới thiệu, Dự đoán) ===== */
.nav-caret { font-size: .65rem; margin-left: .15rem; vertical-align: 1px; }
.site-header .dropdown-menu { border: 0; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.25); padding: .4rem; min-width: 220px; }
.site-header .dropdown-item { border-radius: 8px; font-weight: 600; padding: .5rem .75rem; }
.site-header .dropdown-item.active, .site-header .dropdown-item:active { background: var(--brand); color: #fff; }
@media (min-width: 1200px) {
    /* PC: rê chuột để mở, bấm vào tên menu để vào trang chính */
    .nav-hover { position: relative; }
    .nav-hover > .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; margin-top: 0; }
    .nav-hover:hover > .dropdown-menu, .nav-hover:focus-within > .dropdown-menu { display: block; }
}
@media (max-width: 1199.98px) {
    /* Điện thoại: luôn hiện mục con, thụt vào dưới menu cha */
    .nav-hover > .dropdown-menu { display: block; position: static; background: transparent; box-shadow: none; padding: 0 0 .35rem 1rem; }
    .nav-hover .dropdown-item { color: rgba(255,255,255,.7); padding: .35rem .5rem; }
    .nav-hover .dropdown-item.active { background: transparent; color: #fff; }
    .nav-caret { display: none; }
}

/* ===== Trang Giới thiệu & Nhà tài trợ ===== */
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .75rem; }
.about-fact { background: var(--ink); color: #fff; border-radius: 12px; padding: .9rem 1rem; }
.about-fact strong { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.1; color: #fff; }
.about-fact strong.small-strong { font-size: 1.05rem; line-height: 1.3; }
.about-fact span { color: rgba(255,255,255,.65); font-size: .82rem; }
.about-sponsor-strip { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; justify-content: center; padding: 1.1rem 1rem; background: var(--ink); border-radius: 12px; }
.about-sponsor-strip img { height: 46px; width: auto; max-width: 150px; object-fit: contain; transition: transform .2s; }
.about-sponsor-strip a:hover img { transform: scale(1.06); }
.sp-groups { display: flex; flex-direction: column; gap: 1.25rem; }
.sp-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.sp-tier { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: .85rem; }
.sp-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.sp-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.sp-logo { width: 100%; height: 110px; border-radius: 12px; background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 1rem; transition: transform .2s; }
a.sp-item:hover .sp-logo { transform: translateY(-3px); }
.sp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-name { font-weight: 700; font-size: .9rem; text-align: center; }

/* ===== Đoạn giới thiệu trang chủ (H1 SEO) ===== */
.home-intro { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.25rem; }
.home-intro h1 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 900; margin: 0 0 .4rem; }
.home-intro h1 span { color: var(--muted); font-weight: 700; font-size: .85em; }
.home-intro p { color: #3f4654; margin: 0 0 .35rem; line-height: 1.55; }
.home-intro-link { font-weight: 700; text-decoration: none; font-size: .9rem; }
.footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.footer-bottom > :last-child { font-size: .78rem; }
@media (min-width: 992px) { .footer-bottom > :last-child { white-space: nowrap; } }
.footer-bottom > :first-child { justify-self: start; }
.footer-bottom .footer-copy { justify-self: center; text-align: center; }
.footer-bottom > :last-child { justify-self: end; text-align: right; }
@media (max-width: 767.98px) {
    .footer-bottom { grid-template-columns: 1fr; gap: .5rem; text-align: center; }
    .footer-bottom > :first-child, .footer-bottom > :last-child { justify-self: center; text-align: center; }
}
.footer-copy { line-height: 1.6; }
.footer-copy strong { color: #fff; }
