
:root {
    --teal: #2563eb;
    --teal-dark: #1d4ed8;
    --teal-darker: #1e40af;
    --emerald: #0ea5e9;
    --yellow: #fbbf24;
    --sky: #38bdf8;
    --pink: #ec4899;
    --red: #ef4444;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f2f6fc;
    --radius: 16px;
    --shadow: 0 2px 12px rgba(30, 64, 175, .07);
    --sbw: 260px;
    --sbw-c: 70px;
    --amber: #ffd166;
    --amber2: #ff9f4a;
    --ink: #0b1a33;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { font-family: 'Figtree', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: rgba(37, 99, 235, .22); color: #0b1a33; }
:where(a, button, input, textarea, select):focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.container { width: min(1152px, 94%); margin: 0 auto; }
.site-main { flex: 1; padding: 0 0 4rem; }
.site-main > .container:first-child { padding-top: 2rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }

/* ================= Topbar ================= */
.topbar { background: rgba(255, 255, 255, .7); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: .28rem 0; position: relative; }
.topbar-contact { display: flex; align-items: center; gap: 1.1rem; color: var(--muted); }
.topbar-contact a { display: flex; align-items: center; gap: .4rem; font-weight: 500; transition: color .2s; }
.topbar-contact a:hover { color: var(--teal-dark); }
.topbar-contact svg { width: 15px; height: 15px; }
.topbar-divider { width: 1px; height: 15px; background: #d1d5db; }
.topbar-name { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--teal-dark); font-size: .88rem; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: flex; overflow: hidden; border-radius: 999px; border: 1px solid rgba(37, 99, 235, .7); background: rgba(255,255,255,.8); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.lang-switch a { padding: .22rem .75rem; font-size: .72rem; font-weight: 700; color: var(--text); transition: .2s; }
.lang-switch a:hover { background: #eff6ff; color: var(--teal-dark); }
.lang-switch a.active { background: linear-gradient(to right, #2563eb, #0284c7); color: #fff; }

.socials { display: flex; align-items: center; gap: .45rem; }
.socials a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 1px 3px rgba(0,0,0,.1); transition: transform .2s, box-shadow .2s; }
.socials a:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.15); }
.socials svg { width: 15px; height: 15px; }
.social-fb { color: var(--teal-dark); }
.social-tw { color: var(--sky); }
.social-ig { color: var(--pink); }
.social-yt { color: var(--red); }

/* ================= Header main ================= */
.header-row { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: relative; z-index: 60; }
.header-main { display: flex; align-items: center; gap: 1.25rem; padding: .45rem 0; }
.brand { display: flex; align-items: center; }
.brand-logo-img { height: 38px; width: auto; object-fit: contain; transition: transform .3s; }
.brand-logo-img:hover { transform: scale(1.05); }

.search-wrap { flex: 1; display: flex; justify-content: center; }
.search-form { position: relative; width: min(560px, 100%); }
.search-form-icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); display: flex; width: 18px; height: 18px; color: #94a3b8; pointer-events: none; transition: color .25s; }
.search-form-icon svg { width: 100%; height: 100%; display: block; }
.search-form:focus-within .search-form-icon { color: #1d4ed8; }
.search-form input { width: 100%; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; padding: .55rem 3.05rem .55rem 2.85rem; font-size: .875rem; color: var(--text); outline: none; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: border-color .25s, box-shadow .25s, background .25s; font-family: inherit; }
.search-form input::placeholder { color: #94a3b8; }
.search-form input:hover { border-color: #cbd5e1; }
.search-form input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .16), 0 4px 12px rgba(29, 78, 216, .08); }
.search-form > button { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 2.55rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2563eb, #0ea5e9); border: 0; border-radius: 0 999px 999px 0; cursor: pointer; color: #fff; padding: 0; transition: background .2s, filter .2s; }
.search-form > button svg { width: 15px; height: 15px; display: block; }
.search-form > button:hover { background: linear-gradient(135deg, #1d4ed8, #0369a1); filter: brightness(1.04); }

.btn-cta { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .52rem 1rem; background: linear-gradient(to right, #2563eb, #0ea5e9); color: #fff; font-weight: 600; font-size: .82rem; box-shadow: 0 6px 14px rgba(29, 78, 216, .28); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.btn-cta:hover { transform: scale(1.04); box-shadow: 0 8px 18px rgba(29, 78, 216, .38); }
.btn-cta svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.menu-toggle { display: none; background: #fff; border: 1px solid var(--border); color: var(--text); font-size: 1.3rem; border-radius: 8px; padding: .3rem .7rem; cursor: pointer; }
.header-lang { display: none; }
.search-toggle { display: none; background: #fff; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: .35rem .55rem; cursor: pointer; }
.search-toggle svg { width: 1.1rem; height: 1.1rem; display: block; }
.mobile-search { display: none; }
.nav-cta-mobile { display: none; }

/* ================= Navbar ================= */
.mainnav { background: linear-gradient(100deg, #0b1a33 0%, #1e40af 55%, #2563eb 100%); box-shadow: 0 4px 14px rgba(11, 26, 51, .35); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; justify-content: center; gap: 2.5rem; }
.nav-link { position: relative; padding: .65rem 0; color: #fff; font-weight: 500; font-size: 15px; transition: color .3s; }
.nav-link::after { content: ''; position: absolute; bottom: 2px; left: 0; height: 2px; width: 100%; background: var(--yellow); transform: scaleX(0); transition: transform .3s; }
.nav-link:hover { color: #fbbf24; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--yellow); font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); }

/* ================= Buttons ================= */
.btn { display: inline-block; padding: .55rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .88rem; transition: .2s; border: 0; cursor: pointer; }
.btn-primary { background: linear-gradient(to right, #2563eb, #0ea5e9); color: #fff; box-shadow: 0 4px 10px rgba(29, 78, 216, .3); }
.btn-primary:hover { transform: scale(1.03); }
.btn-outline { border: 1px solid var(--teal-dark); color: var(--teal-dark); background: #fff; }
.btn-outline:hover { background: var(--teal-dark); color: #fff; }
.btn-viewall { display: inline-flex; align-items: center; gap: .35rem; background: linear-gradient(to right, #2563eb, #0ea5e9); color: #fff; padding: .45rem 1.05rem; border-radius: 999px; font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 4px 12px rgba(29, 78, 216, .3); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn-viewall:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(29, 78, 216, .35); filter: brightness(1.05); }
.btn-viewall svg { width: 13px; height: 13px; }

/* ================= Sections ================= */
.section { margin-bottom: 3.25rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif; font-size: 1.32rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--text); padding-left: .85rem; position: relative; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: .3rem; height: calc(100% - .6rem); width: 4px; border-radius: 999px; background: linear-gradient(180deg, #2563eb, #0ea5e9); }
@media (max-width: 760px) {
    .section { margin-bottom: 2.6rem; }
    .section-head { gap: .6rem; margin-bottom: 1.15rem; }
    .section-head h2 { font-size: 1.12rem; padding-left: .7rem; }
    .btn-viewall { padding: .4rem .85rem; font-size: .73rem; }
    .btn-viewall svg { width: 12px; height: 12px; }
}
@media (max-width: 560px) {
    .section-head h2 { font-size: 1rem; }
    .section-head h2::before { width: 3.5px; top: .25rem; height: calc(100% - .5rem); }
    .btn-viewall { padding: .34rem .72rem; font-size: .69rem; gap: .28rem; }
}
.card { background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: all .3s; }
.card:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 10px 24px rgba(0,0,0,.1); }

/* ================= Hero / Banner slider ================= */
.site-main > .hero-wrap:first-child { padding-top: 1.25rem; }
.hero-slider { position: relative; width: 100%; aspect-ratio: 1900 / 621; min-height: 180px; max-height: 460px; overflow: hidden; margin-bottom: 3.25rem; background: #0a1628; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-slider.dragging { cursor: grabbing; }
.hero-track { display: flex; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.hero-slider.dragging .hero-track { transition: none; }
.hero-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; pointer-events: none; }
@media (max-width: 560px) {
    .hero-slider { margin-bottom: 2.25rem; }
    .hero-dots { bottom: 10px; }
}
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.hero-dot { width: 11px; height: 11px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: .2s; padding: 0; }
.hero-dot.active { background: #fff; width: 26px; }

/* ================= Match cards ================= */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.match-card { position: relative; display: flex; flex-direction: column; min-height: 240px; overflow: hidden; background: rgba(255,255,255,.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.4); border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: all .3s; color: inherit; }
.match-card:hover { transform: scale(1.02); border-color: #93c5fd; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.14); }
a.match-card:hover { text-decoration: none; }
.match-card .badge { position: absolute; top: 1rem; z-index: 2; padding: .3rem 1rem; font-size: .72rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.match-card .badge-matchno { left: 0; background: #fef9c3; color: #1f2937; border-radius: 0 999px 999px 0; text-transform: none; }
.match-card .badge-completed { right: 0; background: linear-gradient(to right, #2563eb, #0ea5e9); color: #fff; border-radius: 999px 0 0 999px; }
.match-card .badge-upcoming { right: 0; background: linear-gradient(to right, #fbbf24, #f59e0b); color: #fff; border-radius: 999px 0 0 999px; }
.match-card .badge-cancelled { right: 0; background: #ef4444; color: #fff; border-radius: 999px 0 0 999px; }
.match-date-pill { margin: 3.25rem auto .25rem; width: fit-content; background: #f3f4f6; border-radius: 999px; padding: .25rem 1rem; font-size: .75rem; font-weight: 500; color: #4b5563; }
.match-teams { position: relative; flex: 1; display: flex; align-items: center; padding: 0 1rem; }
.match-teams::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #e5e7eb; }
.match-team { display: flex; align-items: center; gap: .75rem; width: 50%; }
.match-team.right { justify-content: flex-end; text-align: right; }
.team-logo { width: 48px; height: 48px; border-radius: 999px; object-fit: contain; background: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.15); flex-shrink: 0; }
.team-logo.opponent { display: flex; align-items: center; justify-content: center; background: #fff; color: #1d4ed8; font-weight: 700; font-size: .95rem; }
.match-score { font-size: 1.1rem; font-weight: 800; color: #1f2937; }
.match-score small { display: block; font-size: .72rem; color: #6b7280; font-weight: 400; }
.vs-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; background: linear-gradient(to right, #ef4444, #e11d48); color: #fff; font-size: .68rem; font-weight: 800; padding: .15rem .55rem; border-radius: .25rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.match-names { display: flex; justify-content: space-between; gap: .5rem; padding: 0 1rem; margin-top: .5rem; font-size: .8rem; font-weight: 600; color: #1f2937; }
.match-names a, .match-names > span { flex: 1 1 50%; min-width: 0; }
.match-names a:last-child, .match-names > span:last-child { text-align: right; }
.match-footer { margin-top: .75rem; border-top: 1px solid #e5e7eb; padding: .7rem 1rem; text-align: center; font-size: .85rem; font-weight: 500; color: var(--teal-dark); }
.match-footer.lost { color: #dc2626; }
.match-details-link { display: block; border-top: 1px solid #e5e7eb; padding: .6rem 1rem; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); transition: .2s; }
.match-card:hover .match-details-link { color: var(--teal-dark); background: #eff6ff; }

@media (max-width: 767px) {
    .match-grid--swipe {
        display: flex;
        gap: .9rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
        padding: .15rem 0 1rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }
    .match-grid--swipe::-webkit-scrollbar { display: none; }
    .match-grid--swipe.is-dragging { scroll-snap-type: none; cursor: grabbing; }
    .match-grid--swipe.is-dragging .match-card { transform: none; }
    .match-grid--swipe > * { flex: 0 0 100%; scroll-snap-align: center; }
    .match-grid--swipe .match-card { min-height: 250px; }
}

/* ================= Match detail page ================= */
.match-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.match-meta .badge { position: static; }
.match-meta .badge-matchno { border-radius: 0 999px 999px 0; background: #fef9c3; color: #1f2937; text-transform: none; margin-left: -.55rem; }
.match-meta .badge-completed, .match-meta .badge-upcoming, .match-meta .badge-cancelled { border-radius: 999px 0 0 999px; color: #fff; margin-right: -.55rem; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; text-align: center; margin-bottom: 1rem; }
.team { font-weight: 700; font-size: .95rem; }
.score { font-size: 1.35rem; font-weight: 800; color: var(--teal-darker); }
.score small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
.vs { color: #f59e0b; font-weight: 800; }
.result-line { text-align: center; font-weight: 700; color: var(--teal-darker); font-size: .95rem; }
.result-line.lost { color: #dc2626; }
.venue-line { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .5rem; }
.news-date { color: var(--muted); font-size: .8rem; margin-bottom: .5rem; }

/* ================= News ================= */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); transition: .25s; }
.news-card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 12px 26px rgba(0,0,0,.12); }
.news-thumb { position: relative; height: 224px; overflow: hidden; background: linear-gradient(to bottom right, #60a5fa, #1d4ed8); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.news-card:hover .news-thumb::after { opacity: 1; }
.news-thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; opacity: .5; }
.news-date-pill { position: absolute; bottom: .75rem; left: .75rem; background: rgba(255,255,255,.92); border-radius: 999px; padding: .25rem .8rem; font-size: .72rem; font-weight: 600; color: #1f2937; box-shadow: 0 2px 6px rgba(0,0,0,.15); backdrop-filter: blur(6px); }
.news-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 1.05rem; margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); transition: color .2s; }
.news-card:hover .news-body h3 { color: var(--teal-dark); }
.news-body p { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.news-foot { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #f3f4f6; color: #4b5563; font-size: .88rem; font-weight: 600; transition: color .3s; }
.news-card:hover .news-foot { color: var(--teal-dark); }
.news-foot svg { width: 16px; height: 16px; transition: transform .2s; }
.news-card:hover .news-foot svg { transform: translateX(4px); }
.read-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; background: rgba(255,255,255,.7); border: 1px solid #bfdbfe; color: var(--teal-dark); font-weight: 600; font-size: .85rem; padding: .4rem 1.1rem; border-radius: 999px; transition: .2s; }
.read-more:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

/* ================= News Detail (nd-*) ================= */
.nd-section {
    padding: 2.2rem 0 3.5rem;
    background:
        radial-gradient(900px 320px at 12% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 60%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 260px);
}
.nd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.2rem; }
.nd-crumb a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.nd-crumb a:hover { text-decoration: underline; }
.nd-crumb span { color: #cbd5e1; }
.nd-crumb-current { color: #64748b; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.75rem; align-items: start; }
.nd-article { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .35); overflow: hidden; }
.nd-head { padding: 1.9rem 2.1rem 1.4rem; }
.nd-divider { border-top: 1px dashed #e2e8f0; margin: 1rem 0 0; }
.nd-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.nd-chip { display: inline-flex; align-items: center; gap: .45rem; background: #eff6ff; border: 1px solid #bfdbfe; color: var(--teal-dark); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .32rem .8rem; border-radius: 999px; }
.nd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.nd-headdate { font-size: .8rem; color: var(--muted); font-weight: 600; }
.nd-title { font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif; font-size: clamp(1.28rem, 1.85vw, 1.78rem); line-height: 1.32; letter-spacing: -.012em; color: var(--teal-darker); margin: 0 0 1.1rem; overflow-wrap: anywhere; word-break: break-word; }
.nd-hero { margin: 0; background: #eff6ff; }
.nd-hero img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.nd-details { margin: .55rem 2.1rem .8rem; padding: 0; }
.nd-detail-row { display: grid; grid-template-columns: minmax(86px, 132px) 14px minmax(0, 1fr); align-items: start; padding: .16rem 0; border-bottom: 1px dotted #e2e9f1; }
.nd-detail-row:last-child { border-bottom: none; }
.nd-detail-row dt { margin: 0; font-size: .84rem; font-weight: 700; color: #334155; line-height: 1.5; }
.nd-detail-colon { text-align: center; font-weight: 700; color: #94a3b8; line-height: 1.5; }
.nd-detail-row dd { margin: 0; font-size: .85rem; color: #1e293b; line-height: 1.55; text-align: left; overflow-wrap: anywhere; }
.nd-intro { margin: 1rem 2.1rem 1rem; color: #475569; font-size: 1rem; line-height: 1.85; }
.nd-content { padding: 1.6rem 2.1rem 2rem; color: #334155; font-size: 1.02rem; line-height: 1.95; overflow-wrap: anywhere; }
.nd-content p { margin: 0 0 1.1rem; }
.nd-content p:last-child { margin-bottom: 0; }
.nd-footer { padding: 0 2.1rem 1.9rem; }
.nd-back { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; border-radius: 999px; background: var(--teal-dark); color: #fff; font-weight: 600; font-size: .85rem; text-decoration: none; transition: .2s; }
.nd-back svg { width: 16px; height: 16px; }
.nd-back:hover { background: var(--teal-darker); color: #fff; }
.nd-aside { position: sticky; top: 1.25rem; }
.nd-side-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.2rem; box-shadow: var(--shadow); }
.nd-side-title { display: flex; align-items: center; gap: .55rem; font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif; font-size: .98rem; font-weight: 700; color: var(--teal-darker); margin: 0 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid #eef2f7; }
.nd-side-title svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }
.nd-side-list { display: flex; flex-direction: column; }
.nd-side-item { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: inherit; }
.nd-side-item:last-child { border-bottom: none; }
.nd-side-thumb { width: 76px; height: 58px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2563eb, #1d4ed8); display: grid; place-items: center; color: rgba(255, 255, 255, .7); }
.nd-side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.nd-side-thumb svg { width: 22px; height: 22px; }
.nd-side-item:hover .nd-side-thumb img { transform: scale(1.08); }
.nd-side-text { min-width: 0; }
.nd-side-text h3 { font-size: .85rem; line-height: 1.42; font-weight: 600; color: #1e293b; margin: 0 0 .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.nd-side-item:hover .nd-side-text h3 { color: var(--teal-dark); }
.nd-side-text span { font-size: .72rem; color: #94a3b8; font-weight: 600; }
.nd-side-more { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; width: 100%; margin-top: .9rem; padding: .55rem; border-radius: 999px; border: 1px solid #bfdbfe; background: #eff6ff; color: var(--teal-dark); font-size: .82rem; font-weight: 700; text-decoration: none; transition: .2s; }
.nd-side-more svg { width: 14px; height: 14px; }
.nd-side-more:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

@media (max-width: 980px) {
    .nd-layout { grid-template-columns: 1fr; }
    .nd-aside { position: static; }
    .nd-side-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
    .nd-side-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 720px) {
    .nd-head { padding: 1.3rem 1.15rem 1rem; }
    .nd-title { font-size: 1.18rem; line-height: 1.38; }
    .nd-details { margin: .5rem 1.15rem .6rem; padding: 0; }
    .nd-detail-row { grid-template-columns: minmax(0, 34%) 12px minmax(0, 1fr); padding: .14rem 0; }
    .nd-detail-row dt { font-size: .78rem; }
    .nd-detail-row dd, .nd-detail-colon { font-size: .8rem; }
    .nd-divider { margin: .8rem 0 0; }
    .nd-intro { margin: .9rem 1.15rem .9rem; font-size: .95rem; }
    .nd-content { padding: 1.2rem 1.15rem 1.6rem; font-size: .97rem; line-height: 1.85; }
    .nd-footer { padding: 0 1.15rem 1.4rem; }
    .nd-side-list { grid-template-columns: 1fr; }
    .nd-side-item:nth-last-child(2) { border-bottom: 1px solid #f1f5f9; }
    .nd-side-item:last-child { border-bottom: none; }
}

/* ================= Players ================= */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.player-card { text-align: center; position: relative; }
.player-card::before { content: '✔'; position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .7rem; display: grid; place-items: center; box-shadow: 0 2px 5px rgba(29, 78, 216, .4); }
.player-avatar { width: 88px; height: 88px; margin: 0 auto .75rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2563eb, #1d4ed8); border: 3px solid #fff; outline: 2px solid #bfdbfe; font-weight: 800; font-size: 1.4rem; color: #fff; position: relative; box-shadow: 0 4px 10px rgba(29, 78, 216, .3); overflow: visible; }
.player-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }
.player-avatar .badge-role { position: absolute; bottom: -4px; right: -4px; background: var(--yellow); color: #1f2937; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.player-card h3 { font-size: 1rem; }
.player-stats { display: flex; justify-content: center; gap: 1rem; margin: .75rem 0; font-size: .85rem; color: var(--muted); }
.player-stats strong { color: var(--teal-darker); }

/* ================= Sponsors ================= */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.sponsor-card { text-align: center; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.85); }

/* ================= Players carousel (home) ================= */
.player-carousel { position: relative; }
.player-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1rem; scrollbar-width: none; }
.player-track::-webkit-scrollbar { display: none; }
.player-slide { flex: 0 0 280px; scroll-snap-align: start; }
@media (max-width: 768px) {
    .player-carousel { --player-card-w: clamp(200px, 65vw, 340px); }
    .player-track { gap: clamp(16px, 17vw, 140px); padding-left: calc((100% - var(--player-card-w)) / 2); padding-right: calc((100% - var(--player-card-w)) / 2); }
    .player-slide { flex: 0 0 var(--player-card-w); scroll-snap-align: center; }
    .player-carousel .carousel-prev { left: max(0px, calc((100% - var(--player-card-w)) / 2 - 46px)); }
    .player-carousel .carousel-next { right: max(0px, calc((100% - var(--player-card-w)) / 2 - 46px)); }
}
.player-photo-card { max-width: 280px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.85); box-shadow: 0 10px 26px rgba(0,0,0,.14); transition: .25s; }
.player-photo-card:hover { box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.player-photo { position: relative; height: 288px; overflow: hidden; background: linear-gradient(to bottom right, rgba(96, 165, 250, .85), rgba(29, 78, 216, .85)); }
.player-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.player-photo-card:hover .player-photo img { transform: scale(1.05); }
.player-photo-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3.4rem; font-weight: 800; color: #fff; }
.player-tag { position: absolute; top: .75rem; right: 0; z-index: 3; background: #bfdbfe; color: #1e40af; font-size: .72rem; font-weight: 600; padding: .25rem .8rem; border-radius: 999px 0 0 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.player-hover { position: absolute; inset: 0; z-index: 4; opacity: 0; transition: opacity .4s; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(29, 78, 216, .88), rgba(3, 105, 161, .95)); backdrop-filter: blur(4px); color: #fff; text-align: center; padding: 1.25rem; }
.player-photo-card:hover .player-hover { opacity: 1; }
.player-hover h3 { font-size: .95rem; font-weight: 600; text-transform: uppercase; color: #bfdbfe; margin-bottom: .6rem; }
.player-hover ul { list-style: none; margin-bottom: 1rem; font-size: .9rem; display: flex; flex-direction: column; gap: .2rem; }
.btn-viewprofile { background: var(--teal); color: #fff; font-size: .85rem; font-weight: 500; padding: .35rem 1.25rem; border-radius: 999px; transition: .2s; }
.btn-viewprofile:hover { background: var(--teal-dark); }
.player-bar { display: flex; align-items: center; gap: .75rem; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); padding: .7rem 1rem; }
.player-role-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); font-size: .95rem; flex-shrink: 0; }
.player-bar-divider { width: 1px; height: 24px; background: rgba(255,255,255,.3); }
.player-bar-name { color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.2; }
.carousel-btn { position: absolute; top: 45%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: #4b5563; box-shadow: 0 4px 12px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; transition: .2s; }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover { background: var(--teal); color: #fff; }
.carousel-prev { left: -.5rem; }
.carousel-next { right: -.5rem; }

/* ================= Sponsors marquee (home) ================= */
.sponsors-scroll { width: 100%; overflow: hidden; position: relative; }
.sponsors-track { display: flex; align-items: center; gap: 1.25rem; width: fit-content; animation: scrollSponsors 30s linear infinite; }
.sponsors-scroll:hover .sponsors-track { animation-play-state: paused; }
.sponsor-item { flex-shrink: 0; }
.sponsor-box { display: flex; align-items: center; justify-content: center; height: 70px; width: 150px; padding: .75rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; font-size: .85rem; color: var(--muted); text-align: center; transition: .25s; }
.sponsor-box:hover { border-color: #60a5fa; box-shadow: 0 6px 16px rgba(0,0,0,.1); }
@keyframes scrollSponsors { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================= Single pages ================= */
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: 2rem; color: var(--teal-darker); padding-left: .9rem; position: relative; }
.page-head h1::before { content: ''; position: absolute; left: 0; top: .4rem; height: calc(100% - .8rem); width: 5px; border-radius: 999px; background: var(--teal); }
.page-head p { color: var(--muted); }
.article-content { white-space: pre-line; }
.filter-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-tabs a { padding: .4rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); font-size: .9rem; font-weight: 600; color: var(--muted); background: #fff; transition: .2s; }
.filter-tabs a.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter-tabs a:hover { border-color: var(--teal); color: var(--teal-dark); }
.filter-tabs a.active:hover { color: #fff; }

/* ================= Forms ================= */
.form-grid { display: grid; gap: 1rem; max-width: 640px; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem; color: var(--text); font-size: .95rem; outline: none; font-family: inherit; transition: .2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(199,210,254,.6); }
.form-error { color: #dc2626; font-size: .82rem; margin-top: .3rem; }
.alert-success { background: #dbeafe; border: 1px solid var(--teal); color: var(--teal-darker); padding: .9rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; }

/* ================= Footer ================= */
.site-footer { background: linear-gradient(165deg, #0b1a33 0%, #1e40af 52%, #0ea5e9 100%); color: #fff; margin-top: auto; position: relative; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top, rgba(255,255,255,.25), transparent 60%); pointer-events: none; }
.site-footer h3 { margin-bottom: 1.25rem; font-size: 1.05rem; font-weight: 600; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr; gap: 2.25rem; padding: 3.5rem 0 2.75rem; position: relative; }
.support-list { display: flex; flex-direction: column; gap: 1rem; }
.support-pill { display: flex; align-items: center; width: 100%; max-width: 250px; border-radius: 999px; border: 1px solid rgba(209,213,219,.9); background: var(--teal); padding: 1.1rem 1rem; transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.support-pill:hover { background: var(--teal-dark); border-color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(2,6,23,.22); }
.support-icon { display: flex; align-items: center; border-right: 1px solid rgba(255,255,255,.5); padding-right: .75rem; margin-right: .75rem; }
.support-icon svg { width: 18px; height: 18px; color: #fff; }
.support-pill span:last-child { font-weight: 500; }
.quick-links { list-style: none; }
.quick-links li { margin-bottom: .7rem; border-bottom: 1px dotted rgba(255,255,255,.2); padding-bottom: .25rem; }
.quick-links a { color: #fff; transition: color .2s; }
.quick-links a:hover { color: var(--yellow); }
.fb-wrap { width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); box-shadow: 0 18px 36px rgba(0,0,0,.25); backdrop-filter: blur(16px); }
.fb-iframe { width: 100%; border: none; display: block; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; color: rgba(255,255,255,.9); }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; color: #fff; }
.contact-list a:hover { text-decoration: underline; }
.footer-socials { display: flex; gap: .75rem; margin-top: 1.4rem; }
.social-circle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; box-shadow: 0 6px 14px rgba(0,0,0,.25); transition: transform .25s; }
.social-circle svg { width: 16px; height: 16px; fill: #fff; }
.social-circle:hover { transform: scale(1.1); }
.social-circle.fb { background: #2563eb; }
.social-circle.tw { background: #38bdf8; }
.social-circle.ig { background: linear-gradient(to top right, #fbbf24, #ec4899, #0284c7); }
.social-circle.yt { background: #dc2626; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.2); padding: 1rem 0; text-align: center; font-size: .875rem; backdrop-filter: blur(8px); position: relative; }
.footer-dot { margin: 0 .5rem; color: rgba(255,255,255,.4); }
.footer-credit { color: #93c5fd; font-weight: 500; }
.footer-credit:hover { color: #bfdbfe; text-decoration: underline; }

/* ================= Floating buttons ================= */
.float-btn { position: fixed; z-index: 60; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 0; cursor: pointer; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: transform .2s, opacity .3s; }
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 18px; height: 18px; }
.whatsapp-btn { left: 1rem; bottom: 1rem; background: #22c55e; }
.backtop-btn { right: 1rem; bottom: 1rem; background: linear-gradient(135deg, #2563eb, #0ea5e9); box-shadow: 0 8px 22px rgba(29, 78, 216, .42); }
.backtop-btn:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 12px 28px rgba(29, 78, 216, .52); }
.backtop-btn.hidden { display: none; }

/* ================= Pages: about / gallery / records / contact ================= */
.text-link { color: var(--teal-dark); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.about-card h2 { color: var(--teal-darker); margin-bottom: .75rem; }
.about-card p { margin-bottom: .6rem; color: var(--text); }
.about-card .about-rich { color: var(--text); line-height: 1.75; }
.about-card .about-rich > *:last-child { margin-bottom: 0; }
.about-card .about-rich h3 { color: var(--teal-darker); font-size: 1.2rem; margin: 0 0 .5rem; }
.about-card .about-rich h4,
.about-card .about-rich h5 { color: var(--teal-darker); font-size: 1rem; margin: 1.1rem 0 .4rem; }
.about-card .about-rich p { margin-bottom: .6rem; }
.about-card .about-rich ul,
.about-card .about-rich ol { margin: 0 0 .8rem 1.3rem; padding: 0; }
.about-card .about-rich li { margin-bottom: .35rem; }
.about-card .about-rich a { color: var(--teal); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.about-card .about-rich a:hover { color: var(--teal-darker); }

/* About hero (first section) */
.about-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.25rem; align-items: start; padding: 2rem; background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #eef6ff 100%); }
.about-hero::before { content: ''; position: absolute; top: -110px; right: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .13), transparent 70%); pointer-events: none; }
.about-hero-copy { position: relative; min-width: 0; }
.about-hero-copy h2 { font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; color: var(--teal-darker); margin-bottom: .85rem; }
.about-hero-body { position: relative; }
.about-hero-body.is-collapsed { max-height: 13rem; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(180deg, #000 45%, rgba(0, 0, 0, .25) 100%); }
.about-hero-body.is-collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4.75rem; pointer-events: none; -webkit-backdrop-filter: blur(3.5px); backdrop-filter: blur(3.5px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 85%); mask-image: linear-gradient(180deg, transparent, #000 85%); }
.about-more-btn { display: none; align-items: center; gap: .35rem; margin-top: .9rem; padding: .42rem 1rem; border-radius: 999px; border: 1px solid #bfdbfe; background: #eff6ff; color: var(--teal-dark); font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.about-more-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.about-more-btn svg { width: 13px; height: 13px; transition: transform .25s; }
.about-more-btn.is-open svg { transform: rotate(180deg); }
.about-hero-body.is-collapsed + .about-more-btn,
.about-more-btn.is-open { display: inline-flex; }
.about-hero-media { position: relative; margin: 0; }
.about-hero-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 8px #fff, 0 0 0 9.5px #bfdbfe, 0 18px 36px rgba(15, 23, 42, .16); }
.about-hero-badge { position: absolute; left: 1.1rem; bottom: 1.1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .85rem; border-radius: 999px; background: rgba(15, 23, 42, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.about-hero-badge::before { content: '🏆'; font-size: .8rem; }
@media (max-width: 860px) {
    .about-hero { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.5rem; }
    .about-hero-media { width: 100%; max-width: 420px; margin: 0 auto; }
    .about-hero-body.is-collapsed { max-height: 7.2rem; }
}
@media (max-width: 560px) {
    .about-hero { padding: 1.15rem; }
    .about-hero-copy h2 { font-size: 1.15rem; }
    .about-hero-media { max-width: 300px; }
    .about-hero-media img { box-shadow: 0 0 0 6px #fff, 0 0 0 7px #bfdbfe, 0 12px 26px rgba(15, 23, 42, .14); }
    .about-hero-body.is-collapsed { max-height: 6.4rem; }
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.stat-card { text-align: center; padding: 1.75rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--teal-dark); }
.stat-label { font-size: .88rem; color: var(--muted); font-weight: 500; }
.stat-icon { width: 46px; height: 46px; margin: 0 auto .6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #dbeafe; transition: transform .25s; }
.stat-card:hover .stat-icon { transform: translateY(-2px); }
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.gold { background: #fffbeb; color: #b45309; box-shadow: inset 0 0 0 1px #fde68a; }
.stat-icon.green { background: #ecfdf5; color: #047857; box-shadow: inset 0 0 0 1px #a7f3d0; }
.stat-icon.violet { background: #f5f3ff; color: #6d28d9; box-shadow: inset 0 0 0 1px #ddd6fe; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.about-columns .card h2 { color: var(--teal-darker); margin-bottom: .75rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); transition: .25s; }
.gallery-item:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 12px 26px rgba(0,0,0,.12); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.table-card { padding: 0; overflow-x: auto; }
.record-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.record-table th { text-align: left; padding: .8rem 1rem; background: #eff6ff; color: var(--teal-darker); font-weight: 700; border-bottom: 2px solid #bfdbfe; }
.record-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.record-table tr:last-child td { border-bottom: 0; }
.record-table tr:hover td { background: #f8fafc; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.contact-card { text-align: center; padding: 1.75rem 1rem; }
.contact-icon { width: 52px; height: 52px; margin: 0 auto .85rem; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(to right, #2563eb, #0ea5e9); }
.contact-icon svg { width: 22px; height: 22px; color: #fff; }
.contact-card h3 { color: var(--teal-darker); margin-bottom: .4rem; }
.contact-card p { color: var(--muted); font-size: .92rem; }

/* ================= Responsive ================= */
@media (max-width: 1023px) {
    .topbar-name { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .topbar { display: none; }
    .header-row { position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 12px rgba(15,23,42,.08); background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .header-main { background: #fff; }
    .mainnav { background: transparent; box-shadow: none; z-index: 80; }
    .mainnav .nav {
        position: fixed; top: var(--mnav-top, 56px); left: .75rem; z-index: 70;
        width: min(280px, calc(100vw - 1.5rem));
        display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
        background: #fff; color: #0f172a;
        border: 1px solid #e5e7eb; border-top: 0; border-radius: 0 0 14px 14px;
        box-shadow: 0 18px 40px rgba(15,23,42,.22);
        padding: 0; max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
        transform: translateY(-8px) scale(.98); transform-origin: top left;
        transition: max-height .38s cubic-bezier(.4,0,.2,1), opacity .25s ease, transform .28s ease, padding .3s ease, visibility .35s;
    }
    .mainnav .nav.open {
        max-height: calc(100vh - var(--mnav-top, 56px) - .75rem);
        opacity: 1; visibility: visible; overflow-y: auto;
        padding: .5rem .55rem .65rem; transform: translateY(0) scale(1);
        scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
    }
    .mainnav .nav.open::-webkit-scrollbar { width: 4px; }
    .mainnav .nav.open::-webkit-scrollbar-track { background: transparent; }
    .mainnav .nav.open::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
    .menu-toggle { transition: background .25s, color .25s, border-color .25s; }
    .menu-toggle.is-open { background: #1e40af; border-color: #1e40af; color: #fff; }
    .nav-link { display: block; padding: .62rem .8rem; margin: .1rem 0; border-radius: 9px; font-size: .9rem; font-weight: 600; color: #1f2937; transition: background .25s, color .25s; }
    .nav-link:hover { background: #eff6ff; color: #1e40af; }
    .nav-link::after { display: none; }
    .nav-link.active { background: #dbeafe; border-radius: 9px; color: #1e40af; box-shadow: inset 3px 0 0 #1d4ed8; }
    .menu-toggle { display: block; order: 1; width: 30px; height: 30px; padding: 0; font-size: .92rem; line-height: 1; border-radius: 7px; }
    .brand { order: 2; margin-right: auto; }
    .header-lang { display: flex; order: 3; }
    .header-lang a { padding: .25rem .6rem; }
    .search-toggle { display: block; order: 4; }
    .search-wrap { display: none; }
    .btn-cta { display: none; }
    .topbar .lang-switch, .topbar .socials { display: none; }
    .nav-cta-mobile { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin: .55rem 0 .1rem; padding: .62rem 1.25rem; border-radius: 9px; background: linear-gradient(to right, #2563eb, #0284c7); color: #fff; font-size: .88rem; font-weight: 700; box-shadow: 0 4px 12px rgba(29, 78, 216, .3); }
    .nav-cta-mobile svg { width: 1rem; height: 1rem; }
    .mobile-search.open { display: block; padding: .6rem 0; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.9); }
    .mobile-search .search-form { display: flex; gap: .5rem; }
    .mobile-search input { flex: 1; }
    .site-main { padding-bottom: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.35rem; padding: 1.75rem 0 1.5rem; }
    .site-footer h3 { margin-bottom: .65rem; }
    .support-list { width: 100%; }
    .support-pill { max-width: 320px; }
    .footer-socials { justify-content: center; margin-top: .9rem; }
}
@media (max-width: 560px) {
    .site-main { padding-bottom: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.4rem 0 1.2rem; }
    .site-footer h3 { margin-bottom: .5rem; font-size: 1rem; line-height: 1.35; }
    .about-columns { grid-template-columns: 1fr; }
    .support-list { gap: .6rem; }
    .support-pill { max-width: none; width: 100%; padding: .8rem 1.1rem; }
    .support-pill span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .quick-links li { margin-bottom: .45rem; padding-bottom: .15rem; line-height: 1.4; }
    .contact-list { gap: .55rem; line-height: 1.45; }
    .fb-wrap { width: 82%; max-width: 300px; }
    .fb-iframe { height: 220px; }
    .footer-bottom { padding: .7rem 0; font-size: .78rem; }
    .float-btn { width: 40px; height: 40px; }
    .float-btn svg { width: 17px; height: 17px; }
    .whatsapp-btn { left: .8rem; bottom: .8rem; }
    .backtop-btn { right: .8rem; bottom: .8rem; }
    .brand-logo-img { height: 36px; }
    .btn-cta { padding: .5rem 1rem; font-size: .8rem; }
}

/* ===== Mobile bottom navigation ===== */
.mob-bottom-nav { display: none; }
@media (max-width: 768px) {
    .mob-bottom-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
        display: grid; grid-template-columns: repeat(5, 1fr);
        background: linear-gradient(100deg, #0b1a33 0%, #1e40af 55%, #2563eb 100%);
        border-top: 1px solid rgba(255, 255, 255, .18);
        box-shadow: 0 -8px 22px rgba(2, 6, 23, .22);
        padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
    }
    .mbn-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
        padding: 5px 2px; border: 0; background: transparent; color: rgba(255, 255, 255, .82);
        font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1.15;
        text-decoration: none; cursor: pointer; transition: color .2s ease, transform .15s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .mbn-item svg { width: 23px; height: 23px; }
    .mbn-item.active, .mbn-item--on { color: #fbbf24; }
    .mbn-item:active { transform: scale(.93); }
    .footer-bottom { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .whatsapp-btn, .backtop-btn { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .mainnav .nav.open { max-height: calc(100vh - var(--mnav-top, 56px) - 88px - env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
    .mbn-item { font-size: 9px; gap: 4px; }
    .mbn-item svg { width: 21px; height: 21px; }
}

/* ===== Match Detail / Scoreboard ===== */
.sb-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; box-shadow: 0 10px 25px rgba(15,23,42,.08); padding: 1.5rem; max-width: 1152px; margin: 0 auto; }
.sb-topline { text-align: center; line-height: 1; margin-top: .35rem; }
.sb-topline:first-child { margin-top: 0; }
.sb-matchname { font-size: .75rem; color: #dc2626; font-weight: 600; }
.sb-date { font-size: .75rem; color: #9ca3af; }
.sb-venue { font-size: .75rem; color: #6b7280; }
.sb-toss { font-size: .75rem; color: #1d4ed8; font-weight: 600; }
.sb-names { display: flex; align-items: center; justify-content: space-between; max-width: 42rem; margin: 1.25rem auto 1.5rem; padding: 0 1rem; gap: 1rem; }
.sb-name { flex: 1; font-size: 1.25rem; font-weight: 700; color: #1f2937; letter-spacing: .025em; }
.sb-name-right { text-align: right; }
.sb-name-left { text-align: left; }
.sb-vs { flex-shrink: 0; margin: 0 1rem; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: #ef4444; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(239,68,68,.35); }
.sb-vs span { color: #fff; font-size: .8rem; font-weight: 700; }
.sb-columns { display: flex; align-items: flex-start; justify-content: center; gap: 3rem; }
.sb-team { text-align: center; width: 12rem; }
.sb-logo-row { display: flex; justify-content: center; margin-bottom: .5rem; }
.sb-logo { width: 4rem; height: 4rem; border-radius: 999px; object-fit: cover; border: 2px solid #bfdbfe; box-shadow: 0 2px 6px rgba(15,23,42,.12); }
.sb-logo-fallback { width: 4rem; height: 4rem; border-radius: 999px; background: #2563eb; border: 2px solid #bfdbfe; box-shadow: 0 2px 6px rgba(15,23,42,.12); color: #fff; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sb-teamname { font-size: .8rem; font-weight: 600; color: #4b5563; text-transform: uppercase; margin-bottom: .25rem; }
.sb-score { font-size: 1.5rem; font-weight: 700; color: #111827; }
.sb-score-w { color: #4b5563; }
.sb-overs { font-size: .75rem; color: #6b7280; margin-top: .15rem; min-height: 1rem; }
.sb-result { text-align: center; min-width: 9rem; padding-top: 2rem; }
.sb-result-label { font-size: .7rem; color: #9ca3af; text-transform: uppercase; margin-bottom: .15rem; }
.sb-result-text { color: #1d4ed8; font-size: 0.875rem; font-weight: 600; }
.sb-result-text.sb-result-lost { color: #dc2626; }
.sb-result-text.sb-result-pending { color: #9ca3af; }
.sb-divider { border-top: 1px solid #e5e7eb; margin: .5rem 0; }
.sb-extra { margin-top: .5rem; display: flex; align-items: center; justify-content: center; gap: .35rem; }
.sb-extra-icon { font-size: 1rem; }
.sb-extra-text { font-size: .8rem; font-weight: 600; color: #1d4ed8; }
.sb-tabs-card { position: sticky; top: var(--sb-tabs-top, 45px); z-index: 45; background: #fff; border: 1px solid #e5e7eb; border-bottom: 0; border-radius: 1rem 1rem 0 0; box-shadow: 0 10px 25px rgba(15,23,42,.08); padding: .6rem var(--sb-pad-x, 1.5rem); max-width: 1152px; margin: 1rem auto 0; }
.sb-tabs { display: flex; justify-content: flex-start; gap: .25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sb-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 769px) { .sb-tabs { justify-content: center; } }
.sb-tab-btn { flex-shrink: 0; padding: .6rem 1.25rem; font-size: .85rem; font-weight: 600; border: 0; background: transparent; color: #4b5563; border-radius: .5rem; cursor: pointer; transition: all .2s ease; }
.sb-tab-btn:hover { background: #eff6ff; color: #1d4ed8; }
.sb-tab-btn.active { background: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .35); }
.sb-content-card { background: #fff; border: 1px solid #e5e7eb; border-top: 0; border-radius: 0 0 1rem 1rem; box-shadow: 0 10px 25px rgba(15,23,42,.08); padding: 1.5rem var(--sb-pad-x, 1.5rem); max-width: 1152px; margin: 0 auto; }
.sb-tab-content { display: none; }
.sb-tab-content.active { display: block; }
.sb-coming { text-align: center; padding: 2.5rem 1rem; }
.sb-coming-icon { font-size: 2rem; margin-bottom: .5rem; }
.sb-coming h3 { font-size: 1.05rem; font-weight: 700; color: #1f2937; margin-bottom: .35rem; }
.sb-coming p { font-size: .85rem; color: #6b7280; }
.sb-info { max-width: 40rem; margin: 0 auto; }
.sb-info-row { display: flex; align-items: flex-start; gap: 1rem; padding: .75rem .25rem; border-bottom: 1px solid #f3f4f6; font-size: .9rem; }
.sb-info-row:last-child { border-bottom: 0; }
.sb-info-label { flex: 0 0 7rem; font-weight: 600; color: #6b7280; text-transform: uppercase; font-size: .75rem; padding-top: .15rem; }
.sb-info-value { color: #1f2937; font-weight: 500; }

@media (max-width: 760px) {
    .sb-card { padding: .65rem .6rem .75rem; border-radius: .85rem; }
    .sb-topline { line-height: 1.25; }
    .sb-matchname, .sb-date, .sb-venue, .sb-toss { font-size: .68rem; }
    .sb-names { display: none; }
    .sb-columns { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: .3rem; margin-top: .55rem; }
    .sb-team { width: auto; flex: 1 1 0; min-width: 0; }
    .sb-logo-row { margin-bottom: .25rem; }
    .sb-logo, .sb-logo-fallback { width: 2.85rem; height: 2.85rem; font-size: 1.1rem; }
    .sb-teamname { display: block; font-size: .64rem; line-height: 1.15; margin-bottom: .2rem; overflow-wrap: anywhere; }
    .sb-score { font-size: 1.2rem; line-height: 1.15; }
    .sb-overs { font-size: .66rem; margin-top: .1rem; min-height: 0; }
    .sb-result { flex: 0 1 34%; min-width: 0; padding-top: .3rem; }
    .sb-result-label { font-size: .58rem; }
    .sb-result-text { font-size: .7rem; line-height: 1.25; overflow-wrap: anywhere; }
    .sb-divider { margin: .35rem 0; }
    .sb-pom { margin-top: .25rem; font-size: .65rem; line-height: 1.25; }
    .sb-pom .sb-pom-label { display: inline; margin-right: .15rem; font-size: .58rem; line-height: 1.2; }
    .sb-pom-link { font-size: .65rem; overflow-wrap: anywhere; }
    .sb-info-row { flex-direction: column; gap: .15rem; }
}
@media (max-width: 360px) {
    .sb-teamname { font-size: .6rem; }
    .sb-score { font-size: 1.1rem; }
}
img.team-logo.opponent { background: #fff; }

/* ===== Players Index (100% Transparent Card + Logo Watermark + Frosted Bottom Bar) ===== */
.players-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; text-align: left; }
@media (max-width: 768px) { .players-head { flex-direction: column; align-items: center; } }
.players-title { font-size: 2rem; font-weight: 700; background: linear-gradient(90deg, #2563eb, #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.player-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.filter-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #1d4ed8; background: transparent; border: 1.5px solid #2563eb; transition: all .2s ease; cursor: pointer; text-decoration: none; }
.filter-btn:hover { background: #eff6ff; border-color: #1d4ed8; color: #1e40af; transform: translateY(-2px); box-shadow: 0 5px 14px rgba(37, 99, 235, .18); }
.filter-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(37, 99, 235, .15); }
.filter-btn.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(37, 99, 235, .3); }
.filter-btn.active:hover { color: #fff; border-color: transparent; box-shadow: 0 7px 18px rgba(37, 99, 235, .38); }
.filter-btn.clear-btn { color: #dc2626; border-color: #fca5a5; }
.filter-btn.clear-btn:hover { background: #fef2f2; border-color: #ef4444; color: #b91c1c; box-shadow: 0 5px 14px rgba(220, 38, 38, .16); }

.pcard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pcard-grid > .card { grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem; }

.pcard {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    transition: box-shadow .3s ease, border-color .3s ease;
}
.pcard:has(.pcard-img-wrap:hover) { box-shadow: 0 20px 40px rgba(0,0,0,.12); border-color: rgba(37, 99, 235, .35); }

.pcard-img-wrap { position: relative; height: 300px; overflow: hidden; background: transparent !important; }
.pcard-img-wrap img.pcard-bg-logo {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72%;
    height: 72%;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    opacity: 0.22;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    filter: none !important;
}
.pcard-img-wrap img:not(.pcard-bg-logo) {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: transparent !important;
    transition: transform .6s cubic-bezier(.175,.885,.32,1.275), filter .3s ease;
}
.pcard-img-wrap:hover img:not(.pcard-bg-logo) { transform: scale(1.05); }

.pcard-initials { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: transparent; color: #1d4ed8; font-size: 3.5rem; font-weight: 700; }
.pcard-tag { position: absolute; top: 12px; right: 0; z-index: 6; background: #bfdbfe; color: #1e40af; font-size: 11px; font-weight: 600; padding: 4px 14px 4px 16px; border-radius: 20px 0 0 20px; box-shadow: 0 2px 8px rgba(37, 99, 235, .25); letter-spacing: .3px; }

.pcard-overlay { position: absolute; inset: 0; z-index: 5; background: linear-gradient(180deg, rgba(167, 139, 250, 0.55) 0%, rgba(76, 29, 149, 0.75) 100%); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.pcard-img-wrap:hover .pcard-overlay { opacity: 1; pointer-events: auto; }
.pcard-overlay h4 { color: #fff; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.pcard-stats { display: flex; gap: 1.25rem; }
.pcard-stat { display: flex; flex-direction: column; align-items: center; }
.pcard-statnum { color: #fff; font-size: 1.4rem; font-weight: 700; }
.pcard-statlabel { color: rgba(255,255,255,.75); font-size: .68rem; text-transform: uppercase; }
.pcard-viewbtn { background: #fff; color: #1d4ed8; font-size: .78rem; font-weight: 700; padding: .4rem 1rem; border-radius: 999px; transition: transform .2s ease; }
.pcard-viewbtn:hover { transform: scale(1.05); }

.pcard-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 7;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.16);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pcard-roleicon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; overflow: hidden; }
.pcard-icon-img { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; }
.pcard-name { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid rgba(255,255,255,.3); padding-left: 10px; }
.pcard-star { color: #fcd34d; font-size: 12px; }
.pcard-rolepill { display: none; font-size: 9px; color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); padding: 2px 10px; border-radius: 20px; white-space: nowrap; }

/* ===== Player Profile ===== */
.pprofile { background: #fff; border-radius: 1rem; border: 1px solid #e5e7eb; box-shadow: 0 10px 30px rgba(15,23,42,.08); padding: 2rem; max-width: 1080px; margin: 0 auto; }
.pprofile-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; position: relative; z-index: 1; }
.pimg-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.pimg-glow { position: absolute; inset: -4px; background: linear-gradient(to right, #60a5fa, #60a5fa); border-radius: 16px; filter: blur(8px); opacity: .25; transition: opacity .3s; }
.pimg-wrap:hover .pimg-glow { opacity: .4; }
.pimg-box { position: relative; background: #eff6ff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04); width: 100%; max-width: 384px; aspect-ratio: 3/4; margin: 0 auto; }
.pimg-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #eff6ff; }
.pimg-initials { position: absolute; inset: 0; background: linear-gradient(to bottom right, #60a5fa, #1d4ed8); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; font-weight: 700; }
.pinfo-wrap { display: flex; flex-direction: column; padding: 1rem; }
.pname-wrap { position: relative; display: inline-block; }
.pname-wrap h1 { font-size: 36px; font-weight: 700; color: #1f2937; margin-bottom: 8px; }
.pname-underline { position: absolute; bottom: -8px; left: 0; width: 33.333%; height: 4px; background: linear-gradient(to right, #60a5fa, #60a5fa); border-radius: 9999px; }
.prole-badge { margin-top: 20px; }
.prole-badge span { display: inline-block; background: #2563eb; color: #fff; padding: 6px 16px; border-radius: 9999px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.pstyle-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pbadge { display: inline-flex; align-items: center; gap: .3rem; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 9999px; }
.pbadge-bat { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.pbadge-bowl { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.pbadge-jersey { background: #f9fafb; color: #374151; border: 1px solid #e5e7eb; }
.pdetails-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.pdetail-card { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 12px; padding: 12px 14px; }
.pdetail-label { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.pdetail-value { font-size: 14px; font-weight: 600; color: #1f2937; margin-top: 4px; }
.pstats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.pstat-item { position: relative; overflow: hidden; border: 1px solid #f3f4f6; border-radius: 14px; padding: 16px; text-align: center; background: #fff; transition: box-shadow .3s ease; }
.pstat-item:hover { box-shadow: 0 10px 25px rgba(15,23,42,.1); }
.pstat-iconbox { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 1.1rem; }
.pstat-iconbox.teal { background: #eff6ff; color: #1d4ed8; }
.pstat-iconbox.red { background: #fef2f2; color: #dc2626; }
.pstat-iconbox.amber { background: #fffbeb; color: #d97706; }
.pstat-number { font-size: 1.6rem; font-weight: 700; }
.pstat-number.teal { color: #1d4ed8; }
.pstat-number.red { color: #dc2626; }
.pstat-number.amber { color: #d97706; }
.pstat-label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.pbio { margin-top: 20px; color: #4b5563; font-size: .92rem; line-height: 1.7; }

/* ===== Teams Index ===== */
.teams-head { position: relative; padding-left: 1rem; margin-bottom: 2rem; }
.teams-headbar { position: absolute; left: 0; top: .25rem; height: 2.25rem; width: 4px; border-radius: 999px; background: #2563eb; }
.teams-title { font-size: 1.75rem; font-weight: 700; text-transform: uppercase; color: #111827; }
.teams-sub { margin-top: .25rem; font-size: .85rem; color: #6b7280; }
.tcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tcard { position: relative; overflow: hidden; border-radius: 1.5rem; background: linear-gradient(to bottom, #fff, #f9fafb); box-shadow: 0 30px 80px -25px rgba(0,0,0,.25); padding: .5rem 0 0; display: block; transition: all .5s ease; }
.tcard:hover { transform: translateY(-12px); box-shadow: 0 50px 120px -30px rgba(2, 132, 199, .45); }
.tcard-logo-row { display: flex; justify-content: center; padding-top: 2.5rem; position: relative; z-index: 10; }
.tcard-logo-ring { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: 999px; border: 1px solid #e5e7eb; background: rgba(255,255,255,.7); backdrop-filter: blur(12px); }
.tcard-logo { width: 4rem; height: 4rem; border-radius: 999px; object-fit: contain; }
.tcard-logo-fallback { width: 4rem; height: 4rem; border-radius: 999px; background: linear-gradient(135deg, #60a5fa, #1d4ed8); color: #fff; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tcard-body { position: relative; z-index: 10; padding: 1.5rem 2rem 2rem; text-align: center; }
.tcard-name { font-size: 1.25rem; font-weight: 700; color: #111827; transition: color .3s ease; }
.tcard:hover .tcard-name { color: #0ea5e9; }
.tcard-short { margin-top: .25rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: #9ca3af; }
.tcard-divider { margin: 1.25rem auto 0; height: 1px; width: 5rem; background: linear-gradient(to right, transparent, rgba(147, 197, 253, .6), transparent); }
.tcard-pills { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; font-size: .72rem; font-weight: 600; }
.tpill { border-radius: 999px; padding: .35rem 1rem; }
.tpill-gray { background: rgba(255,255,255,.7); color: #374151; box-shadow: inset 0 0 0 1px #e5e7eb; }
.tpill-win { background: rgba(2, 132, 199, .1); color: #0369a1; box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .4); }
.tpill-loss { background: rgba(244,63,94,.1); color: #e11d48; box-shadow: inset 0 0 0 1px rgba(253,164,175,.4); }

/* ===== Team Profile ===== */
.tprof-header { max-width: 960px; margin: 0 auto 2.5rem; }
.tprof-header-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 2rem; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.7); backdrop-filter: blur(20px); box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.tprof-logo-ring { flex-shrink: 0; width: 8rem; height: 8rem; overflow: hidden; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tprof-logo { width: 100%; height: 100%; object-fit: cover; }
.tprof-logo-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, #60a5fa, #1d4ed8); color: #fff; font-size: 2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tprof-info { flex: 1; text-align: center; }
.tprof-name { font-size: 1.75rem; font-weight: 600; color: #111827; }
.tprof-short { font-size: .85rem; font-weight: 400; color: #9ca3af; margin-left: .5rem; }
.tprof-location { margin-top: .5rem; font-size: .85rem; color: #6b7280; }
.tprof-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 960px; margin: 0 auto 3rem; }
.tstat { position: relative; border-radius: 1rem; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.7); backdrop-filter: blur(16px); box-shadow: 0 2px 10px rgba(0,0,0,.04); padding: 1.25rem .75rem; text-align: center; transition: box-shadow .3s ease; }
.tstat:hover { box-shadow: 0 10px 25px rgba(15,23,42,.1); }
.tstat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 1rem 1rem 0 0; }
.tstat-gray::before { background: rgba(17,24,39,.6); }
.tstat-emerald::before { background: #0284c7; }
.tstat-rose::before { background: #f43f5e; }
.tstat-amber::before { background: #f59e0b; }
.tstat-lime::before { background: #84cc16; }
.tstat h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: #6b7280; }
.tstat p { margin-top: .5rem; font-size: 1.75rem; font-weight: 700; }
.tstat-gray p { color: #111827; }
.tstat-emerald p { color: #0369a1; }
.tstat-rose p { color: #e11d48; }
.tstat-amber p { color: #d97706; }
.tstat-lime p { color: #4d7c0f; }
.tprof-tabs { display: flex; gap: 2rem; overflow-x: auto; border-bottom: 1px solid #fff; max-width: 960px; margin: 0 auto 1.5rem; }
.tprof-tab { position: relative; padding-bottom: .5rem; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; color: #1f2937; background: none; border: 0; cursor: pointer; transition: color .2s ease; white-space: nowrap; }
.tprof-tab:hover, .tprof-tab.active { color: #2563eb; }
.tprof-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; border-radius: 999px; background: #2563eb; }
.tprof-panel { display: none; max-width: 960px; margin: 0 auto 1rem; border: 1px solid #e5e7eb; border-radius: .5rem; background: #fff; padding: 1.5rem; }
.tprof-panel.active { display: block; }
.tprof-panel h2 { font-size: 1.15rem; font-weight: 700; color: #111827; margin-bottom: .75rem; }
.tprof-panel p { color: #4b5563; line-height: 1.7; font-size: .92rem; }
.tprof-stat-tabs { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem; margin-bottom: 1.1rem; border-radius: 999px; background: #eef2f7; border: 1px solid #e2e8f0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tprof-stat-tabs::-webkit-scrollbar { display: none; }
.tprof-stat-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem 1rem; border: 0; border-radius: 999px; background: transparent; color: #475569; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.tprof-stat-tab:hover { color: #1d4ed8; }
.tprof-stat-tab.active { background: #fff; color: #1d4ed8; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.tprof-stat-tabicon { font-size: .95rem; line-height: 1; }
.tprof-stat-tabcount { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: .68rem; font-weight: 700; }
.tprof-stat-tab.active .tprof-stat-tabcount { background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; }
.tprof-stat-panel { display: none; }
.tprof-stat-panel.active { display: block; animation: tprofStatIn .28s ease; }
@keyframes tprofStatIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.tprof-stats-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: .8rem; }
.tprof-statcol { background: #fff; border: 1px solid #e8edf5; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tprof-statcol:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 10px 24px -12px rgba(37,99,235,.35); }
.tprof-statcol h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #f8fafc; border-bottom: 1px solid #eef2f7; color: #334155; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .55rem .85rem; border-radius: 0; margin: 0; }
.tprof-statcol h3::after { content: attr(data-icon); font-size: .95rem; opacity: .85; }
.tprof-statlist { list-style: none; padding: .35rem .55rem .55rem; margin: 0; }
.tprof-statlist li { display: flex; align-items: center; padding: .4rem .35rem; border-bottom: 1px solid #f1f5f9; font-size: .8rem; border-radius: 8px; transition: background .18s ease; }
.tprof-statlist li:last-child { border-bottom: 0; }
.tprof-statlist li:hover { background: #eff6ff; }
.tprof-statlist li::before { content: attr(data-rank); display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: .45rem; border-radius: 50%; background: #e2e8f0; color: #475569; font-size: .62rem; font-weight: 700; flex: 0 0 auto; }
.tprof-statlist li[data-rank="1"]::before { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
.tprof-statlist li.muted { color: #9ca3af; font-size: .78rem; }
.tprof-statlist li.muted::before { display: none; }
.tprof-statlist a { color: #0f172a; font-weight: 600; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tprof-statlist a:hover { color: #1d4ed8; text-decoration: underline; }
.tprof-statlist span { font-weight: 800; color: #1d4ed8; margin-left: .6rem; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.tprof-matchlist { display: flex; flex-direction: column; gap: .5rem; }
.tprof-matchrow { display: grid; grid-template-columns: 5rem 1fr 6rem 1.4fr; align-items: center; gap: .75rem; padding: .75rem 1rem; border: 1px solid #f3f4f6; border-radius: .75rem; background: #f9fafb; font-size: .85rem; transition: all .2s ease; }
.tprof-matchrow:hover { border-color: #2563eb; background: #eff6ff; }
.tmr-matchno { font-weight: 700; color: #dc2626; font-size: .75rem; }
.tmr-teams { font-weight: 600; color: #1f2937; }
.tmr-date { color: #6b7280; font-size: .78rem; }
.tmr-result { color: #6b7280; font-size: .8rem; }
.tmr-result.win { color: #0369a1; font-weight: 600; }
.tmr-result.loss { color: #e11d48; font-weight: 600; }

/* ===== Scoreboard summary tab ===== */
.sb-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sb-sum-block { overflow: hidden; border: 1px solid #e5e7eb; border-radius: .75rem; background: #fff; }
.sb-sum-head { display: flex; align-items: center; justify-content: space-between; background: #2563eb; color: #fff; padding: .75rem 1rem; font-weight: 600; }
.sb-sum-head .sb-sum-score { font-weight: 700; }
.sb-sum-row { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; border-top: 1px solid #f3f4f6; font-size: .88rem; }
.sb-sum-row span:first-child { color: #6b7280; font-weight: 600; font-size: .78rem; text-transform: uppercase; }
.sb-sum-row span:last-child { color: #1f2937; font-weight: 500; }

@media (max-width: 1024px) {
    .pcard-grid { grid-template-columns: repeat(3, 1fr); }
    .tcard-grid { grid-template-columns: repeat(2, 1fr); }
    .tprof-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .pcard-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .pprofile-grid { grid-template-columns: 1fr; }
    .pname-wrap h1 { font-size: 28px; }
    .pdetails-grid, .pstats-grid { grid-template-columns: 1fr 1fr; }
    .tcard-grid { grid-template-columns: 1fr; }
    .tprof-stats { grid-template-columns: 1fr 1fr; }
    .tprof-stats-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .tprof-stat-tabs { display: flex; width: 100%; }
    .tprof-matchrow { grid-template-columns: 1fr; gap: .25rem; }
    .sb-summary { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pcard-grid { grid-template-columns: 1fr; }
    .pcard-img-wrap { height: 320px; }
    .tprof-stats-cols { grid-template-columns: 1fr; }
    .tprof-stat-tab { padding: .45rem .8rem; font-size: .78rem; }
}

/* ===== Full Scorecard ===== */
.score-subtabs, .squad-subtabs { display: flex; justify-content: flex-start; margin-bottom: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.score-subtabs::-webkit-scrollbar, .squad-subtabs::-webkit-scrollbar { display: none; }
@media (min-width: 769px) { .score-subtabs, .squad-subtabs { justify-content: center; } }
.subtab-pair { display: flex; }
.score-subtab-btn, .squad-subtab-btn, .overs-subtab-btn { flex-shrink: 0; padding: .625rem 2rem; font-size: .875rem; font-weight: 600; border: 1px solid #e5e7eb; background: #f3f4f6; color: #374151; cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.score-subtab-btn:first-child, .squad-subtab-btn:first-child, .overs-subtab-btn:first-child { border-radius: 999px 0 0 999px; }
.score-subtab-btn:last-child, .squad-subtab-btn:last-child, .overs-subtab-btn:last-child { border-radius: 0 999px 999px 0; margin-left: -1px; }
.score-subtab-btn:hover, .squad-subtab-btn:hover, .overs-subtab-btn:hover { background: #e5e7eb; }
.score-subtab-btn.active, .squad-subtab-btn.active, .overs-subtab-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.scorecard-innings, .squad-content { display: none; }
.scorecard-innings.active, .squad-content.active { display: block; }

/* ===== Summary cards ===== */
.sum-card { overflow: hidden; border: 1px solid #e5e7eb; border-radius: .5rem; background: #fff; margin-bottom: 1.5rem; }
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #2563eb; color: #fff; padding: .75rem 1rem; }
.sum-head .sum-team { font-weight: 600; font-size: 1.05rem; text-transform: uppercase; color: #fff; text-decoration: none; }
.sum-head .sum-team:hover { text-decoration: underline; }
.sum-head .sum-score { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.sum-head .sum-score small { font-size: .875rem; font-weight: 500; }
.sum-body { padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 5rem; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.sum-row:last-child { margin-bottom: 0; }
.sum-name { color: #1d4ed8; font-size: .875rem; text-decoration: none; min-width: 0; }
a.sum-name:hover { text-decoration: underline; }
.sum-fig { color: #1f2937; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.sum-fig small { color: #6b7280; font-weight: 400; }

/* ===== Batting card ===== */
.bat-card { overflow: hidden; border: 1px solid #e5e7eb; border-radius: .75rem; background: #fff; }
.bat-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #2563eb; color: #fff; padding: .75rem 1rem; flex-wrap: wrap; }
.bat-head .bat-team { font-weight: 600; font-size: 1.05rem; text-transform: uppercase; }
.bat-head .bat-score { font-weight: 600; white-space: nowrap; }
.bat-head .bat-score span { font-size: .875rem; font-weight: 500; }
.bat-cols, .bat-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2rem 2rem 2rem 2rem 2.5rem; align-items: start; }
.bat-cols { background: #eff6ff; border-bottom: 1px solid #e5e7eb; font-weight: 600; font-size: .8rem; color: #0b1a33; }
.bat-cols > div, .bat-row > div { padding: .5rem; text-align: center; }
.bat-cols > div:first-child, .bat-row > div:first-child { text-align: left; padding-left: .5rem; }
.bat-row { border-top: 1px solid #f3f4f6; font-size: .875rem; }
.bat-player { display: flex; align-items: flex-start; gap: .5rem; min-width: 0; }
.bat-photo { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.bat-photo-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #60a5fa, #1d4ed8); color: #fff; font-size: .8rem; font-weight: 700; }
.player-name-cell { display: grid; grid-template-columns: 1fr; min-width: 0; }
.player-name-link { color: #1d4ed8; text-decoration: none; font-size: .875rem; }
a.player-name-link:hover { text-decoration: underline; }
.dismissal-text { color: #6b7280; font-size: 13px; white-space: nowrap; }
.bat-runs { font-weight: 600; color: #111827; }
.bat-totalrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border-top: 1px solid #e5e7eb; font-size: .875rem; }
.bat-totalrow .t-bold { font-weight: 700; color: #111827; }
.bat-totalrow .t-muted { color: #4b5563; font-size: 13.5px; text-align: right; }
.bat-totalrow .t-muted strong { color: #111827; font-weight: 700; }
.bat-dnb { display: flex; align-items: flex-start; gap: .35rem; padding: .6rem .75rem; border-top: 1px solid #e5e7eb; font-size: .875rem; line-height: 1.6; color: #374151; }
.bat-dnb-label { flex: 0 0 auto; font-weight: 700; color: #111827; }
.bat-dnb-list { min-width: 0; }
.bat-dnb .player-name-link { color: #1d4ed8; font-weight: 500; }
.bat-dnb .player-name-link:hover { text-decoration: underline; }

/* ===== Fall of wickets ===== */
.fow { margin: 0; border: 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; border-radius: 0; overflow: hidden; }
.fow-cols, .fow-row { display: grid; grid-template-columns: 2fr 1fr 1fr; }
.fow-cols { background: #eff6ff; font-weight: 600; color: #374151; border-bottom: 1px solid #e5e7eb; }
.fow-cols > div, .fow-row > div { padding: .5rem .75rem; font-size: .875rem; }
.fow-cols > div:nth-child(2), .fow-row > div:nth-child(2), .fow-cols > div:nth-child(3), .fow-row > div:nth-child(3) { text-align: center; }
.fow-row { border-top: 1px solid #f3f4f6; color: #374151; }

/* ===== Bowling & Squad tables ===== */
.bowl-block { margin: .75rem 0 0; position: relative; }
.bowl-scroll, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.is-scrollable { cursor: grab; user-select: none; -webkit-user-select: none; }
.is-scrollable.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.bowl-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; font-size: .8125rem; color: #374151; }
.bowl-table thead tr, .squad-table thead tr { background: #eff6ff; border-bottom: 1px solid #e5e7eb; }
.bowl-table th, .squad-table th { padding: .5rem; font-weight: 600; text-align: center; white-space: nowrap; }
.bowl-table th:first-child, .squad-table th:first-child, .bowl-table td:first-child, .squad-table td:first-child { text-align: left; padding-left: .75rem; }
.bowl-table td, .squad-table td { padding: .5rem; text-align: center; border-top: 1px solid #f3f4f6; }
.bowl-table tbody tr:hover, .squad-table tbody tr:hover { background: #eff6ff; }
.bowler-name-cell { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.squad-table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; font-size: .8125rem; color: #374151; }
.squad-player-cell { display: flex; align-items: center; gap: .75rem; min-width: 150px; }
.squad-photo { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.squad-photo-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #60a5fa, #1d4ed8); color: #fff; font-size: .72rem; font-weight: 700; }
.t-bold { font-weight: 700; color: #111827; }
.t-teal { color: #1d4ed8; font-weight: 600; }

@media (min-width: 640px) { .bat-cols, .bat-row { grid-template-columns: 1fr 3rem 3rem 3rem 3rem 4rem; } }
@media (min-width: 1024px) { .player-name-cell { grid-template-columns: 250px 1fr; align-items: center; } }

/* ===== Scorecard mobile ===== */
@media (max-width: 768px) {
    .sb-tab-btn { padding: 8px 12px; font-size: 12px; }
    .score-subtab-btn, .squad-subtab-btn, .overs-subtab-btn { padding: 6px 14px; font-size: 12px; }
    .sum-body { gap: 1rem 2rem; padding: .75rem; }
    .sum-row { margin-bottom: .4rem; }
    .sum-name { font-size: .8rem; max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
    .sum-fig { font-size: .8rem; }
    .sum-head .sum-team, .sum-head .sum-score { font-size: .9rem; }
    .sb-tabs-card, .sb-content-card { --sb-pad-x: 1rem; }
    .fow-cols, .fow-row { grid-template-columns: minmax(0, 1.6fr) .8fr .8fr; }
    .fow-row > div { min-width: 0; }
    .fow .player-name-link { display: inline; max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
    .player-name-link { display: inline-block; max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .player-name-cell { min-width: 0; overflow: visible; }
    .player-name-cell .player-name-link { max-width: 9ch; }
    .dismissal-text { white-space: nowrap; overflow: visible; text-overflow: clip; display: inline-block; flex-shrink: 0; font-size: 11px; padding-right: 4px; max-width: none; }
    .bowler-name-cell { min-width: 0; align-items: flex-start; }
    .bowler-name-cell .player-name-link { display: inline; max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
    .bat-dnb { padding: .5rem .6rem; font-size: .8rem; line-height: 1.45; gap: .3rem; }
    .bat-dnb .player-name-link { display: inline; max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
    .sum-name.sum-bowler-name { display: inline-block; max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
    .squad-player-cell { min-width: 0; overflow: hidden; }
    .squad-player-cell .player-name-link { max-width: 9ch; }
    .squad-table, .bowl-table { font-size: 11px; }
    .squad-table th, .squad-table td { padding: 6px 8px; }
    .bowl-scroll, .bat-scroll, .table-scroll { overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #93c5fd transparent; }
    .bowl-scroll::-webkit-scrollbar, .bat-scroll::-webkit-scrollbar, .table-scroll::-webkit-scrollbar { height: 4px; }
    .bowl-scroll::-webkit-scrollbar-track, .bat-scroll::-webkit-scrollbar-track, .table-scroll::-webkit-scrollbar-track { background: transparent; }
    .bowl-scroll::-webkit-scrollbar-thumb, .bat-scroll::-webkit-scrollbar-thumb, .table-scroll::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 999px; }
    .bowl-table { min-width: 500px; }
    .bowl-table th { white-space: normal; font-size: 9.5px; line-height: 1.15; padding: 6px 3px; }
    .bowl-table td { padding: 6px 3px; }
    .bowl-table td:first-child { min-width: 94px; padding-left: .5rem; }
    .bowl-block::after { content: ''; position: absolute; top: 0; right: 0; bottom: 6px; width: 46px; border-radius: 0 10px 10px 0; background: linear-gradient(90deg, rgba(239, 246, 255, 0), rgba(239, 246, 255, .96) 62%); pointer-events: none; opacity: 0; transition: opacity .25s ease; z-index: 2; }
    .bowl-block.can-scroll-right::after { opacity: 1; }
    .bowl-hint-btn { display: none; position: absolute; top: 50%; right: 7px; transform: translateY(-50%); z-index: 3; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #1d4ed8; color: #fff; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 3px 8px rgba(29, 78, 216, .38); align-items: center; justify-content: center; }
    .bowl-block.can-scroll-right .bowl-hint-btn { display: flex; animation: bowlHintNudge 1.5s ease-in-out infinite; }
    @keyframes bowlHintNudge {
        0%, 100% { transform: translate(0, -50%); }
        50% { transform: translate(4px, -50%); }
    }
    .bat-cols > div, .bat-row > div { padding: .5rem .25rem; }
    .bat-head .bat-team, .bat-head .bat-score { font-size: .9rem; }
}
@media (max-width: 480px) {
    .dismissal-text { font-size: 10px; }
    .sum-head .sum-team, .sum-head .sum-score, .bat-head .bat-team, .bat-head .bat-score { font-size: .82rem; }
    .sum-head .sum-score small, .bat-head .bat-score span { font-size: .72rem; }
}

/* ===== Clickable player and team names ===== */
a.sb-name { color: #1f2937; text-decoration: none; }
a.sb-name:hover, a.sb-teamname:hover, .player-card h3 a:hover, .match-names a:hover { color: #1d4ed8; text-decoration: underline; }
a.sb-teamname, .player-card h3 a, .match-names a { color: inherit; text-decoration: none; }
a.bat-team { color: #fff; text-decoration: none; }
a.bat-team:hover { text-decoration: underline; }
a.player-bar-name, a.pcard-name { color: #fff; text-decoration: none; }
a.player-bar-name:hover, a.pcard-name:hover { color: #bfdbfe; }
[data-href] { cursor: pointer; }

/* ===== Live search ===== */
.search-wrap, .mobile-search { position: relative; }
.live-results { position: absolute; top: calc(100% + .4rem); left: 50%; transform: translateX(-50%); width: min(560px, 92vw); background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; box-shadow: 0 12px 30px rgba(15,23,42,.15); max-height: 22rem; overflow-y: auto; z-index: 80; display: none; text-align: left; }
.live-results.open { display: block; }
.live-group { padding: .55rem .9rem .2rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #1d4ed8; }
.live-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem; font-size: .88rem; color: #1f2937; text-decoration: none; }
.live-item:hover { background: #eff6ff; }
.live-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-item img, .live-item .live-fallback { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.live-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #60a5fa, #1d4ed8); color: #fff; font-size: .7rem; font-weight: 700; }
.live-item small { margin-left: auto; color: #9ca3af; font-size: .72rem; white-space: nowrap; flex-shrink: 0; }
.live-empty { padding: .9rem; text-align: center; color: #6b7280; font-size: .85rem; }
@media (max-width: 760px) { .mobile-search .live-results { left: .75rem; right: .75rem; transform: none; width: auto; } }
/* ==================== PART 2 / 2 : Admin Panel, Gallery, Records, Registration, Profile & Pill Pagination ==================== */

/* ---------- Admin Layout & Sidebar ---------- */
.admin-body { font-family: 'Inter', 'Hind Siliguri', sans-serif; background: #eff6ff; margin: 0; overflow-x: hidden; padding-top: 64px; }
.admin-sidebar { position: fixed; left: 0; top: 0; width: var(--sbw); height: 100vh; background: linear-gradient(0deg, #0b74d1, #083b8c); transition: all .3s cubic-bezier(.4, 0, .2, 1); z-index: 1000; overflow-y: auto; overflow-x: hidden; box-shadow: 4px 0 25px rgba(0, 0, 0, .2); border-right: 1px solid rgba(255, 255, 255, .15); box-sizing: border-box; }
.admin-sidebar::-webkit-scrollbar { width: 5px; }
.admin-sidebar::-webkit-scrollbar-track { background: rgba(255, 255, 255, .1); }
.admin-sidebar::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 10px; }
.admin-brand { position: sticky; top: 0; background: rgba(0, 0, 0, .15); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .15); z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; height: 64px; transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.admin-brand a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.admin-brand a:hover { opacity: .85; }
.admin-brand img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 2px solid var(--amber); background: #fff; padding: 2px; transition: all .3s ease; box-sizing: border-box; }
.admin-brand-name { display: block; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.admin-brand-name span { color: var(--amber); }
.admin-brand-sub { display: block; font-size: 9px; color: rgba(255, 255, 255, .8); }
.admin-close { display: none; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .2); color: #fff; cursor: pointer; padding: 8px 10px; border-radius: 10px; transition: all .3s ease; font-size: 18px; line-height: 1; }
.admin-close:hover { background: rgba(255, 255, 255, .25); transform: scale(1.05); }
.admin-nav { padding: 10px 0 20px 0; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 10px 4px 10px; color: rgba(255, 255, 255, .85); text-decoration: none; border-radius: 12px; font-size: 13px; font-weight: 500; transition: all .3s ease; box-sizing: border-box; }
.admin-nav a .admin-ico { width: 22px; font-size: 14px; color: var(--amber); flex-shrink: 0; text-align: center; font-style: normal; }
.admin-nav a:hover:not(.active) { background: rgba(255, 255, 255, .15); color: #fff; transform: translateX(3px); }
.admin-nav a:hover:not(.active) .admin-ico { color: #fff; }
.admin-nav a.active { background: linear-gradient(135deg, var(--amber), var(--amber2)) !important; color: var(--ink) !important; font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.admin-nav a.active .admin-ico { color: var(--ink) !important; }
.admin-nav-label { display: block; padding: 15px 16px 8px 16px; font-size: 10px; text-transform: uppercase; color: var(--amber); font-weight: 700; letter-spacing: .5px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 4px; }
.admin-nav-label:first-of-type { border-top: none; margin-top: 0; }
.admin-nav-ext { margin-left: auto; font-size: 11px; opacity: .7; }
.admin-nav-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.admin-sidebar-footer { margin: 10px 10px 20px 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-sidebar-footer a, .admin-sidebar-footer button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 12px; color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 13px; font-weight: 500; transition: all .3s ease; background: none; border: none; cursor: pointer; font-family: inherit; box-sizing: border-box; }
.admin-sidebar-footer a .admin-ico, .admin-sidebar-footer button .admin-ico { width: 22px; font-size: 14px; color: #f87171; flex-shrink: 0; font-style: normal; }
.admin-sidebar-footer a:hover, .admin-sidebar-footer button:hover { background: rgba(239, 68, 68, .2); color: #fca5a5; }
.admin-sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); z-index: 1040; }
.admin-sidebar-backdrop.show { display: block; }

/* Sidebar dropdown groups */
.admin-dd { margin: 0 10px 4px 10px; }
.admin-dd-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; padding: 10px 14px; border-radius: 12px; cursor: pointer; transition: all .3s ease; color: rgba(255, 255, 255, .85); font-weight: 500; font-size: 13px; background: none; border: none; font-family: inherit; box-sizing: border-box; }
.admin-dd-toggle:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.admin-dd-toggle:hover .admin-ico { color: #fff; }
.admin-dd-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-dd-icon { font-size: 12px; transition: transform .3s ease; flex-shrink: 0; }
.admin-dd-toggle.open .admin-dd-icon { transform: rotate(180deg); }
.admin-dd-menu { overflow: hidden; }
.admin-dd-menu.hidden { display: none; }
.admin-dd-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; margin: 0 0 2px 18px; color: rgba(255, 255, 255, .85); text-decoration: none; border-radius: 12px; font-size: 12px; font-weight: 500; transition: all .3s ease; }
.admin-dd-menu a .admin-ico { width: 18px; font-size: 12px; color: var(--amber); flex-shrink: 0; text-align: center; font-style: normal; }
.admin-dd-menu a:hover:not(.active) { background: rgba(255, 255, 255, .15); color: #fff; }
.admin-dd-menu a.active { background: linear-gradient(135deg, var(--amber), var(--amber2)) !important; color: var(--ink) !important; font-weight: 600; }
.admin-dd-menu a.active .admin-ico { color: var(--ink) !important; }

/* Collapsed desktop state */
.admin-shell.collapsed .admin-sidebar { width: var(--sbw-c); }
.admin-shell.collapsed .admin-sidebar .admin-brand-name, .admin-shell.collapsed .admin-sidebar .admin-brand-sub, .admin-shell.collapsed .admin-sidebar .admin-nav-label, .admin-shell.collapsed .admin-sidebar .admin-nav-ext, .admin-shell.collapsed .admin-sidebar .admin-nav-badge, .admin-shell.collapsed .admin-sidebar .admin-nav-text, .admin-shell.collapsed .admin-sidebar .admin-dd-icon { display: none; }
.admin-shell.collapsed .admin-sidebar .admin-brand { justify-content: center; padding: 12px 0; }
.admin-shell.collapsed .admin-sidebar .admin-brand img { width: 40px; height: 40px; }
.admin-shell.collapsed .admin-sidebar .admin-nav a { justify-content: center; padding: 12px 0; }
.admin-shell.collapsed .admin-sidebar .admin-nav a .admin-ico { margin: 0; font-size: 18px; }
.admin-shell.collapsed .admin-sidebar .admin-dd { margin: 0 10px 4px 10px; }
.admin-shell.collapsed .admin-sidebar .admin-dd-toggle { justify-content: center; padding: 12px 0; }
.admin-shell.collapsed .admin-sidebar .admin-dd-left { justify-content: center; gap: 0; }
.admin-shell.collapsed .admin-sidebar .admin-dd-menu { display: none; }
.admin-shell.collapsed .admin-sidebar .admin-sidebar-footer button { justify-content: center; padding: 10px 0; }
.admin-shell.collapsed .admin-topbar { left: var(--sbw-c); }
.admin-shell.collapsed .admin-wrapper { margin-left: var(--sbw-c); }

/* ---------- Admin Topbar ---------- */
.admin-topbar { position: fixed; top: 0; left: var(--sbw); right: 0; height: 64px; background: linear-gradient(120deg, #0891b2 0%, #2563eb 48%, #6d28d9 100%); background-size: 200% 200%; animation: topbarGradientShift 15s ease infinite; z-index: 999; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; overflow-x: clip; overflow-y: visible; padding: 0 25px; transition: left .3s cubic-bezier(.4, 0, .2, 1); border-bottom: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); box-sizing: border-box; }
@keyframes topbarGradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.admin-topbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.admin-burger { background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); color: #fff; cursor: pointer; padding: 10px 12px; border-radius: 10px; transition: all .3s ease; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-burger:hover { background: rgba(255, 255, 255, .25); transform: scale(1.05); }
.admin-burger .burger-icon { width: 22px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.admin-burger .burger-icon span { display: block; height: 2.5px; width: 100%; background: #fff; border-radius: 3px; transition: all .3s ease; }
.admin-burger.active .burger-icon span:nth-child(1) { transform: translateY(7.75px) rotate(45deg); }
.admin-burger.active .burger-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.admin-burger.active .burger-icon span:nth-child(3) { transform: translateY(-7.75px) rotate(-45deg); }
.admin-topbar-title { color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 500; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-topbar-right { display: flex; align-items: center; gap: 20px; }
.admin-topbar-stats { display: flex; gap: 15px; align-items: center; }
.stat-badge { background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); padding: 6px 16px; border-radius: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; border: 1px dashed rgba(255, 255, 255, .55); transition: all .2s ease; white-space: nowrap; }
.stat-badge:hover { background: rgba(255, 255, 255, .25); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, .1); }
.stat-badge .admin-ico { color: #bae6fd; font-size: 14px; font-style: normal; }
.stat-badge strong { color: #fff; margin-left: 3px; font-size: 15px; }
.visit-btn { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); color: #fff; padding: 8px 20px; border-radius: 30px; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .2px; transition: .25s ease; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); display: flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); }
.visit-btn:hover { background: #fff; color: #1d4ed8; border-color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.admin-profile { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; padding: 4px 0; }
.admin-profile-name { color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 500; }
.admin-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .22); color: #fff; font-size: 15px; font-weight: 700; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, .55); transition: all .3s ease; }
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-profile:hover .admin-avatar { border-color: #fff; transform: scale(1.05); }
.profile-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: rgba(255, 255, 255, .98); backdrop-filter: blur(12px); border-radius: 16px; box-shadow: 0 15px 40px rgba(0, 0, 0, .2); min-width: 200px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .3); z-index: 1000; }
.admin-profile:hover .profile-dropdown, .admin-profile.active .profile-dropdown { display: block; animation: dropdownFade .2s ease; }
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-10px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.profile-dropdown .pd-head { padding: 12px 18px 8px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.profile-dropdown .pd-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.profile-dropdown .pd-role { color: #6c757d; font-size: 12px; margin-top: 2px; }
.profile-dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, .04); font-size: 13px; font-weight: 500; transition: .2s; }
.profile-dropdown a:last-child { border-bottom: none; }
.profile-dropdown a .admin-ico { width: 18px; color: #6c757d; font-size: 14px; font-style: normal; }
.profile-dropdown a:hover { background: rgba(29, 78, 216, .08); color: #1d4ed8; }
.profile-dropdown a.logout-link:hover { background: rgba(231, 76, 60, .08); color: #e74c3c; }

/* ---------- Admin Main, Flash & Tabs ---------- */
.admin-wrapper { margin-left: var(--sbw); transition: margin-left .3s cubic-bezier(.4, 0, .2, 1); min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.admin-main { flex: 1; padding: 25px 30px; min-width: 0; box-sizing: border-box; }
.admin-content { min-width: 0; }
.admin-footer { padding: 1rem 30px; font-size: .8rem; color: #64748b; display: flex; gap: .5rem; align-items: center; }
.admin-footer a { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.admin-flash { display: flex; align-items: center; gap: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 4px solid #22c55e; color: #166534; padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.1rem; font-size: .9rem; box-shadow: 0 4px 12px rgba(34, 197, 94, .08); }
.admin-flash i { flex-shrink: 0; }
.admin-flash-close { margin-left: auto; cursor: pointer; color: inherit; opacity: .7; background: none; border: none; font-size: 18px; line-height: 1; padding: 0 2px; }
.admin-flash-close:hover { opacity: 1; }
.admin-crumb { display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0; }
@media (min-width: 640px) { .admin-crumb { flex-direction: row; align-items: center; justify-content: space-between; } }
.admin-crumb h2 { margin: 0; font-size: 1.05rem; font-weight: 500; color: #111827; }
.admin-crumb ol { display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.admin-crumb ol a { color: #6b7280; text-decoration: none; }
.admin-crumb ol a:hover { color: #1d4ed8; }
.admin-crumb ol li:last-child { color: #374151; }
.tab-container { display: flex; gap: 4px; background: #1d4ed8; border-radius: 16px; padding: 4px; border: 1px solid rgba(255, 255, 255, .2); flex-wrap: wrap; }
.tab-container .tab-btn { padding: 8px 20px; border-radius: 12px; font-size: 13px; font-weight: 500; transition: all .3s ease; color: rgba(255, 255, 255, .8); background: transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; }
.tab-container .tab-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.tab-container .tab-btn.active { background: rgba(255, 255, 255, .2); color: #fff; font-weight: 600; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: 1.5rem; font-weight: 700; color: #1f2937; }
.dash-head p { margin: .25rem 0 0; font-size: .85rem; color: #6b7280; }
.dash-date { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #6b7280; background: #fff; padding: .5rem 1rem; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.dash-date .admin-ico { color: #2563eb; font-style: normal; }
.admin-main .stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .admin-main .stat-cards { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.admin-main .stat-card { position: relative; overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04); padding: 1.1rem 1.25rem; border-left: 4px solid transparent; text-decoration: none; display: block; transition: transform .3s ease, box-shadow .3s ease; animation: fadeInUp .4s ease forwards; }
.admin-main .stat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 25px -12px rgba(0, 0, 0, .2); }
.admin-main .stat-card .sc-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.admin-main .stat-card .sc-label { color: #6b7280; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.admin-main .stat-card .sc-num { font-size: 1.6rem; font-weight: 700; color: #1f2937; margin-top: .25rem; }
@media (min-width: 640px) { .admin-main .stat-card .sc-num { font-size: 1.875rem; } }
.admin-main .stat-card .icon-bg { border-radius: 16px; padding: .75rem; display: flex; align-items: center; justify-content: center; transition: transform .3s ease; }
.admin-main .stat-card .icon-bg .admin-ico { font-size: 1.25rem; font-style: normal; }
.admin-main .stat-card:hover .icon-bg { transform: scale(1.1) rotate(-5deg); }
.admin-main .stat-card .glow { position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; border-radius: 50%; opacity: .1; pointer-events: none; }
.admin-main .stat-card.teal { border-left-color: #2563eb; } .admin-main .stat-card.teal .icon-bg { background: #dbeafe; } .admin-main .stat-card.teal .icon-bg .admin-ico { color: #1d4ed8; } .admin-main .stat-card.teal .glow { background: #2563eb; }
.admin-main .stat-card.blue { border-left-color: #3b82f6; } .admin-main .stat-card.blue .icon-bg { background: #dbeafe; } .admin-main .stat-card.blue .icon-bg .admin-ico { color: #2563eb; } .admin-main .stat-card.blue .glow { background: #3b82f6; }
.admin-main .stat-card.purple { border-left-color: #38bdf8; } .admin-main .stat-card.purple .icon-bg { background: #e0f2fe; } .admin-main .stat-card.purple .icon-bg .admin-ico { color: #0284c7; } .admin-main .stat-card.purple .glow { background: #38bdf8; }
.admin-main .stat-card.orange { border-left-color: #f97316; } .admin-main .stat-card.orange .icon-bg { background: #ffedd5; } .admin-main .stat-card.orange .icon-bg .admin-ico { color: #ea580c; } .admin-main .stat-card.orange .glow { background: #f97316; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.admin-main .stat-card:nth-child(1), .hover-card:nth-child(1) { animation-delay: .05s; }
.admin-main .stat-card:nth-child(2), .hover-card:nth-child(2) { animation-delay: .1s; }
.admin-main .stat-card:nth-child(3), .hover-card:nth-child(3) { animation-delay: .15s; }
.admin-main .stat-card:nth-child(4), .hover-card:nth-child(4) { animation-delay: .2s; }

.dash-mid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .dash-mid { grid-template-columns: 2fr 1fr; } }
.dash-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04); transition: transform .3s ease, box-shadow .3s ease; }
.dash-card:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .15); }
.dash-card-pad { padding: 1.1rem 1.25rem; }
.dash-card-title { font-weight: 600; color: #1f2937; margin: 0 0 1rem; font-size: .85rem; display: flex; align-items: center; }
.dash-card-title .admin-ico { color: #2563eb; margin-right: .5rem; font-style: normal; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
@media (min-width: 640px) { .ms-grid { grid-template-columns: repeat(5, 1fr); } }
.ms-box { padding: .75rem; border-radius: 12px; }
.ms-box .num { font-size: 1.25rem; font-weight: 700; display: block; }
@media (min-width: 640px) { .ms-box .num { font-size: 1.5rem; } }
.ms-box .lbl { font-size: .68rem; color: #4b5563; margin-top: .25rem; display: block; }
@media (min-width: 640px) { .ms-box .lbl { font-size: .75rem; } }
.ms-box.green { background: #f0fdf4; } .ms-box.green .num { color: #16a34a; }
.ms-box.yellow { background: #fefce8; } .ms-box.yellow .num { color: #ca8a04; }
.ms-box.red { background: #fef2f2; } .ms-box.red .num { color: #dc2626; }
.ms-box.gray { background: #f9fafb; } .ms-box.gray .num { color: #6b7280; }
.ms-box.blue { background: #eff6ff; } .ms-box.blue .num { color: #2563eb; }
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.qa-tile { padding: .75rem; border-radius: 12px; text-align: center; text-decoration: none; transition: background .2s ease; display: block; }
.qa-tile .admin-ico { font-size: 1.1rem; display: block; margin-bottom: .25rem; font-style: normal; }
.qa-tile span.lbl { font-size: .72rem; }
.qa-tile.teal { background: #eff6ff; color: #1d4ed8; } .qa-tile.teal:hover { background: #dbeafe; }
.qa-tile.blue { background: #eff6ff; color: #2563eb; } .qa-tile.blue:hover { background: #dbeafe; }
.qa-tile.green { background: #f0fdf4; color: #16a34a; } .qa-tile.green:hover { background: #dcfce7; }
.qa-tile.purple { background: #f0f9ff; color: #0284c7; } .qa-tile.purple:hover { background: #e0f2fe; }

.rm-head { padding: .9rem 1.25rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, rgba(239, 246, 255,  .8), #fff); gap: .75rem; flex-wrap: wrap; }
.rm-head h3 { font-weight: 600; color: #1f2937; margin: 0; font-size: .85rem; display: flex; align-items: center; }
.rm-head h3 .admin-ico { color: #2563eb; margin-right: .5rem; font-style: normal; }
.rm-head h3 .count-chip { margin-left: .5rem; font-size: .7rem; font-weight: 400; color: #9ca3af; background: #f3f4f6; padding: .1rem .5rem; border-radius: 999px; }
.rm-head a { color: #1d4ed8; font-size: .72rem; text-decoration: none; display: flex; align-items: center; gap: .25rem; font-weight: 500; }
.rm-head a:hover { text-decoration: underline; }
.rm-list { display: block; }
.rm-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid #f3f4f6; transition: background .2s ease; }
.rm-row > div:first-child { flex: 1 1 auto; min-width: 0; }
.rm-row:last-child { border-bottom: none; }
.rm-row:hover { background: #f9fafb; }
.rm-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; flex-wrap: wrap; }
.rm-id { font-size: .62rem; font-family: monospace; color: #9ca3af; background: #f3f4f6; padding: .1rem .5rem; border-radius: .25rem; }
.rm-date { font-size: .62rem; color: #6b7280; }
.rm-venue { font-size: .62rem; color: #9ca3af; }
.rm-teams { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
@media (min-width: 640px) { .rm-teams { gap: 1rem; } }
.rm-team { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.rm-team img, .rm-team .rm-fallback { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; border: 1px solid #e5e7eb; flex-shrink: 0; }
.rm-team .rm-fallback { display: flex; align-items: center; justify-content: center; background: #dbeafe; color: #172554; font-size: .7rem; font-weight: 700; }
.rm-team a { font-weight: 600; color: #1f2937; font-size: .85rem; text-decoration: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-team a:hover { color: #1d4ed8; }
.rm-vs { color: #ef4444; font-weight: 700; font-size: .72rem; flex-shrink: 0; }
.rm-side { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; margin-left: auto; }
@media (min-width: 640px) { .rm-side { gap: 1rem; } }
.rm-score { text-align: center; min-width: 60px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: .3rem .55rem; }
@media (min-width: 640px) { .rm-score { min-width: 84px; } }
.rm-score .val { font-weight: 700; font-size: .85rem; color: #1f2937; }
.rm-score .val small { color: #9ca3af; font-size: .7rem; font-weight: 400; margin: 0 .25rem; }
.rm-score .ov { font-size: .56rem; color: #9ca3af; }
.rm-status { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.rm-badge { font-size: .62rem; padding: .25rem .5rem; border-radius: 999px; display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.rm-badge.completed { background: #dcfce7; color: #15803d; }
.rm-badge.upcoming { background: #fef9c3; color: #a16207; }
.rm-badge.live { background: #fee2e2; color: #b91c1c; }
.rm-badge.abandoned { background: #f3f4f6; color: #4b5563; }
.rm-result { font-size: .56rem; color: #6b7280; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.completed { background: #22c55e; }
.status-dot.upcoming { background: #eab308; animation: pulse-dot 1.5s infinite; }
.status-dot.live { background: #ef4444; animation: pulse-dot 1s infinite; }
.status-dot.abandoned { background: #6b7280; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.rm-empty { padding: 2.5rem 1.5rem; text-align: center; }
.rm-empty .rm-empty-ico { width: 64px; height: 64px; border-radius: 999px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; font-size: 1.5rem; color: #d1d5db; font-style: normal; }
.rm-empty p { margin: 0; color: #6b7280; font-weight: 500; }
.rm-empty small { color: #9ca3af; }
.dash-bottom { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 1024px) { .dash-bottom { grid-template-columns: 1fr 1fr; } }
.rn-row { padding: .75rem 1.25rem; border-bottom: 1px solid #f3f4f6; transition: background .2s ease; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.rn-row:last-child, .rp-row:last-child { border-bottom: none; }
.rn-row:hover, .rp-row:hover { background: #f9fafb; }
.rn-row .t { font-size: .85rem; font-weight: 500; color: #1f2937; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-row .d { font-size: .72rem; color: #9ca3af; margin: .25rem 0 0; }
.rn-chip { font-size: .62rem; padding: .1rem .5rem; border-radius: 999px; background: #dcfce7; color: #15803d; white-space: nowrap; flex-shrink: 0; }
.rp-row { padding: .75rem 1.25rem; border-bottom: 1px solid #f3f4f6; transition: background .2s ease; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.rp-left { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.rp-init { width: 32px; height: 32px; border-radius: 999px; background: #dbeafe; color: #172554; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rp-left .t { font-size: .85rem; font-weight: 500; color: #1f2937; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-left .d { font-size: .72rem; color: #9ca3af; margin: 0; }
.rp-chip { font-size: .62rem; padding: .1rem .5rem; border-radius: 999px; background: #dbeafe; color: #172554; white-space: nowrap; flex-shrink: 0; }
.rn-empty { padding: 1.5rem; text-align: center; color: #9ca3af; font-size: .85rem; }
.rm-actions { display: flex; align-items: center; gap: .375rem; justify-content: flex-end; }
.rm-actions .rm-act { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #e5e7eb; background: #f9fafb; color: #374151; display: flex; align-items: center; justify-content: center; font-size: .8rem; text-decoration: none; transition: all .2s ease; }
.rm-actions .rm-act:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
.rm-actions .rm-act-score:hover { background: #f59e0b; border-color: #f59e0b; }
@media (max-width: 639px) {
    .rm-row { flex-wrap: wrap; gap: .6rem; }
    .rm-row > div:first-child { flex: 1 1 100%; }
    .rm-side { width: 100%; margin-left: 0; justify-content: space-between; gap: .75rem; padding-top: .6rem; border-top: 1px dashed #eef2f7; }
    .rm-status { align-items: flex-start; }
    .rm-actions { margin-left: auto; }
}

/* ---------- Shared Admin CRUD ---------- */
.admin-panel { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); padding: 1.25rem; margin-bottom: 1.3rem; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-panel h2, .admin-section-title { margin: 0; font-size: 1rem; color: #111827; font-weight: 500; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-table-wrap { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); padding: 1.25rem; overflow-x: auto; }
.admin-table-wrap.flat { box-shadow: none; padding: 0; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; color: #374151; min-width: 640px; }
.admin-table th, .admin-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
.admin-table th { color: #4b5563; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; background: #fff; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #f9fafb; }
.admin-btn { display: inline-flex; align-items: center; gap: .4rem; background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; border: none; padding: .5rem 1.15rem; border-radius: 999px; font-size: .85rem; font-weight: 500; cursor: pointer; text-decoration: none; font-family: inherit; transition: filter .2s, transform .2s; }
.admin-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.admin-btn.small { padding: .3rem .8rem; font-size: .78rem; }
.admin-btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.admin-btn.ghost { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.admin-btn.ghost:hover { background: #dbeafe; }
.admin-badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.admin-badge.completed { background: #dcfce7; color: #15803d; }
.admin-badge.upcoming { background: #fef9c3; color: #a16207; }
.admin-badge.live { background: #fee2e2; color: #b91c1c; }
.admin-badge.abandoned { background: #f3f4f6; color: #4b5563; }
.admin-badge.photo { background: #eff6ff; color: var(--teal-dark); padding: .1rem .5rem; font-size: .7rem; }
.admin-badge.video { background: #f0f9ff; color: #0ea5e9; padding: .1rem .5rem; font-size: .7rem; }
.admin-form label { display: block; font-size: .78rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.admin-form input[type="text"], .admin-form input[type="email"], .admin-form input[type="password"], .admin-form input[type="number"], .admin-form input[type="date"], .admin-form input[type="time"], .admin-form input[type="url"], .admin-form input[type="file"], .admin-form select, .admin-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid #e5e7eb; border-radius: 10px; font-size: .88rem; font-family: inherit; color: #1f2937; background: #fff; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.admin-form-actions { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.admin-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.admin-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.admin-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.admin-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .45rem; }
.admin-checks label { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 500; color: #374151; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: .5rem .7rem; cursor: pointer; margin: 0; }
.admin-checks input { accent-color: #1d4ed8; }
.admin-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.admin-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; border: 1px solid #e5e7eb; background: #f8fafc; }
.admin-thumb.small { width: 60px; height: 34px; }
.admin-bn { font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; }
.admin-icon-img { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }
.apf-icon-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.admin-error { color: #dc2626; font-size: .78rem; margin: .25rem 0 0; }
.admin-empty { padding: 2rem; text-align: center; color: #9ca3af; font-size: .88rem; }
.admin-pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 1.25rem 0 .5rem; }
.admin-pagination .admin-btn { min-width: 34px; text-align: center; justify-content: center; text-decoration: none; }
.admin-pagination .admin-btn.disabled { opacity: .45; pointer-events: none; }
.admin-pagination .page-current { background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; border-color: transparent; }
.admin-page-dots { color: #9ca3af; padding: 0 4px; }
.admin-note { font-size: .78rem; color: #6b7280; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: .6rem .8rem; }

/* ---------- Admin Login ---------- */
.admin-login-body { font-family: 'Inter', sans-serif; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0F172A, #1E293B); position: relative; overflow: hidden; margin: 0; padding: 15px; box-sizing: border-box; }
.waves { position: fixed; bottom: 0; left: 0; width: 100%; height: 40%; z-index: 0; overflow: hidden; }
.waves .wave { position: absolute; bottom: -10px; width: 200%; height: 100%; background-repeat: repeat-x; background-position: bottom; animation: waveMove 20s linear infinite; opacity: .3; }
.waves .wave-1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230EA5E9' fill-opacity='0.15' d='M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,192C672,203,768,181,864,170.7C960,160,1056,160,1152,170.7C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E"); background-size: 1440px 100%; animation-duration: 25s; }
.waves .wave-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2310B981' fill-opacity='0.1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,213.3C960,203,1056,181,1152,181.3C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E"); background-size: 1440px 100%; animation-duration: 30s; animation-delay: -5s; }
.waves .wave-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23F59E0B' fill-opacity='0.08' d='M0,128L48,138.7C96,149,192,171,288,165.3C384,160,480,128,576,133.3C672,139,768,181,864,192C960,203,1056,181,1152,170.7C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E"); background-size: 1440px 100%; animation-duration: 35s; animation-delay: -10s; }
@keyframes waveMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.floating-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.floating-shapes .shape { position: absolute; border-radius: 50%; opacity: .05; animation: floatShape 20s ease-in-out infinite; }
.floating-shapes .shape-1 { width: 400px; height: 400px; background: #0EA5E9; top: -100px; right: -100px; animation-delay: 0s; }
.floating-shapes .shape-2 { width: 300px; height: 300px; background: #0284c7; bottom: -50px; left: -50px; animation-delay: -7s; }
.floating-shapes .shape-3 { width: 200px; height: 200px; background: #F59E0B; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }
@keyframes floatShape { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.1); } 66% { transform: translate(-30px, 40px) scale(.9); } }
.login-wrapper { width: 100%; max-width: 420px; padding: 15px; position: relative; z-index: 10; box-sizing: border-box; }
.login-card { background: linear-gradient(145deg, #FFFFFF, #F8FAFC); border-radius: 20px; padding: 32px 32px 28px; box-shadow: 0 25px 60px rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255, 255, 255, .8); position: relative; overflow: hidden; transition: all .4s cubic-bezier(.4, 0, .2, 1); backdrop-filter: blur(10px); }
.login-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0EA5E9, #0284c7, #F59E0B, #0EA5E9); background-size: 300% 100%; animation: gradientMove 4s linear infinite; }
.login-card::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 70% 30%, rgba(14, 165, 233, .03), transparent 60%); pointer-events: none; border-radius: 50%; }
.login-card:hover { transform: translateY(-3px); box-shadow: 0 30px 80px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .9); }
.card-glow { position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); width: 80%; height: 80px; background: radial-gradient(ellipse, rgba(14, 165, 233, .08), transparent 70%); filter: blur(30px); pointer-events: none; }
@keyframes gradientMove { 0% { background-position: 0% 0%; } 100% { background-position: 300% 0%; } }
.login-header { text-align: center; margin-bottom: 20px; position: relative; z-index: 2; }
.logo-wrapper { display: inline-block; margin-bottom: 10px; position: relative; }
.logo-wrapper::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, #0EA5E9, #0284c7); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .3; }
.logo-img { width: 60px; height: 60px; object-fit: contain; border-radius: 50%; background: #FFFFFF; padding: 10px; display: block; transition: all .4s ease; position: relative; z-index: 1; box-shadow: 0 4px 15px rgba(0, 0, 0, .05); box-sizing: border-box; }
.logo-img:hover { transform: scale(1.05) rotate(-5deg); box-shadow: 0 8px 30px rgba(14, 165, 233, .15); }
.login-header h2 { color: #1E293B; font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 0; }
.login-header h2 span { color: #0EA5E9; }
.login-header .subtitle { color: #94A3B8; font-size: 10px; margin: 2px 0 0; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, #E2E8F0, #CBD5E1, #E2E8F0, transparent); margin: 0 0 20px; position: relative; z-index: 2; }
.form-group { margin-bottom: 16px; position: relative; z-index: 2; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: #64748B; margin-bottom: 4px; letter-spacing: .3px; }
.form-group label .required { color: #EF4444; margin-left: 2px; }
.input-group { position: relative; }
.input-group .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94A3B8; font-size: 14px; transition: all .3s ease; }
.input-group input { width: 100%; padding: 11px 14px 11px 42px; border: 2px solid #E2E8F0; border-radius: 12px; color: #1E293B; font-size: 13px; font-family: 'Inter', sans-serif; transition: all .3s ease; background: #FFFFFF; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .02); box-sizing: border-box; }
.input-group input::placeholder { color: #94A3B8; }
.input-group input:focus { outline: none; border-color: #0EA5E9; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(14, 165, 233, .08), inset 0 2px 4px rgba(0, 0, 0, .02); }
.input-group input:focus ~ .icon { color: #0EA5E9; }
.toggle-password { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #94A3B8; cursor: pointer; transition: all .3s ease; font-size: 14px; background: transparent; border: none; padding: 4px; }
.toggle-password:hover { color: #64748B; }
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; position: relative; z-index: 2; }
.form-options .remember { display: flex; align-items: center; gap: 6px; color: #64748B; font-size: 12px; cursor: pointer; transition: all .3s ease; }
.form-options .remember:hover { color: #1E293B; }
.form-options .remember input[type="checkbox"] { width: 16px; height: 16px; accent-color: #0EA5E9; cursor: pointer; border-radius: 4px; }
.form-options .forgot-link { color: #0EA5E9; text-decoration: none; font-size: 12px; font-weight: 600; transition: all .3s ease; }
.form-options .forgot-link:hover { color: #0284C7; text-decoration: underline; }
.btn-login { width: 100%; padding: 13px; background: linear-gradient(135deg, #0EA5E9, #0284C7); border: none; border-radius: 12px; color: #FFFFFF; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 20px rgba(14, 165, 233, .25); position: relative; z-index: 2; overflow: hidden; font-family: inherit; }
.btn-login::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent); transition: left .5s ease; }
.btn-login:hover::before { left: 100%; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 35px rgba(14, 165, 233, .35); }
.btn-login:active { transform: scale(.97); }
.btn-login i { font-size: 16px; transition: transform .3s ease; }
.btn-login:hover i { transform: translateX(5px); }
.login-footer { margin-top: 18px; display: flex; justify-content: center; gap: 16px; position: relative; z-index: 2; flex-wrap: wrap; }
.login-footer a { color: #94A3B8; text-decoration: none; font-size: 11px; font-weight: 500; transition: all .3s ease; display: inline-flex; align-items: center; gap: 4px; }
.login-footer a:hover { color: #0EA5E9; }
.login-footer .divider { color: #E2E8F0; margin: 0; background: none; width: auto; height: auto; }
.alert-error { padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 12px; display: flex; align-items: center; gap: 8px; background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }

/* ---------- Admin Player List (apl-*) ---------- */
.apl-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; }
.apl-title { font-size: 18px; font-weight: 500; color: #111827; margin: 0; display: flex; align-items: center; gap: 8px; }
.apl-title-ico { color: #1d4ed8; }
.apl-crumb { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.apl-crumb-link { color: #1d4ed8; font-size: 13.5px; font-weight: 500; text-decoration: none; transition: color .3s ease; }
.apl-crumb-link:hover { color: #1e40af; }
.apl-crumb-current { color: #94a3b8; font-size: 13.5px; font-weight: 500; }
.apl-tabs-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.apl-tabs { display: flex; gap: 4px; background: #1d4ed8; border-radius: 16px; padding: 4px; border: 1px solid rgba(255, 255, 255, .2); flex-wrap: wrap; }
.apl-tab { padding: 8px 20px; border-radius: 12px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); background: transparent; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .3s ease; }
.apl-tab:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.apl-tab.active { color: #1d4ed8; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.apl-tab i { font-size: 14px; }
.apl-addbtn { background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; padding: 8px 20px; border-radius: 12px; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; transition: all .3s ease; }
.apl-addbtn:hover { background: linear-gradient(135deg, #1e40af, #1d4ed8); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29, 78, 216, .3); }
.apl-tabs-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.apl-exportbtn { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; padding: 8px 18px; border-radius: 12px; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .3s ease; }
.apl-exportbtn:hover { background: #dbeafe; border-color: #93c5fd; color: #1e40af; transform: translateY(-1px); }
.apl-alert-success { background: #dcfce7; color: #16a34a; padding: 14px 18px; border-radius: 10px; border: 1px solid #86efac; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.apl-alert-success i { font-size: 18px; }
.apl-alert-close { margin-left: auto; cursor: pointer; color: inherit; opacity: .7; background: none; border: none; font-size: 18px; }
.apl-alert-close:hover { opacity: 1; }
.apl-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.apl-filter-row { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.apl-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #374151; font-size: 13px; }
.apl-label { font-size: 13px; color: #374151; }
.apl-divider { width: 1px; height: 20px; background: #e5e7eb; margin: 0 4px; }
.apl-entries-select { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; color: #334155; background: #fff; font-family: inherit; }
.apl-entries-select:focus { outline: none; border-color: #1d4ed8; }
.apl-filter-select { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 30px; font-size: 12px; color: #334155; background: #fff; font-family: inherit; }
.apl-filter-select:focus { outline: none; border-color: #1d4ed8; }
.apl-search-wrap { position: relative; width: auto; flex-shrink: 0; }
.apl-search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }
.apl-search-input { background: #fff; border: 1px solid #e2e8f0; border-radius: 30px; padding: 8px 16px 8px 38px; color: #334155; font-size: 13px; width: 100%; max-width: 280px; transition: all .3s ease; font-family: inherit; }
.apl-search-input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); }
.apl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px 10px; scroll-behavior: smooth; }
.apl-scroll::-webkit-scrollbar { height: 18px; }
.apl-scroll::-webkit-scrollbar-track { background: #eef2f7; border-radius: 999px; margin: 0 2px; }
.apl-scroll::-webkit-scrollbar-thumb { background: #b6c2d4; border-radius: 999px; border: 4px solid #eef2f7; }
.apl-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.apl-scroll table { min-width: 820px; width: 100%; border-collapse: collapse; }
.apl-scroll th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid #e2e8f0; white-space: nowrap; background: #f8fafc; }
.apl-scroll td { padding: 14px 16px; font-size: 14px; color: #334155; border-bottom: 1px solid #f2f6fc; vertical-align: middle; white-space: nowrap; }
.apl-scroll tr:hover td { background: #f8fafc; }
.apl-avatar-wrap { width: 40px; height: 40px; }
.apl-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #e2e8f0; display: block; }
.apl-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f3f4f6; border: 1px solid #e2e8f0; color: #9ca3af; font-size: 14px; }
.apl-pname { font-weight: 500; color: #1f2937; font-size: 14px; }
.apl-psub { font-size: 12px; color: #9ca3af; }
.apl-muted { color: #4b5563; font-size: 14px; }
.apl-role-badge { padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; display: inline-block; background: #dbeafe; color: #2563eb; }
.apl-role-badge.role-c0 { background: #f2f6fc; color: #475569; }
.apl-role-badge.role-c1 { background: #e0f2fe; color: #0369a1; }
.apl-role-badge.role-c2 { background: #dbeafe; color: #1d4ed8; }
.apl-role-badge.role-c3 { background: #dcfce7; color: #15803d; }
.apl-role-badge.role-c4 { background: #ffedd5; color: #c2410c; }
.apl-role-badge.role-c5 { background: #fce7f3; color: #be185d; }
.apl-role-badge.role-c6 { background: #cffafe; color: #1e40af; }
.apl-role-badge.role-c7 { background: #fef9c3; color: #a16207; }
.apl-status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.apl-status-badge.active, .apl-status-badge.completed { background: #dcfce7; color: #16a34a; }
.apl-status-badge.inactive, .apl-status-badge.live { background: #fee2e2; color: #dc2626; }
.apl-status-badge.upcoming { background: #fef9c3; color: #a16207; }
.apl-status-badge.abandoned { background: #f2f6fc; color: #6b7280; }
.apl-acts { display: flex; align-items: center; gap: 8px; }
.apl-act-form { display: inline-flex; margin: 0; }
.apl-act { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; transition: all .2s ease; text-decoration: none; border: none; cursor: pointer; padding: 0; }
.apl-act svg { width: 15px; height: 15px; }
.apl-act-view { background: #e0f2fe; color: #1d4ed8; }
.apl-act-view:hover { background: #1d4ed8; color: #fff; transform: scale(1.05); box-shadow: 0 4px 12px rgba(29, 78, 216, .3); }
.apl-act-edit { background: #dbeafe; color: #2563eb; }
.apl-act-edit:hover { background: #2563eb; color: #fff; transform: scale(1.05); box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }
.apl-act-delete { background: #fee2e2; color: #dc2626; }
.apl-act-delete:hover { background: #dc2626; color: #fff; transform: scale(1.05); box-shadow: 0 4px 12px rgba(220, 38, 38, .3); }
.apl-empty { padding: 32px 16px !important; text-align: center; color: #9ca3af; }
.apl-empty i { font-size: 28px; color: #d1d5db; display: block; margin: 0 auto 12px; }
.apl-foot { margin-top: 14px; }
.apl-foot .tp-pagination.site-pager { width: 100%; margin: 0; padding: .65rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .85rem; box-shadow: none; }
.apl-foot .tp-pg-summary,
.apl-foot .tp-pg-page-info { color: #475569; }
.apl-info { font-size: 13px; color: #374151; margin: 0; }
.apl-info span { font-weight: 600; }
.apl-match-name { font-weight: 600; color: #1f2937; font-size: 14px; }
.apl-result-text { font-size: 12px; color: #1d4ed8; margin-top: 2px; }
.apl-venue-text { display: inline-block; max-width: 170px; font-size: 13px; color: #6b7280; word-break: break-word; line-height: 1.4; }
.apl-team-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apl-team-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.apl-team-name { font-size: 13px; font-weight: 500; color: #1f2937; white-space: nowrap; }
.apl-team-link { color: #1d4ed8; text-decoration: none; }
.apl-team-link:hover { text-decoration: underline; }
.apl-vs-badge { font-size: 10px; font-weight: 700; color: #a16207; background: #fef9c3; border-radius: 4px; padding: 1px 6px; }
.apl-date-text { font-size: 13px; color: #1f2937; font-weight: 500; }
.apl-time-text { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.apl-news-thumb { width: 64px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid #e2e8f0; display: block; }
.apl-news-thumb-empty { display: flex; align-items: center; justify-content: center; background: #f3f4f6; color: #9ca3af; font-size: 16px; }
.apl-excerpt { max-width: 340px; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; color: #4b5563; font-size: 13px; }
.apl-news-title { max-width: 340px; white-space: normal; }
.apl-news-title .apl-pname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.apl-news-title .apl-psub { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; word-break: break-word; margin-top: 2px; }
.apl-slug-badge { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.nw-detail-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.nw-detail-row { display: grid; grid-template-columns: minmax(140px, 240px) 14px minmax(0, 1fr) 34px; align-items: center; gap: 6px; }
.nw-detail-colon { text-align: center; color: #94a3b8; font-weight: 700; }
.nw-detail-remove { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #fecaca; background: #fef2f2; color: #dc2626; font-size: 18px; line-height: 1; cursor: pointer; }
.nw-detail-remove:hover { background: #fee2e2; }
.nw-detail-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; border: 1px dashed #93c5fd; background: #eff6ff; color: #1d4ed8; font-size: 13px; font-weight: 600; cursor: pointer; }
.nw-detail-add:hover { background: #dbeafe; }
@media (max-width: 640px) {
    .nw-detail-row { grid-template-columns: minmax(0, 40%) 12px minmax(0, 1fr) 30px; gap: 4px; }
}
.apf-card-spaced { margin-top: 20px; }
.apf-preview-wide { width: 120px; height: 80px; border-radius: 10px; }
.apf-preview-empty { width: 120px; height: 80px; border-radius: 10px; border: 2px dashed #d1d5db; background: #f9fafb; color: #cbd5e1; display: grid; place-items: center; font-size: 22px; }
.apf-textarea-lg { min-height: 280px !important; }
.apl-match-no { font-weight: 600; color: #1e40af; font-variant-numeric: tabular-nums; }
.apl-you-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px; font-size: 11px; font-weight: 700; color: #15803d; background: #dcfce7; border: 1px solid #86efac; border-radius: 999px; vertical-align: middle; }
.you-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: youPulse 1.5s ease-in-out infinite; }
@keyframes youPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Admin list & form helpers ---------- */
.apl-logo-thumb { width: 64px; height: 44px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid #e2e8f0; padding: 4px; display: block; }
.apl-type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.apl-type-badge.photo { background: #e0f2fe; color: #0369a1; }
.apl-type-badge.video { background: #fce7f3; color: #be185d; }
.apl-link { color: #1d4ed8; text-decoration: none; display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.apl-link:hover { text-decoration: underline; }
.apl-icon-preview { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 44px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; color: #1d4ed8; font-size: 20px; flex-shrink: 0; }
.apl-icon-preview img { max-width: 80%; max-height: 80%; object-fit: contain; }
.apl-icon-input { display: flex; align-items: center; gap: 10px; }
.apl-icon-input input { flex: 1; min-width: 0; }
.apl-perm-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #1d4ed8; background: #eff6ff; border-radius: 999px; padding: 4px 10px; }
.apl-perm-count.none { color: #64748b; background: #f2f6fc; }
.apf-perm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.apf-perm-counter { font-size: 12px; font-weight: 600; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; padding: 5px 12px; }
.apf-perm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.apf-perm-btn { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: #475569; cursor: pointer; transition: all .2s; font-family: inherit; }
.apf-perm-btn:hover { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }
.apf-perm-group { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #fcfdff; }
.apf-perm-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.apf-perm-group-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: #1d4ed8; font-size: 13px; }
.apf-perm-group-title { font-size: 13px; font-weight: 700; color: #1f2937; }
.apf-perm-group-count { margin-left: auto; font-size: 11px; font-weight: 600; color: #64748b; background: #f2f6fc; border-radius: 999px; padding: 3px 9px; }
.apf-perm-group .apf-perm-grid { margin-bottom: 0; }
.apf-perm-item.checked { border-color: #1d4ed8; background: #f5f9ff; }
.apf-perm-item.checked .apf-perm-name { color: #1d4ed8; }
.apf-perm-empty-msg { display: none; font-size: 12px; color: #94a3b8; margin: 0 0 14px; }
@media (max-width: 640px) {
    .apf-perm-group { padding: 10px; }
    .apf-perm-toolbar { align-items: flex-start; flex-direction: column; }
}

/* ---------- Admin Forms, Multiselect & Quill (apf-*) ---------- */
.apf-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.apf-heading { font-size: 16px; font-weight: 600; color: #1f2937; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.apf-heading-ico { color: #1d4ed8; }
.apf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 16px; }
.apf-row-3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.apf-row-4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.apf-group { display: flex; flex-direction: column; gap: 6px; }
.apf-group label { font-size: 13px; font-weight: 500; color: #1d4ed8; margin-bottom: 6px; }
.apf-required { color: #ef4444; margin-left: 2px; }
.apf-group select, .apf-group input, .apf-group textarea { padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; transition: all .2s; background: #fff; color: #1f2937; width: 100%; box-sizing: border-box; font-family: inherit; }
.apf-group select:focus, .apf-group input:focus, .apf-group textarea:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); }
.apf-group textarea { min-height: 100px; resize: vertical; }
.apf-group input.is-invalid, .apf-group select.is-invalid { border-color: #dc2626 !important; background: #fef2f2; }
.apf-upload { display: flex; align-items: center; gap: 16px; width: 100%; flex-wrap: wrap; }
.apf-upload-btn-wrap { position: relative; overflow: hidden; }
.apf-upload-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; background: #f3f4f6; border: 2px dashed #d1d5db; border-radius: 8px; color: #6b7280; font-size: 13px; font-weight: 500; transition: all .2s; min-height: 60px; min-width: 160px; white-space: nowrap; }
.apf-upload-btn-wrap:hover .apf-upload-btn { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }
.apf-upload-btn-wrap input[type="file"] { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.apf-preview-wrap { flex-shrink: 0; }
.apf-preview { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; border: 2px solid #e2e8f0; background: #f8fafc; }
.apf-preview-round { border-radius: 50%; object-fit: cover; }
.apf-file-name { font-size: 12px; color: #6b7280; margin-top: 4px; }
.apf-icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.apf-icon-option { display: flex; align-items: center; gap: 6px; cursor: pointer; position: relative; padding: 4px 6px; border-radius: 6px; transition: all .2s ease; }
.apf-icon-option input[type="radio"] { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 10; margin: 0; left: 0; top: 0; }
.apf-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #94a3b8; background: #fff; display: flex; align-items: center; justify-content: center; transition: all .3s ease; flex-shrink: 0; position: relative; z-index: 5; box-sizing: border-box; }
.apf-radio::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: all .3s ease; }
.apf-icon-option input[type="radio"]:checked + .apf-radio { border-color: #2563eb; background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.apf-icon-option input[type="radio"]:checked + .apf-radio::after { background: #fff; }
.apf-icon-option.selected { background: #eff6ff; }
.apf-icon-box { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #f2f6fc; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; color: #1d4ed8; font-size: 15px; flex-shrink: 0; }
.apf-empty-note { font-size: 13px; color: #9ca3af; grid-column: 1 / -1; margin: 0; }
.apf-toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.apf-toggle-option { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 16px; border-radius: 30px; background: #f2f6fc; transition: all .2s ease; color: #475569; font-size: 14px; }
.apf-toggle-option input[type="checkbox"] { accent-color: #1d4ed8; width: 16px; height: 16px; margin: 0; }
.apf-toggle-option.active { background: #e0f2fe; color: #075985; }
.apf-toggle-icon { font-size: 14px; }
.apf-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.apf-cancel { padding: 10px 28px; background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; border-radius: 8px; font-weight: 500; font-size: 14px; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.apf-cancel:hover { background: #e5e7eb; color: #1f2937; }
.apf-reset { padding: 10px 28px; background: #fee2e2; color: #dc2626; border: none; border-radius: 8px; font-weight: 500; font-size: 14px; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; }
.apf-reset:hover { background: #fecaca; }
.apf-submit { padding: 10px 32px; background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; border: none; border-radius: 8px; font-weight: 500; font-size: 14px; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; }
.apf-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29, 78, 216, .3); }
.apf-card-title { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.apf-title-ico { color: #1d4ed8; }
.apf-optional { font-size: 11px; color: #94a3b8; font-weight: 400; }
.apf-radios { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; }
.apf-status-radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #374151; }
.apf-status-radio input[type="radio"] { width: 16px; height: 16px; accent-color: #1d4ed8; cursor: pointer; }
.apf-add-btn { background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; padding: 8px 20px; border-radius: 12px; font-size: 13px; font-weight: 500; transition: all .3s ease; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.apf-add-btn:hover { background: linear-gradient(135deg, #1e40af, #1d4ed8); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29, 78, 216, .3); color: #fff; }
.apf-hint { font-size: 12px; color: #94a3b8; margin-top: 5px; }
.apf-hint-error { color: #dc2626; }
.apf-hint-success { color: #16a34a; }
.apf-card select[multiple] { min-height: 200px; padding: 8px; }
.apf-card select[multiple] option { padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.apf-card select[multiple] option:checked { background: #dbeafe; color: #1e40af; }

/* Stat input tables, User Avatar, Password, Permissions & Multiselect */
.apf-stat-wrap { margin: 0 0 18px; }
.apf-stat-table { width: 100%; border-collapse: collapse; }
.apf-stat-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #64748b; padding: 8px 6px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.apf-stat-table td { padding: 6px 4px; border-bottom: 1px solid #f2f6fc; }
.apf-stat-table input, .apf-stat-table select { width: 100%; min-width: 58px; padding: 8px 10px; font-size: 13px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #0f172a; outline: none; transition: border-color .2s, box-shadow .2s; }
.apf-stat-table input:focus, .apf-stat-table select:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.apf-stat-table td.apf-st-player { min-width: 180px; }
.apf-stat-table td.apf-st-wide { min-width: 200px; }
.apf-stat-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: #1d4ed8; background: #eff6ff; border: 1px dashed #1d4ed8; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.apf-stat-add:hover { background: #1d4ed8; color: #fff; }
.apf-stat-del { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-size: 12px; color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.apf-stat-del:hover { background: #dc2626; color: #fff; }
.usr-avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4B20DE, #00CEE5); border-radius: 50%; }
.usr-avatar-img { border-radius: 50%; }
.apf-pw-wrap { position: relative; }
.apf-pw-wrap input { width: 100%; padding-right: 40px; }
.apf-pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94a3b8; cursor: pointer; padding: 4px; font-size: 14px; transition: color .2s; }
.apf-pw-toggle:hover { color: #4B20DE; }
.apf-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.apf-perm-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); grid-template-areas: "check name" "check slug"; column-gap: 8px; row-gap: 0; align-items: center; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.apf-perm-item:hover { border-color: #00CEE5; box-shadow: 0 1px 4px rgba(0, 206, 229, .15); }
.apf-perm-item input[type="checkbox"] { grid-area: check; width: 16px; height: 16px; accent-color: #4B20DE; flex-shrink: 0; cursor: pointer; }
.apf-perm-name { grid-area: name; font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.apf-perm-slug { grid-area: slug; font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apf-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.apf-ms { position: relative; }
.apf-ms-control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; transition: all .2s; }
.apf-ms-control .apf-ms-arrow { margin-left: auto; flex-shrink: 0; order: 2; }
.apf-ms-control:hover { border-color: #1d4ed8; }
.apf-ms-placeholder { font-size: 14px; color: #9ca3af; order: 1; }
.apf-ms-control .apf-ms-selected { order: 0; }
.apf-ms-arrow { color: #9ca3af; font-size: 13px; transition: transform .25s; }
.apf-ms-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, .1); z-index: 60; overflow: hidden; }
.apf-ms-dropdown.open { display: block; }
.apf-ms-search { width: 100%; padding: 10px 14px; border: none; border-bottom: 1px solid #f2f6fc; font-size: 13px; outline: none; color: #1f2937; }
.apf-ms-options { max-height: 240px; overflow-y: auto; }
.apf-ms-option { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; color: #334155; border-bottom: 1px solid #f2f6fc; cursor: pointer; transition: background .15s; }
.apf-ms-option:last-child { border-bottom: none; }
.apf-ms-option:hover { background: #f0fdf4; }
.apf-ms-option.selected { background: #e0f2fe; color: #075985; }
.apf-ms-option .apf-ms-option-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apf-ms-option .apf-ms-option-role { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.apf-ms-option .apf-ms-option-team { color: #1d4ed8; font-size: 11px; background: #dbeafe; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.apf-ms-selected { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.apf-ms-selected:empty { display: none; }
.apf-ms-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 13px; border-radius: 4px; background: #e0f2fe; color: #075985; white-space: nowrap; }
.apf-ms-remove { background: none; border: none; color: #075985; opacity: .6; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 2px; }
.apf-ms-remove:hover { opacity: 1; }
.apf-team-select { display: flex; align-items: center; gap: 12px; }
.apf-team-select select { flex: 1; min-width: 0; }
.apf-team-select select:disabled { background: #f2f6fc; color: #64748b; cursor: not-allowed; }
.apf-vs-divider { font-size: 12px; font-weight: 700; color: #a16207; background: #fef9c3; border-radius: 6px; padding: 4px 10px; flex-shrink: 0; }
.apf-team-error { color: #dc2626; font-size: 12px; margin-top: 6px; }
.apf-team-error.hidden { display: none; }
.apf-quill-container { border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; background: #fff; }
.apf-quill-container .ql-toolbar { border: none; border-bottom: 1px solid #e5e7eb; }
.apf-quill-container .ql-container { border: none; font-size: 14px; min-height: 200px; color: #1f2937; }
.apf-quill-container .ql-editor { overflow-x: auto; }
.apf-quill-container .ql-editor table { border-collapse: collapse; max-width: 100%; margin: .4rem 0; }
.apf-quill-container .ql-editor td, .apf-quill-container .ql-editor th { border: 1px solid #e5e7eb; padding: 8px 12px; min-width: 40px; font-size: 13px; }
.apf-quill-container .ql-editor table td p, .apf-quill-container .ql-editor table th p { margin: 0; }
.apf-quill-source { width: 100%; min-height: 200px; border: none; border-top: 1px solid #d1d5db; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; resize: vertical; outline: none; border-radius: 0 0 8px 8px; box-sizing: border-box; }
.ql-custom-table { width: auto !important; font-size: 14px; }
.ql-toolbar button.ql-custom-source { width: auto; padding: 4px 8px; font-size: 13px; font-weight: 700; color: #444; }
.ql-toolbar button.ql-custom-source:hover, .ql-toolbar button.ql-custom-source.ql-active { color: #1d4ed8; }

/* ---------- Admin Responsive ---------- */
@media (max-width: 1280px) {
    .admin-profile-name, .stat-badge .stat-badge-label, .visit-btn span { display: none; }
    .stat-badge { padding: 6px 12px; }
    .visit-btn { padding: 8px 14px; }
    .admin-topbar-stats { gap: 10px; }
    .admin-topbar { padding: 0 18px; }
}
@media (max-width: 1100px) { .admin-topbar-title { display: none; } }
@media (max-width: 1024px) {
    .admin-body { padding-top: 60px; }
    .admin-sidebar { transform: translateX(-100%); width: 280px; z-index: 1050; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-close { display: block; }
    .admin-topbar { left: 0 !important; padding: 0 15px; height: 60px; }
    .admin-wrapper { margin-left: 0 !important; }
    .admin-main { padding: 15px 15px; }
    .admin-topbar-title, .admin-profile-name, .stat-badge .stat-badge-label, .visit-btn span { display: none; }
    .stat-badge { padding: 4px 12px; font-size: 11px; }
    .stat-badge strong { font-size: 13px; }
    .visit-btn { padding: 6px 14px; font-size: 12px; }
    .admin-avatar { width: 32px; height: 32px; font-size: 14px; }
    .admin-grid2, .admin-grid3, .admin-grid4 { grid-template-columns: 1fr; }
    .apl-tabs-row { flex-direction: column; align-items: stretch; }
    .apl-head, .apl-filter-row { flex-direction: column; align-items: flex-start; }
    .apl-search-wrap { width: 100%; }
    .apl-tabs { width: 100%; justify-content: center; }
    .apl-tab { flex: 1; justify-content: center; padding: 8px 12px; font-size: 12px; }
    .apl-addbtn { width: 100%; }
    .apl-tabs-actions { width: 100%; }
    .apl-tabs-actions .apl-exportbtn,
    .apl-tabs-actions .apl-addbtn { flex: 1; }
    .apl-scroll table { min-width: 760px; }
    .apl-scroll th { padding: 10px 12px; font-size: 11px; }
    .apl-scroll td { padding: 10px 12px; font-size: 13px; }
    .apl-avatar-wrap, .apl-avatar, .apl-avatar-placeholder { width: 36px; height: 36px; }
    .apl-act { width: 30px; height: 30px; }
    .apl-act svg { width: 14px; height: 14px; }
    .apl-status-badge { font-size: 11px; padding: 3px 10px; }
    .apf-card { padding: 16px 12px; }
    .apf-icon-grid { grid-template-columns: repeat(4, 1fr); }
    .apf-actions .apf-cancel, .apf-actions .apf-reset, .apf-actions .apf-submit { flex: 1; justify-content: center; padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 768px) {
    .apf-ms-dropdown { position: static; margin-top: 8px; box-shadow: none; }
    .apl-tabs-row { flex-direction: column; align-items: stretch; }
    .apf-add-btn { justify-content: center; }
}
@media (max-width: 640px) {
    .apf-stat-wrap { overflow-x: auto; }
    .apf-stat-table { min-width: 560px; }
    .apf-perm-grid, .apf-check-grid { grid-template-columns: 1fr; }
    .admin-main, .admin-content { overflow-x: hidden; }
    .dash-head h1 { font-size: 1.15rem; }
    .dash-head { margin-bottom: 1rem; }
    .admin-main .stat-cards { gap: .5rem; margin-bottom: 1rem; }
    .admin-main .stat-card { padding: .8rem .7rem; border-radius: 12px; }
    .admin-main .stat-card .sc-num { font-size: 1.15rem; }
    .admin-main .stat-card .sc-label { font-size: .6rem; }
    .admin-main .stat-card .icon-bg { display: none; }
    .dash-mid, .dash-bottom { gap: .75rem; margin-bottom: 1rem; }
    .dash-card { border-radius: 12px; }
    .rm-head { padding: .75rem .9rem; }
    .rm-head h3 { font-size: .82rem; }
    .rm-row { padding: .7rem .9rem; }
    .rm-meta { gap: .35rem; }
    .rm-teams { gap: .4rem; }
    .rm-team a { max-width: 105px; font-size: .78rem; }
    .rm-side { margin-top: .5rem; justify-content: space-between; width: 100%; gap: .5rem; }
    .rm-status { flex-direction: row; align-items: center; gap: .5rem; }
    .rm-result { max-width: 120px; }
    .rn-row, .rp-row { padding: .7rem .9rem; }
    .rn-row .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
    .qa-grid { gap: .4rem; }
    .qa-tile { padding: .7rem .5rem; }
    .qa-tile .lbl { font-size: .68rem; }
    .ms-grid { gap: .35rem; }
    .ms-box { padding: .5rem .25rem; }
}
@media (max-width: 520px) {
    .dash-head { gap: .6rem; }
    .dash-date { font-size: .74rem; padding: .4rem .75rem; }
    .rm-row { padding: .65rem .8rem; gap: .5rem; }
    .rm-teams { row-gap: .4rem; flex-wrap: nowrap; align-items: center; }
    .rm-team { flex: 1 1 0; min-width: 0; }
    .rm-team a { max-width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
    .rm-side { flex-wrap: wrap; gap: .45rem; }
    .rm-score { min-width: 0; padding: .25rem .5rem; }
    .rm-score .val { font-size: .8rem; }
    .rm-score .ov { font-size: .52rem; }
    .rm-badge { font-size: .58rem; padding: .2rem .45rem; }
    .rm-result { max-width: 100%; white-space: normal; line-height: 1.3; }
    .rm-status { flex-wrap: wrap; }
    .rm-actions { margin-left: 0; }
    .rm-actions .rm-act { width: 28px; height: 28px; font-size: .74rem; }
    .rn-row, .rp-row { padding: .65rem .8rem; gap: .5rem; }
    .rn-chip, .rp-chip { font-size: .58rem; padding: .1rem .4rem; }
    .rp-init { width: 28px; height: 28px; }
    .ms-box { padding: .6rem .3rem; }
    .ms-box .num { font-size: 1.05rem; }
    .ms-box .lbl { font-size: .62rem; line-height: 1.2; }
    .qa-tile span.lbl { font-size: .64rem; line-height: 1.25; }
}
@media (max-width: 340px) {
    .ms-grid { grid-template-columns: repeat(2, 1fr); }
    .rm-team a { font-size: .74rem; }
    .rm-vs { font-size: .66rem; }
    .rn-chip, .rp-chip { display: none; }
}
@media (max-width: 576px) {
    .admin-body { padding-top: 55px; }
    .admin-topbar { padding: 0 10px; height: 55px; gap: 8px; overflow-x: clip; overflow-y: visible; }
    .admin-topbar-left { gap: 10px; min-width: 0; }
    .admin-topbar-right { gap: 8px; flex-shrink: 0; }
    .admin-topbar-stats { gap: 6px; min-width: 0; }
    .stat-badge { padding: 3px 7px; font-size: 10px; gap: 3px; }
    .stat-badge .admin-ico { font-size: 11px; }
    .stat-badge strong { font-size: 11px; margin-left: 1px; }
    .visit-btn { padding: 5px 9px; font-size: 10px; gap: 4px; }
    .visit-btn i { font-size: 10px; }
    .admin-profile { gap: 5px; padding: 2px 0; }
    .admin-avatar { width: 26px; height: 26px; font-size: 11px; border-width: 1.5px; }
    .admin-burger { width: 32px; height: 32px; padding: 6px 8px; }
    .admin-burger .burger-icon { width: 18px; height: 14px; }
    .admin-main { padding: 10px 10px; }
    .admin-table th, .admin-table td { padding: .7rem .8rem; }
    .apl-card { padding: 16px 12px; }
    .apl-head { margin: 10px 0 14px; }
    .apl-title { font-size: 16px; }
}
@media (max-width: 480px) {
    .login-wrapper { padding: 10px; }
    .login-card { padding: 24px 20px 20px; border-radius: 16px; }
    .login-header h2 { font-size: 20px; }
    .logo-img { width: 50px; height: 50px; padding: 8px; }
    .input-group input { padding: 10px 12px 10px 38px; font-size: 12px; }
    .btn-login { padding: 12px; font-size: 13px; }
    .form-options { flex-direction: column; gap: 8px; align-items: flex-start; }
    .floating-shapes .shape-1 { width: 200px; height: 200px; }
    .floating-shapes .shape-2 { width: 150px; height: 150px; }
    .floating-shapes .shape-3 { width: 100px; height: 100px; }
}
@media (max-width: 400px) {
    .visit-btn { padding: 5px 8px; }
    .admin-topbar { padding: 0 8px; }
    .admin-topbar-stats { gap: 4px; }
    .stat-badge { padding: 3px 6px; }
}

/* ===== Photo & Video Gallery Pages ===== */
.pgal-wrap { max-width: 1152px; margin: 0 auto; padding: 2.5rem 1rem; }
.pgal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.pgal-title { font-size: 1.75rem; font-weight: 800; color: #111827; }
.pgal-sub { color: #6b7280; margin-top: .25rem; font-size: .9rem; }
.pgal-tabs { display: flex; gap: .5rem; background: #f3f4f6; padding: .25rem; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pgal-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.25rem; font-size: .85rem; font-weight: 600; border-radius: 999px; color: #4b5563; text-decoration: none; transition: all .2s ease; white-space: nowrap; }
.pgal-tab svg { width: 1rem; height: 1rem; }
.pgal-tab:hover { background: #e5e7eb; color: #111827; }
.pgal-tab.active { background: var(--teal); color: #fff; box-shadow: 0 2px 6px rgba(37, 99, 235, .4); }
.pgal-grid, .vgal-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
.pgal-item, .vgal-item { position: relative; cursor: pointer; border-radius: .75rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,.08); background: #fff; transition: all .3s ease; }
.pgal-item:hover, .vgal-item:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,.12); }
.pgal-imgbox, .vgal-imgbox { position: relative; overflow: hidden; }
.pgal-imgbox img, .vgal-imgbox img { width: 100%; height: 14rem; object-fit: cover; transition: transform .5s ease; display: block; }
.pgal-item:hover .pgal-imgbox img, .vgal-item:hover .vgal-imgbox img { transform: scale(1.05); }
.pgal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background .3s ease; }
.pgal-item:hover .pgal-overlay { background: rgba(0,0,0,.2); }
.pgal-zoom { opacity: 0; transition: opacity .3s ease; background: var(--teal); border-radius: 999px; padding: .5rem; display: inline-flex; }
.pgal-item:hover .pgal-zoom { opacity: 1; }
.pgal-zoom svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.pgal-meta, .vgal-meta { padding: .75rem; }
.pgal-meta h3, .vgal-meta h3 { font-weight: 600; color: #1f2937; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgal-meta p, .vgal-meta p { font-size: .75rem; color: #6b7280; margin-top: .25rem; }
.pgal-empty { text-align: center; padding: 4rem 1rem; color: #9ca3af; }
.pgal-empty svg { width: 5rem; height: 5rem; margin: 0 auto 1rem; display: block; }
.pgal-empty p { color: #6b7280; }
.pgal-pager { display: flex; justify-content: center; margin-top: 3rem; }
.pgal-pager-nav { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.8); backdrop-filter: blur(8px); box-shadow: 0 4px 12px rgba(0,0,0,.08); border: 1px solid #e5e7eb; border-radius: 999px; padding: .4rem .75rem; flex-wrap: wrap; justify-content: center; }
.pgal-page-btn { padding: .5rem .9rem; font-size: .8rem; border-radius: 999px; color: #4b5563; text-decoration: none; transition: all .2s ease; }
a.pgal-page-btn:hover, a.pgal-page-num:hover { background: #eff6ff; color: var(--teal-dark); }
.pgal-page-btn.disabled { color: #9ca3af; cursor: not-allowed; }
.pgal-pages { display: flex; gap: .4rem; }
.pgal-page-num { width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; border-radius: 999px; color: #4b5563; text-decoration: none; transition: all .2s ease; }
.pgal-page-num.current { background: var(--teal); color: #fff; font-weight: 700; box-shadow: 0 2px 5px rgba(37, 99, 235, .4); }
.pgal-page-info { display: none; padding: .4rem .75rem; font-size: .78rem; color: #4b5563; background: #f3f4f6; border-radius: 999px; }
.pgal-lightbox, .vgal-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 2000; align-items: center; justify-content: center; }
.pgal-lightbox.open, .vgal-modal.open { display: flex; }
.pgal-lightbox-inner { max-width: 64rem; width: 100%; margin: 0 1rem; }
.pgal-lightbox-inner img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: .5rem; display: block; }
.pgal-lightbox-cap { margin-top: 1rem; text-align: center; color: #fff; }
.pgal-lightbox-cap h3 { font-size: 1.05rem; font-weight: 600; }
.pgal-lightbox-cap p { font-size: .85rem; opacity: .8; }
.pgal-lb-btn { position: absolute; background: rgba(0,0,0,.7); color: #fff; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: none; cursor: pointer; transition: background .2s ease; font-size: 1rem; }
.pgal-lb-btn:hover { background: rgba(0,0,0,.9); }
.pgal-lb-btn.close { top: 1.5rem; right: 1.5rem; }
.pgal-lb-btn.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.pgal-lb-btn.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.vgal-shade { position: absolute; inset: 0; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.vgal-play { background: var(--teal); color: #fff; width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: transform .3s ease; }
.vgal-play svg { width: 1.75rem; height: 1.75rem; }
.vgal-item:hover .vgal-play { transform: scale(1.1); }
.vgal-modal-inner { width: 100%; max-width: 56rem; margin: 0 1rem; }
.vgal-modal-inner iframe { width: 100%; aspect-ratio: 16 / 9; border-radius: .5rem; display: block; border: 0; }
.vgal-modal-title { margin-top: 1rem; text-align: center; color: #fff; font-weight: 600; }

/* ===== Records Page ===== */
.rec-wrap { max-width: 1280px; margin: 0 auto; padding: 2.5rem 1rem; }
.rec-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.rec-stat { background: #fff; border-radius: .75rem; box-shadow: 0 4px 6px rgba(0,0,0,.07); padding: 1rem; border-left: 4px solid #0284c7; }
.rec-stat.green { border-left-color: #22c55e; }
.rec-stat.red { border-left-color: #ef4444; }
.rec-stat.blue { border-left-color: #3b82f6; }
.rec-stat-label { font-size: .7rem; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.rec-stat-num { font-size: 1.5rem; font-weight: 800; color: #1f2937; margin-top: .15rem; }
.rec-stat.green .rec-stat-num { color: #16a34a; }
.rec-stat.red .rec-stat-num { color: #ef4444; }
.rec-stat.blue .rec-stat-num { color: #2563eb; }
.rec-stat-hint { font-size: .72rem; color: #9ca3af; margin-top: .25rem; }
.rec-panel { background: #fff; border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); border: 1px solid #e5e7eb; overflow: hidden; }
.rec-panel-head { padding: 1rem 1.5rem; border-bottom: 1px solid #e5e7eb; background: rgba(249,250,251,.9); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.rec-panel-head h2 { font-size: 1.05rem; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: .5rem; }
.rec-panel-head h2 svg { width: 1.15rem; height: 1.15rem; color: #0284c7; }
.rec-updated { font-size: .8rem; color: #6b7280; background: #fff; padding: .25rem .75rem; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rec-table-scroll { overflow-x: auto; }
.rec-table { width: 100%; font-size: .85rem; text-align: left; color: #374151; border-collapse: collapse; }
.rec-table thead { background: #f3f4f6; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; }
.rec-table th { padding: 1rem; white-space: nowrap; font-weight: 600; }
.rec-table td { padding: 1rem; border-top: 1px solid #e5e7eb; vertical-align: middle; }
.rec-table .c { text-align: center; }
.rec-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rec-table .strong { font-weight: 700; }
.rec-table .win { color: #16a34a; font-weight: 600; }
.rec-table .loss { color: #ef4444; font-weight: 600; }
.rec-table .muted { color: #6b7280; }
.rec-row { cursor: pointer; transition: background .15s ease; }
.rec-row:hover { background: rgba(3, 105, 161, .05); }
.rec-opp { display: flex; align-items: center; gap: .75rem; min-width: 11rem; }
.rec-opp img { width: 2rem; height: 2rem; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 2px #e5e7eb; }
.rec-row:hover .rec-opp img { box-shadow: 0 0 0 2px #bae6fd; }
.rec-opp-fallback { width: 2rem; height: 2rem; border-radius: 999px; background: #0284c7; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; box-shadow: 0 0 0 2px #e5e7eb; flex-shrink: 0; }
.rec-opp a { color: #1f2937; font-weight: 500; text-decoration: none; }
.rec-opp a:hover { color: #0ea5e9; text-decoration: underline; }
.rec-opp span:last-child { color: #1f2937; font-weight: 500; }
.rec-bar { display: flex; align-items: center; gap: .3rem; }
.rec-bar .mono { width: 2.6rem; font-size: .78rem; }
.rec-bar-track { width: 3rem; height: .375rem; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.rec-bar-fill { height: 100%; border-radius: 999px; }
.rec-bar-fill.green { background: #22c55e; }
.rec-bar-fill.red { background: #ef4444; }
.rec-bar-fill.yellow { background: #eab308; }
.rec-toggle { background: none; border: none; cursor: pointer; padding: .25rem; border-radius: 999px; transition: background .2s ease; }
.rec-toggle:hover { background: #e5e7eb; }
.rec-toggle svg { width: 1.2rem; height: 1.2rem; color: #6b7280; }
.rec-row:hover .rec-toggle svg { color: #0ea5e9; }
.rec-expanded td { background: rgba(249,250,251,.8); padding: 1.5rem 1rem; }
.rec-expanded.hidden { display: none; }
.rec-h2h { background: #fff; border-radius: .75rem; border: 1px solid #e5e7eb; overflow: hidden; }
.rec-h2h-head { padding: .75rem 1rem; background: linear-gradient(to right, #f0f9ff, #eff6ff); border-bottom: 1px solid #e5e7eb; }
.rec-h2h-head h3 { font-weight: 600; color: #374151; display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.rec-h2h-head .dot { width: .5rem; height: .5rem; background: #0284c7; border-radius: 999px; display: inline-block; }
.rec-h2h-head em { color: #0ea5e9; font-style: normal; }
.rec-h2h-table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.rec-h2h-table thead { background: #f3f4f6; font-size: .7rem; color: #4b5563; }
.rec-h2h-table th { padding: .75rem 1rem; text-align: left; font-weight: 600; }
.rec-h2h-table td { padding: .75rem 1rem; border-top: 1px solid #f3f4f6; }
.rec-h2h-table .c { text-align: center; }
.rec-h2h-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rec-h2h-table .muted { color: #6b7280; }
.rec-score-lines { display: flex; flex-direction: column; gap: .2rem; color: #1f2937; }
.rec-result { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.rec-result.win { background: #dcfce7; color: #15803d; }
.rec-result.loss { background: #fee2e2; color: #b91c1c; }
.rec-view { display: inline-flex; align-items: center; gap: .25rem; color: #0ea5e9; background: #f0f9ff; padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; text-decoration: none; transition: all .2s ease; }
.rec-view:hover { background: #e0f2fe; color: #075985; }
.rec-view svg { width: .9rem; height: .9rem; }
.rec-h2h-empty { text-align: center; padding: 2rem; color: #6b7280; }
.rec-none { text-align: center; padding: 3rem 1rem; }
.rec-none svg { width: 4rem; height: 4rem; color: #d1d5db; margin: 0 auto 1rem; display: block; }
.rec-none-title { font-size: 1.05rem; color: #4b5563; }
.rec-none-sub { font-size: .85rem; color: #9ca3af; margin-top: .25rem; }

@media (min-width: 640px) {
    .pgal-grid, .vgal-grid { grid-template-columns: repeat(2, 1fr); }
    .rec-stats { grid-template-columns: repeat(4, 1fr); }
    .pgal-page-info { display: none; }
}
@media (min-width: 768px) { .pgal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
    .pgal-grid { grid-template-columns: repeat(4, 1fr); }
    .vgal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
    .pgal-pages { display: none; }
    .pgal-page-info { display: inline-block; }
    .pgal-tab { padding: .5rem .9rem; font-size: .78rem; }
    .pgal-title { font-size: 1.35rem; }
    .rec-panel-head { padding: .85rem 1rem; }
    .rec-table th, .rec-table td { padding: .7rem .6rem; }
}

/* ===== Navbar Gallery Dropdown & Sponsors ===== */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #fff; padding: 0 0 0 4px; cursor: pointer; line-height: 1; transition: color .25s; }
.nav-dd-toggle:hover { color: #fbbf24; }
.nav-dd-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; min-width: 11rem; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.18); padding: .4rem; z-index: 60; }
.nav-dd-menu a { display: block; padding: .5rem .85rem; border-radius: 8px; color: #0f172a; font-size: .85rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-dd-menu a:hover { background: #eff6ff; color: var(--teal-dark); }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: block; }
.nav-dd.active > .nav-link { color: var(--yellow); font-weight: 600; }
.nav-dd-arrow { display: inline-block; width: 11px; height: 11px; vertical-align: middle; transition: transform .25s; }
.nav-dd:hover .nav-dd-arrow, .nav-dd:focus-within .nav-dd-arrow, .nav-dd.open .nav-dd-arrow { transform: rotate(180deg); }
@media (max-width: 900px) {
    .nav-dd { display: grid; grid-template-columns: auto 1fr auto; align-items: center; border-radius: 9px; margin: .1rem 0; cursor: pointer; transition: background .25s; }
    .nav-dd > .nav-link { grid-column: 1; margin: 0; }
    .nav-dd.open, .nav-dd:focus-within { background: #f8fafc; }
    .nav-dd-toggle { grid-column: 3; padding: .6rem .7rem; border-radius: 9px; color: #64748b; }
    .nav-dd-toggle:hover { color: #1e40af; }
    .nav-dd-menu {
        grid-column: 1 / -1; justify-self: start; display: block; position: static; transform: none;
        background: #eff6ff; box-shadow: none; min-width: 0;
        width: max-content; max-width: calc(100% - 1.2rem);
        margin: 0 .35rem 0 .85rem; padding: 0 .35rem; border-radius: 9px;
        max-height: 0; opacity: 0; overflow: hidden;
        transition: max-height .3s ease, opacity .25s ease, padding .3s ease, margin .3s ease;
    }
    .nav-dd.open .nav-dd-menu { max-height: 160px; opacity: 1; padding: .28rem .4rem; margin-bottom: .35rem; }
    .nav-dd-menu a { color: #334155; padding: .45rem .75rem .45rem 1.65rem; border-radius: 7px; font-size: .83rem; font-weight: 500; position: relative; }
    .nav-dd-menu a::before { content: ''; position: absolute; left: .9rem; top: 50%; width: 5px; height: 5px; border-radius: 999px; background: #2563eb; opacity: .7; transform: translateY(-50%); }
    .nav-dd-menu a:hover { background: #dbeafe; color: #1e40af; }
}
.sponsor-box img { max-height: 42px; max-width: 100%; object-fit: contain; }
.sponsor-logo { display: block; margin: 0 auto .75rem; max-height: 72px; max-width: 100%; object-fit: contain; }
.sponsor-card span { display: block; font-weight: 700; color: var(--muted); }

/* ============ Player Registration (pr-*) ============ */
.pr-section {
    position: relative;
    padding: clamp(2.4rem, 5vw, 3.6rem) 1rem clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
    background:
        radial-gradient(1100px 460px at 12% -12%, #dbeafe 0%, transparent 58%),
        radial-gradient(900px 420px at 96% 4%, #fce7f3 0%, transparent 55%),
        linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}
.pr-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .3; pointer-events: none; z-index: 0; }
.pr-blob-1 { width: 340px; height: 340px; background: #2563eb; top: -130px; left: -110px; }
.pr-blob-2 { width: 300px; height: 300px; background: #ec4899; bottom: -140px; right: -90px; }
.pr-wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.pr-title { text-align: center; max-width: 700px; margin: 0 auto clamp(1.5rem, 3vw, 2.2rem); }
.pr-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .4rem 1rem; border-radius: 999px;
    background: #fff; border: 1px solid #dbeafe; color: #1d4ed8;
    font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif;
    font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    box-shadow: 0 8px 20px -12px rgba(29, 78, 216, .45);
}
.pr-eyebrow svg { width: 14px; height: 14px; }
.pr-title h1 {
    font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.5rem); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.2; margin: .9rem 0 .55rem;
}
.pr-gradient {
    background: linear-gradient(100deg, #1d4ed8 0%, #0ea5e9 55%, #ec4899 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.pr-title p { color: #475569; font-size: clamp(.85rem, 1.7vw, 1rem); line-height: 1.7; max-width: 560px; margin: 0 auto; }
.pr-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.pr-aside-card {
    position: sticky; top: 90px; overflow: hidden;
    padding: 1.6rem 1.5rem; border-radius: 22px;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
    color: #fff; box-shadow: 0 26px 50px -24px rgba(30, 58, 138, .6);
}
.pr-aside-card::after {
    content: ''; position: absolute; width: 230px; height: 230px; right: -95px; bottom: -115px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
    pointer-events: none;
}
.pr-aside-badge {
    width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    position: relative; z-index: 1;
}
.pr-aside-badge svg { width: 24px; height: 24px; }
.pr-aside-card h2 {
    font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif;
    font-size: 1.24rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5rem; position: relative; z-index: 1;
}
.pr-aside-card > p { color: rgba(255, 255, 255, .72); font-size: .84rem; line-height: 1.7; margin: 0 0 1.35rem; position: relative; z-index: 1; }
.pr-steps { list-style: none; margin: 0 0 1.35rem; padding: 0; display: grid; gap: .95rem; position: relative; z-index: 1; }
.pr-steps li { display: flex; gap: .75rem; align-items: flex-start; }
.pr-step-num {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
    font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif; font-size: .74rem; font-weight: 700;
}
.pr-steps strong { display: block; font-size: .87rem; font-weight: 600; line-height: 1.35; }
.pr-steps div span { display: block; font-size: .77rem; color: rgba(255, 255, 255, .62); line-height: 1.55; margin-top: 2px; }
.pr-help { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 1rem; position: relative; z-index: 1; }
.pr-help strong { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.pr-help svg { width: 15px; height: 15px; flex-shrink: 0; }
.pr-help p { margin: .35rem 0 0; font-size: .77rem; color: rgba(255, 255, 255, .62); line-height: 1.65; }
.pr-card {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 24px;
    padding: clamp(1.2rem, 3vw, 2.1rem);
    box-shadow: 0 26px 60px -36px rgba(15, 23, 42, .3);
}
.pr-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #1d4ed8, #0ea5e9, #ec4899); }
.pr-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 600; font-size: .88rem; line-height: 1.55; }
.pr-alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.pr-alert.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.pr-upload-row { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 1.1rem; align-items: start; margin-bottom: 1.4rem; }
.pr-upload-area {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    min-height: 150px; padding: 1.2rem; text-align: center; cursor: pointer;
    border: 2px dashed #bfdbfe; border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #eff6ff);
    transition: border-color .25s, background .25s, transform .25s;
}
.pr-upload-area:hover, .pr-upload-area.dragover { border-color: #1d4ed8; background: #e6f0ff; transform: translateY(-1px); }
.pr-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pr-upload-ico { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px -10px rgba(29, 78, 216, .7); }
.pr-upload-ico svg { width: 22px; height: 22px; }
.pr-upload-text { font-weight: 700; color: #1e40af; font-size: .92rem; margin-top: .2rem; }
.pr-upload-hint { font-size: .75rem; color: #64748b; }
.pr-preview-col { text-align: center; }
.pr-preview { width: 150px; height: 150px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 3px solid #fff; background: #eff6ff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px #dbeafe, 0 16px 32px -18px rgba(29, 78, 216, .45); }
.pr-preview img { width: 100%; height: 100%; object-fit: cover; }
.pr-preview-label { margin-top: .5rem; font-size: .74rem; color: #64748b; font-weight: 600; }
.pr-sec { display: flex; align-items: center; gap: .7rem; margin: 1.8rem 0 1.1rem; padding-bottom: .7rem; border-bottom: 1px dashed #e2e8f0; }
.pr-sec-num {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: #eff6ff; border: 1px solid #dbeafe; color: #1d4ed8;
    font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif; font-size: .76rem; font-weight: 700;
}
.pr-sec h3 { margin: 0; font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif; font-size: 1.02rem; font-weight: 700; color: #0f172a; letter-spacing: -.01em; }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pr-field { display: flex; flex-direction: column; gap: .38rem; min-width: 0; }
.pr-field.span2, .pr-span2 { grid-column: span 2; }
.pr-field label { font-size: .78rem; font-weight: 600; color: #334155; letter-spacing: .01em; transition: color .2s; }
.pr-field:focus-within label { color: #1d4ed8; }
.pr-field label em { color: #ef4444; font-style: normal; }
.pr-field input, .pr-field select, .pr-field textarea {
    width: 100%; min-height: 44px; padding: .62rem .85rem;
    border: 1px solid #dbe3ee; border-radius: 12px;
    background: #fbfdff; color: #0f172a; font-size: .9rem; font-family: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.pr-field select {
    appearance: none; -webkit-appearance: none; padding-right: 2.3rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .85rem center;
}
.pr-field textarea { min-height: 96px; resize: vertical; }
.pr-field input:focus, .pr-field select:focus, .pr-field textarea:focus {
    border-color: #1d4ed8; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.pr-field input::placeholder, .pr-field textarea::placeholder { color: #94a3b8; }
.pr-field input:user-invalid, .pr-field select:user-invalid { border-color: #fca5a5; }
.pr-input-ico { position: relative; display: flex; align-items: center; }
.pr-input-ico > span { position: absolute; left: .9rem; color: #94a3b8; display: flex; transition: color .2s; }
.pr-input-ico:focus-within > span { color: #1d4ed8; }
.pr-input-ico svg { width: 17px; height: 17px; }
.pr-input-ico input { padding-left: 2.5rem; }
.pr-fb-ico svg { color: #1877f2; }
.pr-error { color: #dc2626; font-size: .75rem; font-weight: 600; margin: 0; }
.pr-same-check {
    display: inline-flex; align-items: center; gap: .55rem; margin: .1rem 0 1rem;
    padding: .55rem .95rem; border: 1px solid #dbeafe; border-radius: 999px;
    background: #f0f7ff; color: #1e40af; font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: background .2s, border-color .2s;
}
.pr-same-check:hover { background: #e0efff; border-color: #bfdbfe; }
.pr-same-check input { width: 17px; height: 17px; accent-color: #1d4ed8; margin: 0; }
.pr-field input:disabled, .pr-field select:disabled { background: #eef2f7; color: #94a3b8; cursor: not-allowed; box-shadow: none; }
.pr-submit { margin-top: 1.7rem; display: grid; gap: .7rem; }
.pr-submit button {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; min-height: 52px; padding: .85rem 1.5rem;
    border: none; border-radius: 14px; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #0ea5e9);
    font-family: 'Plus Jakarta Sans', 'Figtree', sans-serif;
    font-size: .95rem; font-weight: 700; letter-spacing: .01em;
    box-shadow: 0 16px 32px -14px rgba(29, 78, 216, .65);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.pr-submit button svg { width: 21px; height: 21px; }
.pr-submit button:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(29, 78, 216, .7); filter: brightness(1.04); }
.pr-submit button:active { transform: translateY(0); }
.pr-note-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .72rem; color: #64748b; }
@media (max-width: 960px) {
    .pr-layout { grid-template-columns: 1fr; }
    .pr-aside-card { position: static; }
    .pr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
    .pr-steps li { flex-direction: column; }
}
@media (max-width: 640px) {
    .pr-section { padding-inline: .85rem; }
    .pr-title { margin-bottom: 1.2rem; }
    .pr-title h1 { letter-spacing: -.01em; }
    .pr-aside-card { padding: 1.25rem 1.15rem; border-radius: 18px; }
    .pr-steps { grid-template-columns: 1fr; }
    .pr-steps li { flex-direction: row; }
    .pr-card { border-radius: 18px; }
    .pr-upload-row { grid-template-columns: 1fr; margin-bottom: 1rem; }
    .pr-preview-col { order: -1; display: flex; align-items: center; justify-content: center; gap: .8rem; text-align: left; }
    .pr-preview { width: 92px; height: 92px; margin: 0; border-radius: 14px; }
    .pr-preview-label { margin-top: 0; }
    .pr-grid { grid-template-columns: 1fr; }
    .pr-field.span2, .pr-span2 { grid-column: span 1; }
    .pr-sec { margin-top: 1.4rem; }
    .pr-note-row { justify-content: flex-start; }
}

/* ---------- Admin Player Registration detail modal (reg-*) ---------- */
.reg-link { color: #334155; text-decoration: none; transition: color .2s ease; }
.reg-link:hover { color: #1d4ed8; text-decoration: underline; }
.reg-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 18px; }
.reg-modal.open { display: flex; }
.reg-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.reg-modal-dialog { position: relative; width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); overflow: hidden; animation: regPop .18s ease; }
@keyframes regPop {
    from { transform: translateY(10px) scale(.98); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.reg-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; }
.reg-modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.reg-modal-x { background: rgba(255, 255, 255, .15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s ease; }
.reg-modal-x:hover { background: rgba(255, 255, 255, .3); }
.reg-modal-body { padding: 20px; overflow: auto; }
.reg-detail-head { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #dbeafe; background: #f8fbff; border-radius: 14px; margin-bottom: 16px; }
.reg-detail-photo { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e2e8f0; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 20px; border: 2px solid #fff; box-shadow: 0 0 0 1px #dbeafe; }
.reg-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.reg-detail-head h4 { margin: 0 0 3px; font-size: 16px; color: #0f172a; }
.reg-detail-head p { margin: 0 0 6px; font-size: 12.5px; color: #64748b; }
.reg-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.reg-detail-item { padding: 9px 12px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; }
.reg-detail-item span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; margin-bottom: 2px; }
.reg-detail-item strong { font-size: 13.5px; color: #1f2937; font-weight: 600; word-break: break-word; }
.reg-detail-message { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #1d4ed8; background: #eff6ff; border-radius: 0 10px 10px 0; }
.reg-detail-message span { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #1d4ed8; }
.reg-detail-message p { margin: 4px 0 0; font-size: 13.5px; color: #334155; white-space: pre-line; }
@media (max-width: 640px) {
    .reg-modal-body { padding: 14px; }
    .reg-detail-grid { grid-template-columns: 1fr; }
}

/* ===== Scoreboard Admin & Frontend Match Info ===== */
.scb-team-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; transition: background-color .2s ease, box-shadow .2s ease; }
.scb-team-pill.rcb { background: #e0f2fe; color: #075985; }
.scb-team-pill.rcb:hover { background: #bae6fd; box-shadow: 0 1px 4px rgba(91, 33, 182, .25); }
.scb-team-pill.opp { background: #fef3c7; color: #92400e; }
.scb-team-pill.opp:hover { background: #fde68a; box-shadow: 0 1px 4px rgba(146, 64, 14, .25); }
.scb-side-focus { outline: 2px solid #2563eb; outline-offset: 4px; border-radius: 8px; }
.scb-team-pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.scb-team-pill.result { background: #dbeafe; color: #1e40af; }
.scb-team-pill.result:hover { background: #bfdbfe; box-shadow: 0 1px 4px rgba(30, 64, 175, .25); }
.scb-score-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.scb-score-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; color: #475569; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.scb-score-tab:hover { border-color: #2563eb; color: #1e40af; }
.scb-score-tab.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: #1d4ed8; color: #fff; }
.scb-tab-panel { display: none; }
.scb-tab-panel.active { display: block; }
.scb-tab-panel textarea { width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 10px; font-size: 13px; resize: vertical; }
.scb-info-box { background: #eff6ff; border: 1px solid #1d4ed8; border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.scb-info-box > i { color: #1d4ed8; font-size: 18px; }
.scb-info-box .scb-info-text { font-size: 13px; color: #1f2937; line-height: 1.7; }
.scb-info-box .scb-info-text strong { color: #1d4ed8; }
.scb-error-text { display: none; color: #dc2626; font-size: 12px; margin-top: 4px; }
.scb-error-text.show { display: block; }
.scb-field-hint { display: block; color: #6b7280; font-size: 11.5px; margin-top: 4px; }
.scb-extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.scb-extras-total { margin-top: 20px; padding: 16px 20px; background: #eff6ff; border-radius: 10px; border: 1px solid #1d4ed8; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.scb-extras-total label, .scb-extras-total .scb-extras-total-value { font-size: 15px; font-weight: 600; color: #1d4ed8; }
.scb-extras-total .scb-extras-total-value { font-size: 20px; font-weight: 700; }
.scb-cell-off { background: #f3f4f6; }
.scb-cell-off select, .scb-cell-off input { display: none; }

.sb-match-info-text { padding: 0; font-size: .95rem; line-height: 1.8; color: #1f2937; overflow-x: auto; }
.sb-match-info-text p { margin: 0 0 .75rem; }
.sb-match-info-text p:last-child { margin-bottom: 0; }
.sb-match-info-text h1, .sb-match-info-text h2, .sb-match-info-text h3, .sb-match-info-text h4 { color: #1e3a8a; line-height: 1.4; margin: 1rem 0 .5rem; }
.sb-match-info-text h1:first-child, .sb-match-info-text h2:first-child, .sb-match-info-text h3:first-child, .sb-match-info-text h4:first-child { margin-top: 0; }
.sb-match-info-text img { max-width: 100%; height: auto; }
.sb-match-info-text ul, .sb-match-info-text ol { padding-left: 1.4rem; margin: 0 0 .75rem; }
.sb-match-info-text table { width: 100%; max-width: 100%; margin: .5rem 0; border-collapse: collapse; font-size: .875rem; table-layout: auto; }
.sb-match-info-text table th { background: #eff6ff; font-weight: 600; color: #1e40af; }
.sb-match-info-text table td, .sb-match-info-text table th { border: 1px solid #e5e7eb; padding: .55rem .7rem; word-break: break-word; vertical-align: top; }
.sb-match-info-text table img { max-width: 100%; height: auto; }
@media (max-width: 768px) {
    .sb-match-info-text { font-size: .9rem; line-height: 1.75; }
    .sb-match-info-text table { font-size: .82rem; }
    .sb-match-info-text table td, .sb-match-info-text table th { padding: .45rem .5rem; }
}
.sb-pom { margin-top: .35rem; font-size: 0.875rem; }
.sb-pom-label { display: block; color: #6b7280; font-weight: 600; }
.sb-pom-link { color: #1d4ed8; font-weight: 600; text-decoration: none; font-size: 0.875rem; }
.sb-pom-link:hover { text-decoration: underline; }

/* ===== Overs & Squad Tabs ===== */
.overs-content { display: none; }
.overs-content.active { display: block; }
.overs-runs-cell { white-space: normal !important; min-width: 170px; }
.bb-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; margin: 2px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: .02em; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.bb-dot { background: #64748b; }
.bb-r { background: #0ea5e9; }
.bb-r1 { background: #0ea5e9; }
.bb-r2 { background: #2563eb; }
.bb-r3 { background: #14b8a6; }
.bb-r4 { background: #16a34a; }
.bb-r5 { background: #7c3aed; }
.bb-r6 { background: #db2777; }
.bb-w { background: #dc2626; }
.bb-wd { background: #f59e0b; }
.bb-nb { background: #ea580c; }
.bb-b { background: #a16207; }
.bb-lb { background: #0f766e; }
.overs-content .bowl-table { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.overs-content .bowl-table thead tr { background: #1d4ed8; }
.overs-content .bowl-table thead tr th { color: #fff; padding: .65rem .5rem; }
.overs-content .bowl-table td { padding: .6rem .5rem; }
.overs-content .bowl-table tbody tr:nth-child(even) { background: #f8fafc; }
.overs-content .bowl-table tbody tr:hover { background: #f0f9ff; }
.overs-content .bowl-table th:nth-child(1), .overs-content .bowl-table td:nth-child(1) { text-align: center; padding-left: .5rem; }
.overs-content .bowl-table th:nth-child(3), .overs-content .bowl-table td:nth-child(3), .overs-content .bowl-table th:nth-child(4), .overs-content .bowl-table td:nth-child(4) { text-align: left; }

.sqd-team-tabs { display: flex; gap: 4px; background: #f2f6fc; border-radius: 12px; padding: 4px; margin-bottom: 1.25rem; border: 1px solid #e2e8f0; }
.sqd-team-tab { flex: 1; padding: 8px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; transition: all .3s ease; color: #64748b; background: transparent; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sqd-team-tab:hover { background: rgba(255, 255, 255, .5); color: #1e293b; }
.sqd-team-tab.active { background: #ffffff; color: #1d4ed8; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.sqd-tab-panel { display: none; }
.sqd-tab-panel.active { display: block; }
.sqd-select-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.sqd-select-grid select:disabled { background: #f8fafc; color: #64748b; cursor: not-allowed; }
.sqd-count-hint { display: flex; gap: 1rem; font-size: 12px; color: #94a3b8; margin-top: 6px; }
.sqd-count-hint strong { color: #1d4ed8; }

/* ===== Players Page: 100% Transparent Card + Logo Watermark + Hover Tint ===== */
.players-page .pcard { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.players-page .pcard-img-wrap { background: transparent !important; }
.players-page .pcard-img-wrap img { background: transparent !important; }
.players-page .pcard-img-wrap::after { content: ''; position: absolute; inset: 0; background: rgba(2, 132, 199, .28); opacity: 0; transition: opacity .3s ease; z-index: 4; pointer-events: none; }
.players-page .pcard-img-wrap:hover img:not(.pcard-bg-logo) { filter: blur(1.5px); }
.players-page .pcard-img-wrap:hover::after { opacity: 1; }

/* ===== Team Profile: Smaller Player Cards & Pager ===== */
.tp-player-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tp-player-grid .pcard { border-radius: 12px; }
.tp-player-grid .pcard-img-wrap { height: 168px; }
.tp-player-grid .pcard-bottom { padding: 6px 8px; gap: 6px; }
.tp-player-grid .pcard-name { font-size: 10.5px; padding-left: 6px; }
.tp-player-grid .pcard-roleicon { width: 24px; height: 24px; font-size: .8rem; }
.tp-player-grid .pcard-icon-img { width: 18px; height: 18px; }
.tp-player-grid .pcard-tag { top: 8px; font-size: 9px; padding: 3px 10px 3px 12px; }
.tp-player-grid .pcard-overlay h4 { font-size: .78rem; }
.tp-player-grid .pcard-stats { gap: .8rem; }
.tp-player-grid .pcard-statnum { font-size: 1.1rem; }
.tp-player-grid .pcard-statlabel { font-size: .6rem; }
.tp-player-grid .pcard-viewbtn { font-size: .7rem; padding: .3rem .8rem; }
.tp-player-grid .pcard.is-revealed .pcard-overlay { opacity: 1; pointer-events: auto; }

.tp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2.25rem;
    padding: .45rem .75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: var(--shadow);
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.tp-pagination[hidden] { display: none; }
.tp-pagination.teams-pager,
.tp-pagination.site-pager {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1.25rem;
    border-radius: 1rem;
    margin-left: 0;
    margin-right: 0;
}
@media (max-width: 640px) {
    .tp-pagination.teams-pager,
    .tp-pagination.site-pager { justify-content: center; padding: .55rem .75rem; }
}
.tp-pg-summary, .tp-pg-page-info { font-size: .78rem; color: #6b7280; }
.tp-pg-controls { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.tp-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.15rem; height: 2.15rem; padding: 0 .6rem; border-radius: 999px; border: 1px solid transparent; background: transparent; color: #4b5563; font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tp-page-btn:hover:not(:disabled):not(.is-disabled):not(.active) { background: #eff6ff; color: #1d4ed8; }
.tp-page-btn.active { background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; box-shadow: 0 4px 10px rgba(29, 78, 216, .35); }
.tp-page-btn:disabled,
.tp-page-btn.is-disabled { color: #cbd5e1; cursor: default; }
.tp-page-dots { color: #9ca3af; font-size: .8rem; padding: 0 2px; }

@media (max-width: 1024px) { .tp-player-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .tp-player-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
    .tp-player-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .tprof-panel { padding: 1rem .8rem; }
    .tp-player-grid .pcard-img-wrap { height: 150px; }
    .tp-player-grid .pcard-overlay { justify-content: flex-end; gap: .3rem; padding: .35rem .3rem 2.55rem; background: linear-gradient(180deg, rgba(76, 29, 149, 0) 0%, rgba(29, 78, 216, .55) 42%, rgba(30, 64, 175, .92) 100%); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .tp-player-grid .pcard-overlay h4 { display: none; }
    .tp-player-grid .pcard-stats { gap: .3rem; max-width: 100%; justify-content: center; }
    .tp-player-grid .pcard-statnum { font-size: .78rem; line-height: 1.1; }
    .tp-player-grid .pcard-statlabel { font-size: .5rem; line-height: 1.15; }
    .tp-player-grid .pcard-viewbtn { font-size: .62rem; padding: .26rem .7rem; }
    .tp-player-grid .pcard-bottom { padding: 5px 7px; gap: 5px; }
    .tp-player-grid .pcard-name { font-size: 9.5px; padding-left: 5px; }
    .tp-player-grid .pcard-roleicon { width: 20px; height: 20px; font-size: .68rem; border-width: 1px; }
    .tp-player-grid .pcard-icon-img { width: 16px; height: 16px; }
    .tp-pagination { padding: .4rem .6rem; }
    .tp-pg-summary, .tp-pg-page-info { display: none; }
}
/* ===== Player Profile Page Design Structure ===== */
.profile-page-wrap {
    margin-top: 68px;
}
@media (min-width: 1024px) {
    .profile-page-wrap {
        margin-top: 1px;
    }
}

.profile-container {
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    padding: 18px 32px 64px 32px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.profile-top {
    position: relative;
    margin-bottom: 32px;
}

.profile-top .bg-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 256px;
    height: 256px;
    background: #dbeafe;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.16;
    z-index: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr 2fr;
        gap: 24px 32px;
        padding: 16px 32px 24px;
    }

    .player-image-wrap {
        align-self: start;
    }
}

.player-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-image-wrap .glow {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    width: calc(100% - 20px);
    max-width: 390px;
    aspect-ratio: 3 / 4;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    border-radius: 20px;
    filter: blur(14px);
    opacity: 0.14;
    transition: opacity 0.3s;
}

.player-image-wrap:hover .glow {
    opacity: 0.22;
}

.player-image-wrap .image-box {
    position: relative;
    background: #eff6ff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, .12);
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .25);
    width: 100%;
    max-width: 384px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
}

.player-image-wrap .image-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #eff6ff;
}

.player-image-wrap .image-box .initials {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #60a5fa, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .player-image-wrap .image-box .initials {
        font-size: 64px;
    }
}

.player-info-wrap {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

@media (min-width: 768px) {
    .player-info-wrap {
        padding: 8px 32px 24px;
    }
}

.player-name-wrap {
    position: relative;
    display: inline-block;
}

.player-name-wrap h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

@media (min-width: 1024px) {
    .player-name-wrap h1 {
        font-size: 48px;
    }
}

.player-name-wrap .underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 33.333%;
    height: 4px;
    background: linear-gradient(to right, #60a5fa, #60a5fa);
    border-radius: 9999px;
}

.player-role-badge {
    margin-top: 12px;
}

.player-role-badge span {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.style-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.style-badges .badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.style-badges .badge.batting {
    background: #dbeafe;
    color: #b45309;
}

.style-badges .badge.bowling {
    background: #f3f4f6;
    color: #1e40af;
}

.player-location {
    display: flex;
    align-items: center;
    color: #4b5563;
    margin-top: 16px;
    font-size: 14px;
}

.player-location svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    color: #2563eb;
    flex-shrink: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.detail-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.detail-card .label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-card .value {
    font-weight: 600;
    color: #1f2937;
    margin-top: 4px;
}

.stats-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.stat-card-item {
    position: relative;
    background: #eff6ff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    cursor: default;
}

.stat-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-card-item .hover-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-card-item:hover .hover-bg {
    opacity: 1;
}

.stat-card-item .hover-bg.rose { background: #ffe4e6; }
.stat-card-item .hover-bg.sky { background: #e0f2fe; }
.stat-card-item .hover-bg.amber { background: #fef3c7; }

.stat-card-item .content {
    position: relative;
    z-index: 1;
}

.stat-card-item .icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.stat-card-item .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.stat-card-item .icon-box.teal { background: #dbeafe; }
.stat-card-item .icon-box.red { background: #fee2e2; }
.stat-card-item .icon-box.amber { background: #fef3c7; }

.stat-card-item:hover .icon-box.teal { background: #fda4af; }
.stat-card-item:hover .icon-box.red { background: #7dd3fc; }
.stat-card-item:hover .icon-box.amber { background: #fcd34d; }

.stat-card-item .icon-box svg {
    width: 16px;
    height: 16px;
}

.stat-card-item .icon-box.teal svg { color: #1d4ed8; }
.stat-card-item .icon-box.red svg { color: #dc2626; }
.stat-card-item .icon-box.amber svg { color: #d97706; }

.stat-card-item:hover .icon-box.teal svg { color: #9f1239; }
.stat-card-item:hover .icon-box.red svg { color: #1e40af; }
.stat-card-item:hover .icon-box.amber svg { color: #92400e; }

.stat-card-item .stat-number {
    font-size: 20px;
    font-weight: 700;
    transition: color 0.2s;
}

@media (min-width: 1024px) {
    .stat-card-item .stat-number {
        font-size: 24px;
    }
}

.stat-card-item .stat-number.teal { color: #172554; }
.stat-card-item .stat-number.red { color: #dc2626; }
.stat-card-item .stat-number.amber { color: #d97706; }

.stat-card-item:hover .stat-number.teal { color: #9f1239; }
.stat-card-item:hover .stat-number.red { color: #1e40af; }
.stat-card-item:hover .stat-number.amber { color: #92400e; }

.stat-card-item .stat-label {
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
    transition: color 0.2s;
}

.stat-card-item .stat-label.rose { color: #be123c; }
.stat-card-item .stat-label.sky { color: #0284c7; }
.stat-card-item .stat-label.amber { color: #b45309; }

.about-section {
    margin-top: 32px;
    padding: 0 16px;
}

.about-section .heading {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.about-section .heading h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    position: relative;
}

.about-section .heading h2 span {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 4px;
    background: linear-gradient(to right, #60a5fa, #60a5fa);
    border-radius: 9999px;
}

.about-section .content {
    font-size: 18px;
    line-height: 1.625;
    color: #4b5563;
    background: #f9fafb;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    max-width: 100%;
}

.bio-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bio-text.expanded { display: block; }
.bio-toggle { display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; padding: 0; background: none; border: 0; color: var(--teal-dark); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: color .2s; }
.bio-toggle:hover { color: var(--teal-darker); text-decoration: underline; }

/* স্ট্যাটিস্টিকস হেডার, ট্যাব, সামারি কার্ড ও টেবিল ডিজাইন */
.stats-header {
    padding: 0 12px;
    margin-top: 48px;
}

.stats-header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.stats-header .wrapper h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    position: relative;
    padding-bottom: 4px;
}

.stats-header .wrapper h2 span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

.tabs-wrapper {
    padding: 0 12px;
    margin-bottom: 32px;
}

.tabs-wrapper .tab-buttons {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 24px;
}

.tabs-wrapper .tab-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    font-size: 14px;
}

.tabs-wrapper .tab-btn:hover {
    color: #1f2937;
}

.tabs-wrapper .tab-btn.active {
    background: white;
    color: #1d4ed8;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tabs-wrapper .tab-panel {
    display: none;
    animation: fadeSlide 0.3s ease;
}

.tabs-wrapper .tab-panel.active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tabs-wrapper .tab-panel .table-wrap {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow-x: auto;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.summary-card {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid;
}

.summary-card .label {
    font-size: 12px;
    display: block;
    font-weight: 500;
}

.summary-card .number {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

.summary-card.teal { background: #eff6ff; border-color: #dbeafe; }
.summary-card.teal .label { color: #1d4ed8; }
.summary-card.teal .number { color: #172554; }

.summary-card.amber { background: #fffbeb; border-color: #fef3c7; }
.summary-card.amber .label { color: #d97706; }
.summary-card.amber .number { color: #92400e; }

.summary-card.purple { background: #f0f9ff; border-color: #e0f2fe; }
.summary-card.purple .label { color: #0ea5e9; }
.summary-card.purple .number { color: #075985; }

.summary-card.indigo { background: #eff6ff; border-color: #dbeafe; }
.summary-card.indigo .label { color: #1d4ed8; }
.summary-card.indigo .number { color: #172554; }

.summary-card.pink { background: #fdf2f8; border-color: #fce7f3; }
.summary-card.pink .label { color: #db2777; }
.summary-card.pink .number { color: #9d174d; }

.summary-card.rose { background: #fff1f2; border-color: #ffe4e6; }
.summary-card.rose .label { color: #e11d48; }
.summary-card.rose .number { color: #9f1239; }

.summary-card.emerald { background: #f0f9ff; border-color: #e0f2fe; }
.summary-card.emerald .label { color: #0ea5e9; }
.summary-card.emerald .number { color: #075985; }

.summary-card.green { background: #f0fdf4; border-color: #dcfce7; }
.summary-card.green .label { color: #16a34a; }
.summary-card.green .number { color: #14532d; }

.stats-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.stats-table thead th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.stats-table thead th.center,
.stats-table tbody td.center {
    text-align: center;
}

.stats-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.stats-table tbody tr:hover {
    background: #eff6ff;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-table tbody .highlight {
    font-weight: 600;
    color: #d97706;
}

.stats-table tbody .highlight-indigo {
    font-weight: 600;
    color: #1d4ed8;
}

.stats-table tbody .highlight-emerald {
    font-weight: 600;
    color: #0ea5e9;
}

.stats-table .hs-badge {
    padding: 4px 8px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.stats-table .bbi-badge {
    padding: 4px 8px;
    background: #e0f2fe;
    color: #075985;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.stats-table .overall-row,
.stats-table tbody tr.overall-row:hover {
    background: #dbeafe;
    font-weight: 500;
}

.stats-table .overall-row td {
    font-weight: 600;
}

.stats-table .overall-row .highlight {
    color: #b45309;
}

.stats-table .overall-row .highlight-indigo {
    color: #172554;
}

.stats-table .overall-row .highlight-emerald {
    color: #075985;
}

.stats-table .no-data,
.no-data {
    text-align: center;
    color: #9ca3af;
    padding: 32px;
}

@media (max-width: 640px) {
    .profile-container {
        padding: 16px;
    }

    .profile-grid {
        padding: 8px;
        gap: 16px;
    }

    .player-info-wrap {
        padding: 8px;
    }

    .player-name-wrap h1 {
        font-size: 24px;
    }

    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .detail-card {
        padding: 12px;
    }

    .stats-grid-cards {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }

    .stat-card-item {
        padding: 10px 4px;
    }

    .stat-card-item .stat-number {
        font-size: 16px;
    }

    .stat-card-item .stat-label {
        font-size: 9px;
    }

    .stat-card-item .icon-box {
        width: 24px;
        height: 24px;
    }

    .stat-card-item .icon-box svg {
        width: 12px;
        height: 12px;
    }

    .tabs-wrapper .tab-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .tabs-wrapper .tab-btn {
        flex: 1;
        text-align: center;
        padding: 6px 12px;
        font-size: 11px;
    }

    .tabs-wrapper .tab-panel .table-wrap {
        padding: 12px;
    }

    .stats-table {
        font-size: 11px;
    }

    .stats-table thead th,
    .stats-table tbody td {
        padding: 6px 4px;
    }

    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }

    .summary-card .number {
        font-size: 16px;
    }
}

/* ===== Shared Site Pagination (frontend + dashboard) ===== */
.rcb-pager { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; width: max-content; max-width: 100%; margin: 2.25rem auto 0; padding: .45rem .65rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.rcb-pager-pages { display: flex; align-items: center; gap: .3rem; }
.rcb-pager-btn, .rcb-pager-num { display: inline-flex; align-items: center; justify-content: center; height: 2.15rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #4b5563; text-decoration: none; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.rcb-pager-btn { padding: 0 .85rem; }
.rcb-pager-num { width: 2.15rem; }
.rcb-pager a:hover { background: #eff6ff; color: var(--teal-dark); }
.rcb-pager-num.current { background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; box-shadow: 0 4px 10px rgba(29, 78, 216, .35); }
.rcb-pager-btn.disabled { color: #9ca3af; pointer-events: none; }
.rcb-pager-dots { color: #9ca3af; padding: 0 .15rem; font-size: .85rem; }
@media (max-width: 640px) {
    .rcb-pager { gap: .25rem; padding: .35rem .45rem; }
    .rcb-pager-btn { padding: 0 .55rem; font-size: .76rem; }
    .rcb-pager-num { width: 1.95rem; height: 1.95rem; font-size: .78rem; }
}

/* ===== Frontend Centered Pill Pagination ===== */
.pagination-pill-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
.pagination-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
    border: 1px solid rgba(229, 231, 235, .7);
    flex-wrap: wrap;
    justify-content: center;
}
.pagination-pill .pg-nav {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    border-radius: 999px;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.pagination-pill a.pg-nav:hover { color: #1d4ed8; background: #eff6ff; }
.pagination-pill .pg-nav.disabled { color: #9ca3af; pointer-events: none; cursor: default; }
.pagination-pill .pg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: all .2s ease;
}
.pagination-pill a.pg-num:hover { background: #eff6ff; color: #1d4ed8; }
.pagination-pill .pg-num.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.pagination-pill .pg-dots { display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; color: #9ca3af; font-size: 14px; }
@media (max-width: 640px) {
    .pagination-pill { padding: 6px 10px; gap: 4px; }
    .pagination-pill .pg-num { width: 32px; height: 32px; font-size: 13px; }
    .pagination-pill .pg-nav { padding: 5px 8px; font-size: 13px; }
}