/* myRasdhoo Hub – "liquid glass" theme, carried over from myRasdhoo (assets/style.css). */
:root {
    --bg: #0b0f19;
    --bg-deep: #070913;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-solid: #111827;
    --panel-2: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-2: #7dd3fc;
    --accent-ink: #0f172a;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.3px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.glass-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}
.header-container { max-width: 1300px; margin: 0 auto; padding: 0.9rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { font-size: 1.6rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: -4px; }
.glass-nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.glass-nav a {
    color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    padding: 0.45rem 0.95rem; border-radius: 9999px; transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-nav a:hover, .glass-nav a.active {
    color: #fff; background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}
.glass-nav a.admin-nav-btn { background: linear-gradient(135deg, #0284c7, #0369a1); border-color: transparent; color: #fff; }
.glass-nav .live-dot { color: var(--bad); }
.mobile-menu-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; display: none; }

/* ---------- hero: full-bleed photo, text over a soft bottom shade ---------- */
.photo-hero { position: relative; min-height: calc(100vh - 74px); display: flex; align-items: flex-end; overflow: hidden; background: #0b1220; isolation: isolate; }
.photo-hero.small { min-height: 64vh; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; z-index: -2; }
.hero-slide.active { opacity: 1; animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, var(--bg) 0%, rgba(11,15,25,.72) 16%, rgba(11,15,25,.18) 40%, rgba(11,15,25,0) 62%),
                linear-gradient(to bottom, rgba(11,15,25,.45) 0%, rgba(11,15,25,0) 16%),
                linear-gradient(to right, rgba(11,15,25,.45) 0%, rgba(11,15,25,0) 55%); }
.hero-content { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 2rem 3.25rem; }
.hero-kicker { display: inline-block; color: var(--accent-2); text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.9rem; padding: 0.3rem 0.85rem; border-radius: 99px; background: rgba(11,15,25,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(56,189,248,.25); }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; color: #fff; letter-spacing: -1.5px; line-height: 1.02; max-width: 16ch; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.small .hero-content h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); max-width: 22ch; }
.hero-content p { font-size: 1.15rem; color: #e2e8f0; max-width: 620px; margin-top: 0.9rem; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-dots { position: absolute; right: 2rem; bottom: 3.4rem; display: flex; gap: 0.5rem; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: all .3s; }
.hero-dots button.active { background: #fff; width: 26px; border-radius: 99px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; color: #e2e8f0; font-size: 0.95rem; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero-meta i { color: var(--accent); margin-right: 0.35rem; }
.staff-note { background: rgba(251,191,36,.12); border-bottom: 1px solid rgba(251,191,36,.35); color: #fcd34d; text-align: center; padding: 0.55rem 1rem; font-size: 0.9rem; font-weight: 600; }
.staff-note a { color: #fde68a; }

/* ---------- buttons ---------- */
.btn, .btn-glass-primary, .btn-glass-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.5rem; border-radius: 9999px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.25s ease; cursor: pointer; border: 1px solid transparent;
    font-family: inherit; line-height: 1.2;
}
.btn-glass-primary, .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35); }
.btn-glass-primary:hover, .btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-glass-secondary, .btn-ghost { background: rgba(255, 255, 255, 0.07); color: #fff; border-color: rgba(255, 255, 255, 0.15); }
.btn-glass-secondary:hover, .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-danger { background: rgba(248, 113, 113, 0.12); color: var(--bad); border-color: rgba(248, 113, 113, 0.3); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); }
.btn-ok { background: rgba(52, 211, 153, 0.14); color: var(--ok); border-color: rgba(52, 211, 153, 0.35); }
.btn-ok:hover { background: rgba(52, 211, 153, 0.24); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.link-btn.danger { color: var(--bad); }

/* ---------- layout ---------- */
.main-container { max-width: 1300px; margin: 3.5rem auto; padding: 0 2rem; }
.narrow { max-width: 900px; }
.section { margin-bottom: 4.5rem; }
.section-title-bar {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.section-title-bar .kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem; font-weight: 700; }
.section-title-bar h2 { font-size: 1.8rem; font-weight: 700; }
.section-title-bar p { color: var(--muted); }
.badge-count {
    background: var(--accent-soft); color: var(--accent); padding: 0.4rem 1rem; border-radius: 99px;
    font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(56, 189, 248, 0.2); white-space: nowrap; text-decoration: none;
}
.glass-panel {
    background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.glass-panel + .glass-panel { margin-top: 1.5rem; }
.panel-title { font-size: 1.15rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; justify-content: space-between; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.prose p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 1rem; }
.prose h2 { font-size: 2rem; margin-bottom: 1.25rem; }
.pull-quote { border-left: 3px solid var(--accent); padding: 0.5rem 0 0.5rem 1.25rem; font-size: 1.25rem; font-style: italic; color: #fff; margin-top: 1.5rem; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ---------- stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.stat-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.stat-tile b { display: block; font-size: 2.3rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-tile span { color: var(--muted); font-size: 0.95rem; }

/* ---------- cards ---------- */
.glass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.glass-grid.tight { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.glass-card {
    background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
a.glass-card:hover, .glass-card.hoverable:hover {
    transform: translateY(-6px); border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}
.card-media-wrapper { position: relative; height: 250px; overflow: hidden; background: #000; }
.card-media-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
a.glass-card:hover .card-media-wrapper img { transform: scale(1.07); }
.media-category-tag {
    position: absolute; top: 14px; left: 14px; background: rgba(15, 23, 42, 0.82); backdrop-filter: blur(8px);
    color: var(--accent); padding: 0.3rem 0.8rem; font-size: 0.75rem; font-weight: 700; border-radius: 99px;
    border: 1px solid rgba(56, 189, 248, 0.25); text-transform: uppercase;
}
.media-number { position: absolute; bottom: 12px; right: 14px; font-size: 2.6rem; font-weight: 800; color: rgba(255,255,255,0.85); text-shadow: 0 2px 12px rgba(0,0,0,.6); line-height: 1; }
.card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-sub { font-size: 0.78rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.card-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; color: #fff; }
.card-body p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.2rem; flex: 1; }
.glass-read-more { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.2s; }
a.glass-card:hover .glass-read-more { gap: 0.8rem; }
.no-photo { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; color: rgba(56,189,248,.35); background: radial-gradient(circle at 30% 20%, rgba(56,189,248,.18), transparent 60%), #0f172a; }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
    padding: 0.4rem 1rem; border-radius: 99px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
    color: var(--ink-2); text-decoration: none; font-size: 0.88rem; font-weight: 500;
}
.chip:hover, .chip.active { background: var(--accent-soft); border-color: rgba(56, 189, 248, 0.35); color: #fff; }

/* tabs */
.tabs { display: flex; gap: 0.35rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; overflow-x: auto; }
.tabs a { padding: 0.8rem 1.2rem; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: #fff; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery a:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; place-items: center; z-index: 3000; padding: 2rem; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 12px; }

/* details */
.glass-details-card { background: var(--panel); backdrop-filter: blur(16px); border: 1px solid var(--line); padding: 3rem; border-radius: 24px; box-shadow: 0 25px 50px rgba(0,0,0,.5); }
.glass-details-card h1 { font-size: 2.4rem; font-weight: 800; margin: 0.5rem 0 1.5rem; }
.details-media-box { border-radius: 16px; overflow: hidden; background: #000; max-height: 520px; margin-bottom: 2rem; }
.details-media-box img { width: 100%; max-height: 520px; object-fit: cover; }
.contact-list { list-style: none; display: grid; gap: 0.6rem; margin-top: 1rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: baseline; color: var(--ink-2); }
.contact-list i { color: var(--accent); width: 1.1rem; }
.booking-box { margin-top: 2.5rem; background: rgba(56,189,248,.05); border: 1px solid rgba(56,189,248,.2); padding: 1.75rem; border-radius: 16px; }
.booking-box h3 { color: var(--accent); margin-bottom: 0.6rem; }

/* ---------- sport ---------- */
.tour-card .card-media-wrapper { height: 180px; }
.sport-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.match-list { display: grid; gap: 0.75rem; }
.match-row {
    display: grid; grid-template-columns: 130px 1fr auto 1fr 110px; align-items: center; gap: 1rem;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1.25rem;
    text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s;
}
a.match-row:hover { border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.06); }
.match-row .when { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
.match-row .team { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; min-width: 0; }
.match-row .team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-row .team.home { justify-content: flex-end; text-align: right; }
.match-row .score { font-size: 1.35rem; font-weight: 800; min-width: 88px; text-align: center; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.05); border-radius: 10px; padding: 0.2rem 0.6rem; }
.match-row .score.vs { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.match-row .score small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.match-row .meta { text-align: right; font-size: 0.8rem; }
.match-row .winner { color: #fff; }
.match-row .loser { color: var(--muted); }
.team-dot { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; display: grid; place-items: center; font-size: 0.65rem; font-weight: 800; color: #0f172a; overflow: hidden; }
.team-dot img { width: 100%; height: 100%; object-fit: cover; }
.team-dot.lg { width: 72px; height: 72px; flex-basis: 72px; font-size: 1.3rem; }
.team-dot.xl { width: 110px; height: 110px; flex-basis: 110px; font-size: 2rem; }
.round-head { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; margin: 2rem 0 0.75rem; }
.round-head:first-child { margin-top: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--bad); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.live-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* compact match rows inside two-column blocks */
.cols-2 .match-row { grid-template-columns: 1fr auto 1fr; gap: .4rem .75rem; }
.cols-2 .match-row .when { grid-column: 1 / -1; order: -1; display: flex; justify-content: space-between; }
.cols-2 .match-row .when br { display: none; }
.cols-2 .match-row .meta { grid-column: 1 / -1; text-align: center; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.tbl th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); white-space: nowrap; }
.tbl td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl .num { text-align: center; font-variant-numeric: tabular-nums; width: 3rem; }
.tbl .pts { font-weight: 800; color: #fff; }
.tbl .pos { width: 2.5rem; color: var(--muted); font-weight: 700; }
.tbl tr.qualify td.pos { color: var(--ok); }
.tbl .team-cell { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .actions > * { margin-left: 0.5rem; }
.form-dots { display: flex; gap: 3px; }
.form-dots i { width: 18px; height: 18px; border-radius: 5px; font-style: normal; font-size: 0.65rem; font-weight: 800; display: grid; place-items: center; color: #0f172a; }
.form-dots .W { background: var(--ok); } .form-dots .D { background: var(--muted); } .form-dots .L { background: var(--bad); }

/* badges */
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,.04); }
.badge-published, .badge-approved, .badge-finished, .badge-completed, .badge-active { color: var(--ok); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.badge-pending, .badge-registration, .badge-break, .badge-draft { color: var(--warn); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.badge-rejected, .badge-hidden, .badge-cancelled, .badge-withdrawn, .badge-inactive { color: var(--bad); border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }
.badge-live, .badge-ongoing { color: #fff; border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.25); }
.badge-scheduled, .badge-postponed { color: var(--accent); border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.08); }

/* match centre */
.scoreboard-hero { text-align: center; }
.sb-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; margin: 1.5rem 0; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; font-size: 1.3rem; font-weight: 700; text-decoration: none; color: #fff; }
.sb-score { font-size: 4.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -2px; line-height: 1; }
.sb-score small { display: block; font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-top: 0.4rem; }
.sb-clock { font-size: 1.5rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; display: grid; gap: 0.5rem; }
.timeline li { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 1rem; align-items: center; }
.timeline .min { text-align: center; font-weight: 700; color: var(--accent); font-size: 0.85rem; background: var(--accent-soft); border-radius: 99px; padding: 0.1rem 0; }
.timeline .ev { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-2); }
.timeline .ev.home { justify-content: flex-end; text-align: right; }
.card-icon { display: inline-block; width: 11px; height: 15px; border-radius: 2px; }
.card-icon.yellow { background: #facc15; } .card-icon.red { background: #ef4444; } .card-icon.blue { background: #3b82f6; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.5rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--ink-2); }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=url], input[type=tel], input[type=search], select, textarea {
    width: 100%; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid var(--line-2);
    background: rgba(2, 6, 23, 0.55); color: var(--ink); font: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
input[type=color] { width: 56px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; padding: 3px; cursor: pointer; }
input[type=file] { color: var(--muted); font-size: 0.9rem; }
input[type=file]::file-selector-button { background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--line-2); border-radius: 99px; padding: 0.4rem 1rem; margin-right: 0.75rem; cursor: pointer; }
select option { background: #0f172a; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.75rem; flex-wrap: wrap; }
.inline-form { display: inline; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumb-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.thumb-grid label { position: relative; }
.thumb-grid img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.preview-img { max-height: 140px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 0.6rem; }
.roster-table input, .roster-table select { padding: 0.5rem 0.65rem; border-radius: 9px; }

/* alerts */
.alert { padding: 0.9rem 1.2rem; border-radius: 12px; margin-bottom: 1.25rem; font-weight: 500; border: 1px solid; }
.alert-success { background: rgba(52,211,153,.1); color: #6ee7b7; border-color: rgba(52,211,153,.3); }
.alert-error { background: rgba(248,113,113,.1); color: #fca5a5; border-color: rgba(248,113,113,.3); }
.alert-info { background: rgba(56,189,248,.08); color: var(--accent-2); border-color: rgba(56,189,248,.3); }
.alert-warn { background: rgba(251,191,36,.08); color: #fcd34d; border-color: rgba(251,191,36,.3); }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; border: 1px dashed var(--line-2); border-radius: 16px; }

/* auth */
.auth-container { max-width: 460px; margin: 5rem auto; padding: 0 1.25rem; }
.auth-container .glass-panel h1 { font-size: 1.7rem; margin-bottom: 0.4rem; }

/* ---------- footer ---------- */
.standard-footer { background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--muted); padding: 4rem 2rem 2rem; margin-top: 5rem; }
.footer-content { max-width: 1300px; margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.footer-col h3 { color: #fff; font-size: 1.25rem; margin-bottom: 1rem; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 0.45rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1300px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.05); padding-top: 2rem; text-align: center; font-size: 0.9rem; }

/* ---------- portals (admin / team / officials) ---------- */
.portal { display: flex; min-height: 100vh; }
.portal-sidebar {
    width: 260px; flex: 0 0 260px; background: rgba(7, 9, 19, 0.92); border-right: 1px solid var(--line);
    padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.portal-sidebar .logo { font-size: 1.4rem; padding: 0 0.6rem; }
.portal-role { margin: -0.75rem 0.6rem 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; }
.portal-nav { list-style: none; display: grid; gap: 0.2rem; }
.portal-nav .nav-head { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: #475569; font-weight: 700; padding: 0.9rem 0.75rem 0.3rem; }
.portal-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.93rem; }
.portal-nav a i { width: 1.1rem; text-align: center; }
.portal-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.portal-nav a.active { color: #fff; background: var(--accent-soft); border: 1px solid rgba(56,189,248,.25); }
.portal-nav .count { margin-left: auto; background: var(--warn); color: #0f172a; border-radius: 99px; font-size: 0.7rem; font-weight: 800; padding: 0 0.45rem; }
.portal-user { margin-top: auto; border-top: 1px solid var(--line); padding: 1rem 0.6rem 0; font-size: 0.85rem; color: var(--muted); }
.portal-user b { color: #fff; display: block; }
.portal-user a { color: var(--accent); text-decoration: none; margin-right: 0.75rem; }
.portal-main { flex: 1; min-width: 0; padding: 2.25rem 2.5rem 4rem; }
.portal-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.portal-top h1 { font-size: 1.75rem; }
.portal-top .crumbs { font-size: 0.85rem; color: var(--muted); }
.portal-top .crumbs a { color: var(--muted); text-decoration: none; }
.portal-top .crumbs a:hover { color: var(--accent); }
.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.toolbar form { display: flex; gap: 0.5rem; }
.toolbar select, .toolbar input { width: auto; padding: 0.5rem 0.8rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; text-decoration: none; color: inherit; }
.kpi b { font-size: 2rem; display: block; color: #fff; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 0.88rem; }
.kpi i { color: var(--accent); float: right; font-size: 1.2rem; }
.portal-toggle { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split.reverse > :first-child { order: 0; }
    .cols-3 { grid-template-columns: 1fr; }
    .match-row { grid-template-columns: 1fr auto 1fr; }
    .match-row .when, .match-row .meta { grid-column: 1 / -1; text-align: center; }
    .match-row .when { order: -1; }
}
@media (max-width: 860px) {
    .portal { flex-direction: column; }
    .portal-sidebar { width: 100%; flex-basis: auto; height: auto; position: relative; padding: 1rem; }
    .portal-sidebar .portal-nav, .portal-sidebar .portal-user { display: none; }
    .portal-sidebar.open .portal-nav, .portal-sidebar.open .portal-user { display: grid; }
    .portal-sidebar.open .portal-user { display: block; }
    .portal-toggle { display: block; position: absolute; right: 1rem; top: 1rem; background: none; border: 0; color: #fff; font-size: 1.4rem; }
    .portal-main { padding: 1.5rem 1rem 3rem; }
}
@media (max-width: 768px) {
    .header-container { padding: 0.9rem 1rem; }
    .glass-nav {
        display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(15,23,42,.97); backdrop-filter: blur(20px); padding: 1rem; border-bottom: 1px solid var(--line);
    }
    .glass-nav.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .photo-hero { min-height: 78vh; }
    .photo-hero.small { min-height: 52vh; }
    .hero-content { padding: 0 1rem 2.25rem; }
    .hero-dots { right: 1rem; bottom: auto; top: 1rem; }
    .main-container { padding: 0 1rem; margin: 2.5rem auto; }
    .glass-grid { grid-template-columns: 1fr; }
    .form-grid, .cols-2 { grid-template-columns: 1fr; }
    .glass-panel, .glass-details-card { padding: 1.4rem; }
    .sb-score { font-size: 3rem; }
    .sb-teams { gap: 0.75rem; }
    .sb-team { font-size: 1rem; }
    .standard-footer { padding: 3rem 1rem 1.5rem; }
}
.cols-2 > .glass-panel, .cols-3 > .glass-panel, .split > .glass-panel, .j-grid > .glass-panel { margin-top: 0; }
@media (max-width: 600px) {
    .match-row .team, .match-row .team.home { flex-direction: column; justify-content: center; text-align: center; gap: 0.3rem; font-size: 0.85rem; }
    .match-row .team.home { flex-direction: column-reverse; }
    .match-row .team span { white-space: normal; }
    .match-row .score { min-width: 70px; font-size: 1.15rem; }
}

/* ---------- registration: photos, flags, review ---------- */
.req { color: var(--bad); }
.badge-changes_requested { color: #fdba74; border-color: rgba(251,146,60,.45); background: rgba(251,146,60,.12); }
.photo-cell { width: 76px; }
.photo-pick { position: relative; display: block; cursor: pointer; width: 54px; }
.photo-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.passport { width: 54px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); display: block; background: rgba(255,255,255,.04); }
.passport.empty { display: grid; place-items: center; color: var(--muted); border-style: dashed; font-size: 1.2rem; }
.photo-pick:hover .passport { border-color: var(--accent); }
.passport.sm, .passport.sm.empty { width: 36px; height: 46px; border-radius: 6px; font-size: .8rem; }
.passport.lg { width: 96px; height: 124px; border-radius: 12px; }
.team-flag { height: 28px; width: auto; max-width: 56px; border-radius: 4px; border: 1px solid var(--line-2); object-fit: cover; display: inline-block; vertical-align: middle; }
.team-flag.lg { height: 56px; max-width: 96px; border-radius: 6px; }
.check-list { list-style: none; display: grid; gap: 0.45rem; }
.check-list li { padding: 0.55rem 0.8rem; border-radius: 10px; font-size: 0.92rem; }
.check-list li.bad { background: rgba(248,113,113,.08); color: #fca5a5; }
.check-list li.warn { background: rgba(251,191,36,.07); color: #fcd34d; }
.history { list-style: none; display: grid; gap: 0.9rem; border-left: 2px solid var(--line-2); padding-left: 1rem; }
.history-msg { margin-top: 0.35rem; background: rgba(255,255,255,.04); border-radius: 10px; padding: 0.6rem 0.8rem; color: var(--ink-2); font-size: 0.93rem; }
.request-box { border: 1px solid rgba(251,146,60,.45); background: rgba(251,146,60,.08); border-radius: 18px; padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.request-box h3 { color: #fdba74; margin-bottom: 0.6rem; }
.request-box .chips { margin: 0.5rem 0 0.9rem; }
.request-box .chip { background: rgba(251,146,60,.12); border-color: rgba(251,146,60,.35); color: #fed7aa; }
.squad-photo { display: flex; align-items: center; gap: 0.7rem; }

.badge-incomplete { color: var(--accent-2); border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.08); }
.steps { list-style: none; counter-reset: st; display: grid; gap: .8rem; margin: 1rem 0 1.2rem; }
.steps li { counter-increment: st; position: relative; padding-left: 2.4rem; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -.1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); }
.steps li.done::before { content: '✓'; background: var(--ok); color: #052e16; border-color: transparent; }

/* ---------- Dynamic Island menu ---------- */
.island-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 1000; display: flex; justify-content: center; pointer-events: none;
    transition: transform .55s cubic-bezier(.2,.9,.25,1.15), opacity .35s ease; }
.island-wrap.hide { transform: translateY(-160%); opacity: 0; }
.island { pointer-events: auto; background: rgba(3,5,10,.88); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255,255,255,.09); border-radius: 30px; box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
    max-width: calc(100vw - 24px); transition: border-radius .5s cubic-bezier(.2,.9,.25,1.1), box-shadow .4s, background .4s; overflow: hidden; }
.island-bar { display: flex; align-items: center; gap: .7rem; padding: .42rem .45rem .42rem 1.15rem; min-height: 48px; }
.island-logo { font-weight: 800; font-size: 1.08rem; color: #fff; text-decoration: none; letter-spacing: -.3px; white-space: nowrap; }
.island-logo span { color: var(--accent); }
.island-here { color: var(--muted); font-size: .85rem; font-weight: 600; padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.island-live { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: #fff; font-size: .82rem; background: rgba(248,113,113,.14);
    border: 1px solid rgba(248,113,113,.35); padding: .22rem .65rem; border-radius: 99px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.island-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite; }
.island-live .sc { font-weight: 800; color: #fecaca; }
.island-live.flash { animation: islandGoal 1.4s ease; }
@keyframes islandGoal { 0%,100% { transform: scale(1); } 25% { transform: scale(1.12); background: rgba(52,211,153,.3); } }
.island-toggle { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.08); display: grid; place-content: center; gap: 5px; margin-left: .2rem; flex: 0 0 38px; }
.island-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s ease; }
.island.open .island-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.island.open .island-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.island-panel { display: grid; grid-template-rows: 0fr; max-width: 0; transition: grid-template-rows .5s cubic-bezier(.2,.9,.25,1.05), max-width .5s cubic-bezier(.2,.9,.25,1.05); }
.island.open .island-panel { grid-template-rows: 1fr; max-width: 900px; }
.island-links { min-height: 0; min-width: 0; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 0 .7rem; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .4s ease, padding .4s ease; }
.island.open .island-links { opacity: 1; transform: none; padding: .2rem .7rem .8rem; transition-delay: .08s; }
.island-links a { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; padding: .5rem .9rem; border-radius: 99px; background: rgba(255,255,255,.05); white-space: nowrap; transition: background .2s, color .2s; }
.island-links a:hover, .island-links a.active { background: var(--accent-soft); color: #fff; }
.island-links a i { color: var(--accent); margin-right: .25rem; }
.island-links a.island-cta { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.island-links a.island-cta i { color: var(--accent-ink); }
.island.open { border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); background: rgba(3,5,10,.94); }
.island-spacer { height: 84px; }
.has-island .photo-hero { min-height: 100vh; }
.has-island .photo-hero.small { min-height: 70vh; }
.has-island .staff-note { position: relative; z-index: 5; margin-top: 76px; }
.preview-chip { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1100; background: #fbbf24; color: #1c1002; font-size: .85rem; font-weight: 600;
    padding: .5rem 1rem; border-radius: 99px; box-shadow: 0 8px 30px rgba(0,0,0,.4); white-space: nowrap; }
.preview-chip a { color: #1c1002; text-decoration: underline; }

@media (max-width: 600px) {
    .island-wrap { top: 10px; }
    .island { width: auto; max-width: calc(100vw - 20px); }
    .island.open { width: calc(100vw - 20px); }
    .island.open .island-panel { max-width: none; }
    .island:not(.open) .island-bar { gap: .55rem; padding: .32rem .32rem .32rem 1rem; min-height: 44px; }
    .island:not(.open) .island-toggle { width: 34px; height: 34px; flex-basis: 34px; }
    .island-bar { justify-content: space-between; }
    .island-links { display: grid; grid-template-columns: 1fr 1fr; }
    .island-links a { text-align: center; padding: .7rem .5rem; }
    .island-links a.island-cta { grid-column: 1 / -1; }
    .preview-chip { white-space: normal; width: calc(100vw - 32px); text-align: center; }
}

/* One touch surface: no per-element tap flash; the closed island reacts as a whole */
.island, .island * { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.island a:focus, .island button:focus { outline: none; }
.island a:focus-visible, .island button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.island { transition: border-radius .5s cubic-bezier(.2,.9,.25,1.1), box-shadow .4s, background .4s, transform .18s ease; -webkit-user-select: none; user-select: none; }
@media (hover: none) {
    .island-bar { cursor: pointer; }
    .island:not(.open) .island-bar > * { pointer-events: none; }
    .island:not(.open):active { transform: scale(.96); }
}

.island.sizing { transition: width .45s cubic-bezier(.2,.9,.25,1.05), border-radius .5s, box-shadow .4s, background .4s, transform .18s ease; }

/* ---------- fixture schedule planner (Admin → tournament → Draw & fixtures) ---------- */
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.plan-sec { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; min-width: 0; }
.plan-sec h4 { display: flex; align-items: center; gap: .55rem; font-size: .95rem; margin-bottom: .85rem; }
.plan-n { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 800; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem 1rem; }
.plan-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.wd-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.wd input { position: absolute; opacity: 0; pointer-events: none; }
.wd span { display: inline-block; padding: .3rem .65rem; border-radius: 99px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--ink-2); user-select: none; }
.wd input:checked + span { background: rgba(248,113,113,.15); border-color: rgba(248,113,113,.5); color: #fca5a5; text-decoration: line-through; }
.cal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.cal-m b { display: block; font-size: .82rem; margin-bottom: .4rem; }
.cal-g { display: grid; grid-template-columns: repeat(7, 30px); gap: 3px; }
.cal-h { font-size: .65rem; color: var(--muted); text-align: center; font-weight: 700; }
.cal-d { height: 30px; border-radius: 8px; border: 1px solid rgba(56,189,248,.35); background: rgba(56,189,248,.12); color: #e0f2fe; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; padding: 0; }
.cal-d:hover { border-color: var(--accent); }
.cal-d.brk { background: rgba(248,113,113,.16); border-color: rgba(248,113,113,.55); color: #fca5a5; text-decoration: line-through; }
.cal-d.off { background: transparent; border-color: var(--line); color: rgba(148,163,184,.55); text-decoration: line-through; cursor: default; }
.cal-d.out { background: transparent; border-color: transparent; color: rgba(148,163,184,.3); cursor: default; }
.sess { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.sess select { flex: 1 1 200px; min-width: 0; width: auto; }
.sess-t { display: inline-flex; align-items: center; gap: .4rem; }
.sess-t input { width: 140px; }
.sess-t span { color: var(--muted); font-size: .85rem; }
.sess-n { min-width: 70px; }
#sAdd { margin-top: .7rem; }
.plan-sum { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: .9rem; }
.plan-sum:empty { display: none; }
.plan-sum.ok { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.07); }
.plan-sum.ok i { color: var(--ok); }
.plan-sum.bad { border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.08); }
.plan-sum.bad i { color: var(--bad); }
.plan-sep { flex: 1; }
@media (max-width: 900px) { .plan { grid-template-columns: 1fr; } }

/* ---------- tie-breaker order (tournament settings) ---------- */
.tb-list { list-style: decimal inside; display: grid; gap: .35rem; margin-top: .5rem; max-width: 560px; }
.tb-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.tb-list li label { flex: 1; }
.tb-list li span { display: flex; gap: .2rem; }

/* ---------- team sheet (team portal) ---------- */
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .6rem; }
.sheet-p { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); opacity: .6; transition: .15s; }
.sheet-p.on { opacity: 1; border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.08); }
.sheet-p.banned { opacity: .45; border-style: dashed; border-color: rgba(248,113,113,.5); }
.sheet-p.banned small { color: #fca5a5; }
.sheet-main { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; cursor: pointer; }
.sheet-main input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
.sheet-ph img, .sheet-ph span { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #1e293b; font-weight: 800; }
.sheet-name { min-width: 0; }
.sheet-name b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-name small { color: var(--muted); font-size: .74rem; }
.sheet-ctl { display: flex; align-items: center; gap: .4rem; }
.sheet-ctl input[type=number] { width: 58px; padding: .35rem .4rem; text-align: center; }
.sheet-tags { display: flex; gap: .25rem; }
.sheet-tags label { cursor: pointer; }
.sheet-tags input { position: absolute; opacity: 0; pointer-events: none; }
.sheet-tags i { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 .3rem; border-radius: 7px; border: 1px solid var(--line-2); font-style: normal; font-size: .7rem; font-weight: 800; color: var(--muted); }
.sheet-tags input:checked + i { background: #facc15; border-color: #facc15; color: #111; }
.sheet-bar { position: sticky; bottom: .8rem; margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; border-radius: 16px; background: rgba(7,9,19,.9); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }

/* ---------- admin match page ---------- */
.match-sum { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; text-align: center; }
.ms-team { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.ms-score { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .admin-cols { grid-template-columns: 1fr; } }
.sheet-admin { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.sheet-admin-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sheet-names { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .45rem; font-size: .84rem; color: var(--ink-2); }
.sheet-names b { color: var(--accent); }
.sheet-names i { font-style: normal; font-size: .68rem; font-weight: 800; color: #facc15; }

/* ---------- notices, fees, fixture tools (team portal) ---------- */
.notice-h { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.notice.pinned, .notice-item.pinned { border-color: rgba(56,189,248,.45); }
.notices-box .notice-item { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.notices-box .notice-item:last-child { border-bottom: 0; }
.fee-box { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.05); }
.fx-tools { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: .35rem .9rem .8rem; margin-top: -.35rem; font-size: .82rem; }
.fx-tools a { color: var(--ink-2); text-decoration: none; }
.fx-tools a:hover { color: var(--accent); }
.fx-tools .ok { color: var(--ok); } .fx-tools .wait { color: var(--warn); } .fx-tools .todo { color: #fca5a5; }

/* ---------- console team-sheet chip ---------- */
.c-sheet { margin-left: auto; font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); background: transparent; font-family: inherit; }
.c-sheet.ok { color: var(--ok); border-color: rgba(52,211,153,.4); }
.c-sheet.todo { color: #fde68a; border-color: rgba(251,191,36,.6); background: rgba(251,191,36,.12); cursor: pointer; animation: reqPulse 1.6s infinite; }

/* ---------- public: awards, stream, player of the match, share ---------- */
.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.award-list { list-style: none; display: grid; gap: .4rem; }
.award-list li { display: grid; grid-template-columns: 26px 40px 1fr auto; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 12px; }
.award-list li.top { background: linear-gradient(90deg, rgba(250,204,21,.14), transparent); border: 1px solid rgba(250,204,21,.3); }
.aw-rank { font-weight: 800; color: var(--muted); text-align: center; }
.award-list li.top .aw-rank { color: #facc15; }
.aw-ph img, .aw-ph span { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #0f172a; font-weight: 800; }
.aw-name b { display: block; font-size: .92rem; }
.aw-name small { color: var(--muted); font-size: .76rem; }
.aw-n { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stream-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.potm-win { display: flex; align-items: center; gap: .9rem; padding: .6rem; border-radius: 14px; background: linear-gradient(90deg, rgba(250,204,21,.16), transparent); margin-bottom: .8rem; }
.potm-win img, .potm-win > span { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #facc15; color: #111; }
.potm-win b { display: block; font-size: 1.05rem; }
.potm-win small { color: var(--muted); }
.potm-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.potm-form select { flex: 1 1 220px; width: auto; }
.potm-res { margin-top: .8rem; display: grid; gap: .35rem; }
.potm-bar { position: relative; display: flex; justify-content: space-between; gap: .5rem; padding: .35rem .6rem; border-radius: 8px; background: rgba(255,255,255,.04); overflow: hidden; font-size: .85rem; }
.potm-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(250,204,21,.18); z-index: 0; }
.potm-bar span, .potm-bar b { position: relative; z-index: 1; }
.center-tools { justify-content: center; margin-top: .8rem; }
.tab-tools { justify-content: flex-end; }
.share-modal { position: fixed; inset: 0; z-index: 300; background: rgba(2,6,23,.88); display: grid; place-items: center; padding: 1rem; backdrop-filter: blur(6px); }
.share-box { width: min(560px, 100%); text-align: center; }
.share-box img { width: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.share-actions { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }

.admin-cols .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-title.ic { justify-content: flex-start; gap: .5rem; }

/* =========================================================
   Phones & tablets
   ========================================================= */
@media (max-width: 1000px) {
    .split[style], .admin-cols { grid-template-columns: 1fr !important; }
}
@media (max-width: 860px) {
    /* portal: sticky top bar with a Menu button; the menu opens full screen */
    .portal-sidebar { position: sticky; top: 0; z-index: 70; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .1rem .8rem; height: auto; padding: .7rem 1rem; background: rgba(7, 9, 19, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-right: 0; border-bottom: 1px solid var(--line); }
    .portal-sidebar .logo { font-size: 1.2rem; padding: 0; }
    .portal-role { margin: 0; font-size: .65rem; }
    .portal-toggle { display: inline-flex; align-items: center; gap: .45rem; position: static; margin-left: auto; padding: .55rem .9rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: #fff; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
    .portal-toggle .pt-close { display: none; }
    .portal-sidebar.open { position: fixed; inset: 0; z-index: 90; flex-direction: column; flex-wrap: nowrap; align-items: stretch; overflow-y: auto; padding: 1rem 1rem 2rem; }
    .portal-sidebar.open .portal-toggle { position: absolute; top: .8rem; right: 1rem; }
    .portal-sidebar.open .portal-toggle .pt-open { display: none; }
    .portal-sidebar.open .portal-toggle .pt-close { display: inline; }
    .portal-sidebar.open .portal-nav a { padding: .8rem .9rem; font-size: 1rem; }
    body.menu-open { overflow: hidden; }
    .portal-main { padding: 1.25rem 1rem 3rem; }
    .portal-top { margin-bottom: 1.1rem; }
    .portal-top h1 { font-size: 1.4rem; }
    .portal-top .toolbar { width: 100%; }
    /* team managers: bottom tab bar */
    .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(7, 9, 19, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .55rem 0 .5rem; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 700; }
    .tabbar a i { font-size: 1.15rem; }
    .tabbar a.on { color: var(--accent); }
    body.has-tabbar .portal-main { padding-bottom: 6rem; }
    body.menu-open .tabbar { display: none; }
    /* inputs at 16px so phones don't zoom in when typing */
    input, select, textarea { font-size: 16px; }
    .tabs { margin-bottom: 1.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs a { padding: .75rem .9rem; }
    .plan { grid-template-columns: 1fr; }
}
@media (min-width: 861px) { .tabbar { display: none; } }

@media (max-width: 640px) {
    /* any grid laid out with an inline style collapses to one column */
    .form-grid, .form-grid[style], .cols-2[style], .plan-grid, .admin-cols .form-grid { grid-template-columns: 1fr !important; }
    .form-grid[style*="repeat(4"], .form-grid[style*="repeat(5"] { grid-template-columns: 1fr 1fr !important; }
    .kpis { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .kpi { padding: .9rem 1rem; }
    .kpi b { font-size: 1.6rem; }
    .glass-panel { padding: 1.1rem; border-radius: 18px; }
    .panel-title { font-size: 1rem; flex-wrap: wrap; gap: .4rem; }
    .form-actions { gap: .5rem; }
    .form-actions .btn { flex: 1 1 auto; justify-content: center; }
    .toolbar .btn { flex: 0 1 auto; }

    /* tables become cards */
    .tbl.stack, .tbl.stack tbody { display: block; width: 100%; }
    .tbl.stack thead { display: none; }
    .tbl.stack tr { display: grid; gap: .2rem; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
    .tbl.stack tr:last-child { border-bottom: 0; }
    .tbl.stack td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .15rem 0; border: 0; text-align: right; min-width: 0; }
    .tbl.stack td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-align: left; flex: 0 0 auto; }
    .tbl.stack td[data-label=""] { justify-content: flex-start; text-align: left; }
    .tbl.stack td[data-label=""]::before { display: none; }
    .tbl.stack td:first-child { font-size: 1rem; }
    .tbl.stack td.actions, .tbl.stack td.right { justify-content: flex-start; flex-wrap: wrap; gap: .4rem; }
    .tbl.stack td.actions::before { display: none; }
    .tbl.stack td .inline-form { flex-wrap: wrap; }
    .tbl.stack input, .tbl.stack select { min-width: 0 !important; max-width: 62%; }
    /* squad editor: one card per player, labels above inputs */
    .roster-table.stack td { flex-direction: column; align-items: stretch; text-align: left; gap: .25rem; }
    .roster-table.stack td input:not([type=checkbox]):not([type=radio]), .roster-table.stack td select { max-width: none; width: 100%; }
    .roster-table.stack td.center { flex-direction: row; align-items: center; justify-content: space-between; }

    /* standings: keep #, team, played, goal difference, points */
    .tbl.standings th:nth-child(n+4):nth-child(-n+8), .tbl.standings td:nth-child(n+4):nth-child(-n+8),
    .tbl.standings th:nth-child(11), .tbl.standings td:nth-child(11) { display: none; }

    /* match centre */
    .sb-score { font-size: 2.4rem; white-space: nowrap; letter-spacing: -1px; }
    .sb-teams { grid-template-columns: 1fr auto 1fr; gap: .5rem; }
    .sb-team .team-dot.xl { width: 64px; height: 64px; flex-basis: 64px; font-size: 1.1rem; }
    .sb-team span { font-size: .9rem; }
    .timeline li { grid-template-columns: 44px 1fr; gap: .6rem; }
    .timeline .min { order: -1; }
    .timeline .ev, .timeline .ev.home { justify-content: flex-start; text-align: left; }
    .timeline .ev:empty { display: none; }
    .timeline li .ev.home:not(:empty) { border-left: 3px solid var(--accent); padding-left: .5rem; }
    .timeline li .ev:not(.home):not(:empty) { border-left: 3px solid #f59e0b; padding-left: .5rem; }
    .award-list li { grid-template-columns: 22px 34px 1fr auto; gap: .5rem; }
    .match-sum { grid-template-columns: 1fr; }
    .ms-team { flex-direction: row; justify-content: center; }
    .sheet-grid { grid-template-columns: 1fr; }
    .sess { gap: .4rem; }
    .sess select { flex-basis: 100%; }
    .sess-t input { width: 112px; }
    .cal-g { grid-template-columns: repeat(7, 34px); }
    .cal-d { height: 34px; }
    .notice-h { flex-direction: column; }
    .c-req { font-size: 1rem; }
}

/* bigger touch targets on touch screens */
@media (pointer: coarse) {
    .btn-sm { min-height: 38px; }
    .link-btn { min-width: 36px; min-height: 36px; }
    .chip, .wd span { padding: .45rem .8rem; }
    .portal-nav a { min-height: 44px; }
}
/* grid children may shrink below their content width (prevents sideways scrolling on phones) */
.split > *, .cols-2 > *, .cols-3 > *, .admin-cols > *, .award-grid > *, .match-row > *, .form-grid > * { min-width: 0; }
@media (max-width: 640px) {
    .tbl td, .tbl th { overflow-wrap: anywhere; }
    .match-row { padding: .8rem .9rem; gap: .4rem .6rem; }
}
@media (max-width: 640px) {
    .tbl.stack td, .tbl.stack th { overflow-wrap: normal; word-break: normal; }
    .tbl.stack td > * { min-width: 0; }
}

/* ---- change history / filters ---- */
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-row select, .filter-row input[type=search] { flex: 1 1 160px; min-width: 0; width: auto; }
.tag { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(56,189,248,.14); color: #bae6fd; white-space: nowrap; }
.tag-warn { background: rgba(245,158,11,.16); color: #fde68a; }
.tag-bad { background: rgba(239,68,68,.16); color: #fecaca; }
.tag-ok { background: rgba(34,197,94,.16); color: #bbf7d0; }
.hist { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.hist li { padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.06); line-height: 1.4; }
.hist li:last-child { border-bottom: 0; }

/* ---- player card check (verify.php) ---- */
.vf { border-top: 6px solid var(--ok); }
.vf-warn { border-top-color: var(--warn); }
.vf-bad { border-top-color: var(--bad); }
.vf-bad > i { font-size: 3rem; color: var(--bad); margin-bottom: .6rem; }
.vf-head { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: var(--ok); }
.vf-warn .vf-head { color: var(--warn); }
.vf-body { display: flex; gap: 1.1rem; align-items: center; }
.vf-body h1 { font-size: 1.5rem; margin: .1rem 0 .4rem; }
.vf-num { font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--team); }
.vf-photo { width: 120px; height: 150px; border-radius: 14px; object-fit: cover; flex: none; border: 3px solid var(--team); }
.vf-nophoto { display: grid; place-content: center; text-align: center; background: rgba(255,255,255,.05); color: var(--muted); font-size: 2rem; }
.vf-nophoto small { font-size: .75rem; }
.vf-checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.vf-checks li { padding: .55rem .75rem; border-radius: 10px; background: rgba(255,255,255,.04); display: flex; gap: .55rem; align-items: center; }
.vf-checks li.ok i { color: var(--ok); } .vf-checks li.bad { background: rgba(248,113,113,.12); color: #fecaca; } .vf-checks li.bad i { color: var(--bad); }
.vf-checks li.na i { color: var(--muted); }
.vf-form { display: flex; gap: .5rem; margin-top: 1rem; } .vf-form input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .vf-body { flex-direction: column; text-align: center; } .vf-photo { width: 140px; height: 175px; } }
.tabbar a { position: relative; }
.tab-dot { position: absolute; top: .25rem; left: calc(50% + .45rem); min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 999px; background: var(--bad); color: #fff; font: 700 .62rem/1.05rem system-ui, sans-serif; text-align: center; font-style: normal; }
/* ---- team messages ---- */
.msgs { list-style: none; margin: 0; padding: 0; }
.msgs li { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.msgs li:last-child { border-bottom: 0; }
.msgs li > i { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(56,189,248,.12); color: var(--accent); flex: none; }
.msgs li.new b::after { content: 'new'; margin-left: .45rem; font-size: .66rem; padding: .05rem .4rem; border-radius: 999px; background: var(--accent); color: #04111d; vertical-align: middle; }
.msgs li.k-suspension > i, .msgs li.k-protest > i { background: rgba(248,113,113,.14); color: var(--bad); }
.msgs li.k-moved > i { background: rgba(251,191,36,.14); color: var(--warn); }
.msgs p { margin: .15rem 0 0; white-space: pre-line; }
.tg-box { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.tg-box > i { font-size: 2rem; color: #38bdf8; }
.tg-box > div { flex: 1 1 220px; }
.protest.is-open { border-left: 4px solid var(--warn); }
.protest-h { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; flex-wrap: wrap; }
.protest-r { margin: .7rem 0; padding: .7rem .9rem; border-radius: 10px; background: rgba(255,255,255,.04); }

/* ---- match calendar (drag to move) ---- */
.mc { display: grid; gap: .9rem; }
.mc-day { background: var(--glass, rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: .8rem; }
.mc-day h3 { font-size: .95rem; margin: 0 0 .6rem; }
.mc-day.empty .mc-lanes { opacity: .75; }
.mc-lanes { display: grid; grid-template-columns: repeat(var(--lanes), minmax(190px, 1fr)); gap: .6rem; overflow-x: auto; }
.mc-lane { border-radius: 12px; background: rgba(255,255,255,.025); border: 1px dashed rgba(255,255,255,.1); padding: .5rem; min-height: 90px; display: flex; flex-direction: column; gap: .4rem; transition: background .15s, border-color .15s; }
.mc-lane.over, body.mc-picking .mc-lane:hover { background: rgba(56,189,248,.1); border-color: var(--accent); }
.mc-g { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.mc-drop { display: none; margin-top: auto; text-align: center; font-size: .75rem; color: var(--accent); padding: .35rem; border-radius: 8px; border: 1px dashed rgba(56,189,248,.5); }
body.mc-picking .mc-drop { display: block; }
.mc-m { display: grid; grid-template-columns: auto 1fr; gap: .1rem .55rem; padding: .5rem .6rem; border-radius: 10px; background: rgba(15,23,42,.9); border: 1px solid rgba(255,255,255,.1); cursor: grab; user-select: none; touch-action: manipulation; }
.mc-m.sel { outline: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(56,189,248,.2); }
.mc-m.over { outline: 2px dashed var(--warn); }
.mc-m.locked { cursor: default; opacity: .6; }
.mc-m.st-postponed { border-color: rgba(251,191,36,.5); }
.mc-t { font-weight: 800; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.mc-teams { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-teams i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .2rem; }
.mc-teams small { color: var(--muted); }
.mc-sub { font-size: .72rem; color: var(--muted); }
.mc-tray-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.mc-dlg { position: fixed; inset: 0; z-index: 80; background: rgba(2,6,23,.7); display: none; align-items: center; justify-content: center; padding: 1rem; }
.mc-dlg.on { display: flex; }
.mc-dlg form { width: min(480px, 100%); margin: 0; }
.mc-dlg ul { margin: .3rem 0 0 1.1rem; }
@media (max-width: 700px) { .mc-lanes { grid-template-columns: 1fr; overflow: visible; } }

/* ---- sponsors ---- */
.sp-strip { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); margin: 1rem 0; }
.sp-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.sp-logos { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; flex: 1; }
.sp { display: inline-flex; align-items: center; color: #e2e8f0; text-decoration: none; }
.sp img { height: 34px; max-width: 140px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.sp-title img { height: 46px; max-width: 190px; }
.sp-admin { list-style: none; margin: 0; padding: 0; }
.sp-admin li { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.sp-admin li.off { opacity: .55; }
.sp-thumb { width: 64px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.06); display: grid; place-items: center; flex: none; overflow: hidden; }
.sp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.filter-row .btn { flex: none; }
@media (min-width: 900px) { .filter-row select, .filter-row input[type=search], .filter-row input[type=date] { flex: 0 1 260px; } }

/* ---- referee pool ---- */
.ref-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .6rem; }
.ref-card { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; margin: 0; text-decoration: none; color: inherit; border: 1px solid transparent; }
.ref-card:hover, .ref-card.on { border-color: var(--accent); }
.ref-card.off { opacity: .55; }
.ref-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; background: rgba(56,189,248,.18); color: #bae6fd; }
.ref-av.k-timekeeper { background: rgba(250,204,21,.16); color: #fde68a; } .ref-av.k-scorekeeper { background: rgba(52,211,153,.16); color: #a7f3d0; } .ref-av.k-delegate { background: rgba(167,139,250,.18); color: #ddd6fe; }
.ref-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ref-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-stats { text-align: center; min-width: 2.8rem; } .ref-stats b { display: block; font-size: 1.1rem; } .ref-stats small { font-size: .65rem; color: var(--muted); }
/* ---- referee assignments ---- */
.ref-cols { grid-template-columns: minmax(0, 1fr) 340px; }
.ref-day { padding: .9rem; }
.ref-m { border-top: 1px solid rgba(255,255,255,.07); padding: .7rem 0; }
.ref-m:first-of-type { border-top: 0; }
.ref-m.locked { opacity: .6; }
.ref-m-h { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .5rem; }
.ref-m-h > span { flex: 1; min-width: 0; }
.ref-time { font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--accent); }
.ref-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.ref-slot { display: flex; flex-direction: column; gap: .25rem; padding: .5rem .55rem; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s, background .2s; }
.ref-slot.empty { border-color: rgba(248,113,113,.45); border-style: dashed; }
.ref-slot.filled { border-color: rgba(52,211,153,.35); }
.ref-slot.saving { opacity: .6; } .ref-slot.saved { background: rgba(52,211,153,.12); }
.ref-role { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.ref-role small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ref-slot select { width: 100%; min-width: 0; font-size: .88rem; }
.ref-iss { display: flex; flex-wrap: wrap; gap: .2rem; }
.ref-iss .tag { white-space: normal; font-size: .7rem; }
.ref-load, .ref-send { list-style: none; margin: 0; padding: 0; }
.ref-load li { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; gap: .6rem; align-items: center; padding: .3rem 0; font-size: .88rem; }
.ref-load li span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; } .ref-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.ref-send li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
@media (max-width: 1100px) { .ref-cols { grid-template-columns: 1fr; } }
.admin-cols .ref-list { grid-template-columns: 1fr; }
/* ---- friendlies ---- */
.fr-new { display: flex; gap: .4rem; margin-top: .4rem; } .fr-new input[type=text], .fr-new input:not([type]) { flex: 1; min-width: 0; } .fr-new input[type=color] { width: 44px; flex: none; padding: 2px; }
.fr-list { display: grid; gap: .6rem; }
.fr-row { display: flex; flex-direction: column; gap: .4rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.fr-row:last-child { border-bottom: 0; }
.fr-new[hidden] { display: none; }

/* =========================================================
   Match page (match.php): fits phone, tablet and desktop
   ========================================================= */
.mp-wrap { max-width: 1480px; padding-left: clamp(12px, 3vw, 32px); padding-right: clamp(12px, 3vw, 32px); }
.mp-crumb { margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mp-crumb a { text-decoration: none; font-weight: 600; }
.mp-hero { position: relative; overflow: hidden; padding: clamp(1rem, 3vw, 2rem) clamp(.8rem, 3vw, 2.2rem); }
.mp-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--hc) 22%, transparent), transparent 38%, transparent 62%, color-mix(in srgb, var(--ac) 22%, transparent)); }
.mp-hero > * { position: relative; }
.mp-hero .sb-teams { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(.4rem, 3vw, 3rem); margin: clamp(.8rem, 2.5vw, 1.6rem) 0; }
.mp-hero .sb-team { min-width: 0; gap: .5rem; font-size: clamp(.85rem, 2.2vw, 1.5rem); text-align: center; }
.mp-hero .sb-team span { overflow-wrap: anywhere; line-height: 1.2; }
.mp-hero .sb-team .team-dot.xl, .mp-hero .sb-team img { width: clamp(52px, 11vw, 120px) !important; height: clamp(52px, 11vw, 120px) !important; flex-basis: auto !important; font-size: clamp(.9rem, 2.4vw, 1.8rem); }
.mp-hero .sb-score { font-size: clamp(2.4rem, 9vw, 6.5rem); white-space: nowrap; letter-spacing: -1px; }
.mp-hero .sb-score small { font-size: clamp(.8rem, 1.6vw, 1.1rem); white-space: normal; }
.sb-status { margin-top: .5rem; min-height: 1.4em; }
.mp-hero .sb-clock { font-size: clamp(1.1rem, 2.6vw, 2rem); }
.mp-meta { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem 1.2rem; color: var(--muted); font-size: clamp(.8rem, 1.4vw, .95rem); }
.mp-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; }
.mp-actions .btn { min-height: 40px; }
.mp-stream { margin-top: 1rem; }
/* compact score bar */
.mp-mini { position: fixed; z-index: 60; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translate(-50%, -150%); display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(7,9,19,.92); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.45); font-weight: 700; transition: transform .25s; white-space: nowrap; }
.mp-mini.on { transform: translate(-50%, 64px); }
.mp-mini b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mp-mini em { font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; font-size: .9rem; }
.mp-mini em:empty { display: none; }
@media (min-width: 1200px) { .mp-mini { display: none; } }
/* tabs */
.mp-tabs { display: flex; gap: .3rem; margin: 1rem 0 .8rem; padding: .3rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); position: sticky; top: 112px; z-index: 20; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mp-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: clamp(.78rem, 2.4vw, .95rem); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.mp-tabs button.on { background: var(--accent); color: #04111d; }
.mp-grid { display: grid; gap: 1rem; }
.mp-grid > .glass-panel { margin: 0; min-width: 0; }
.mp-pane { display: none; }
.mp-pane.on { display: block; }
@media (max-width: 420px) { .mp-tabs button i { display: none; } }
/* wide screens: no tabs, sections side by side */
@media (min-width: 1200px) {
    .mp-tabs { display: none; }
    .mp-pane { display: block; }
    .mp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.2fr); align-items: start; margin-top: 1rem; }
    .mp-grid.has-info [data-pane="info"] { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .mp-grid.has-info [data-pane="info"] > .mt { margin-top: 0; }
    .mp-seg { display: none; }
    .mp-lineups { grid-template-columns: 1fr 1fr; }
    .mp-lu { display: block !important; }
}
@media (min-width: 760px) and (max-width: 1199px) { .mp-seg { display: none; } .mp-lineups { grid-template-columns: 1fr 1fr; } .mp-lu { display: block !important; } }
/* timeline */
.mp-pane .timeline li { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); gap: .7rem; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.mp-pane .timeline li:last-child { border-bottom: 0; }
.mp-pane .timeline .ev { font-size: clamp(.82rem, 1.4vw, .95rem); line-height: 1.35; min-width: 0; }
@media (max-width: 640px) {
    .mp-pane .timeline li { grid-template-columns: 42px minmax(0, 1fr); }
    .mp-pane .timeline .min { order: -1; }
    .mp-pane .timeline .ev, .mp-pane .timeline .ev.home { justify-content: flex-start; text-align: left; }
    .mp-pane .timeline .ev:empty { display: none; }
}
/* stats: comparison bars */
.mp-stats { display: grid; gap: .7rem; }
.mp-st-h { display: grid; grid-template-columns: auto 1fr auto; font-size: .9rem; }
.mp-st-l { display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: baseline; font-size: clamp(.82rem, 1.4vw, .95rem); }
.mp-st-l span { text-align: center; color: var(--muted); }
.mp-st-l b:last-child { text-align: right; }
.mp-st-l b { font-size: 1.05em; font-variant-numeric: tabular-nums; }
.mp-st-bar { display: flex; justify-content: space-between; gap: 4px; height: 6px; margin-top: .3rem; }
.mp-st-bar i { display: block; height: 100%; border-radius: 3px; min-width: 2px; opacity: .85; }
.mp-st-bar i:first-child { margin-right: auto; } .mp-st-bar i:last-child { margin-left: auto; }
/* line-ups */
.mp-seg { display: flex; gap: .3rem; margin-bottom: .7rem; }
.mp-seg button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.mp-seg button.on { background: rgba(56,189,248,.16); color: #e0f2fe; border-color: rgba(56,189,248,.45); }
.mp-lineups { display: grid; gap: 1rem; }
.mp-lu { display: none; }
.mp-lu.on { display: block; }
.mp-lu-h { display: flex; align-items: center; gap: .55rem; padding-bottom: .5rem; margin-bottom: .3rem; border-bottom: 2px solid var(--tc); }
.mp-lu ol { list-style: none; margin: 0; padding: 0; }
.mp-lu li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.mp-no { flex: 0 0 2.1rem; height: 2.1rem; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--tc) 22%, transparent); color: #fff; white-space: nowrap; }
.mp-pl { min-width: 0; flex: 1; }
.mp-pl b { font-weight: 600; font-size: clamp(.85rem, 1.4vw, .95rem); }
.mp-pl small { display: block; color: var(--muted); font-size: .75rem; }
/* info */
.mp-offs { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; }
.mp-offs dt { color: var(--muted); font-size: .88rem; }
.mp-offs dd { margin: 0; font-weight: 600; }
@media (max-width: 640px) { .mp-hero .mp-actions .btn { flex: 1 1 calc(50% - .5rem); justify-content: center; } }
@media (min-width: 760px) { .mp-grid .mp-seg { display: none; } }
@media (min-width: 1200px) {
    .mp-grid { grid-auto-flow: row dense; }
    .mp-grid > [data-pane="events"] { grid-column: 1; grid-row: span 2; }
    .mp-grid > [data-pane="stats"] { grid-column: 2; }
    .mp-grid > [data-pane="lineups"] { grid-column: 3; grid-row: span 2; }
    .mp-grid.has-info > [data-pane="info"] { grid-column: 2; display: block; }
    .mp-grid.has-info > [data-pane="info"] > .mt { margin-top: 1.2rem; }
}

/* ---- match page: wide-screen layout and touch targets ---- */
@media (min-width: 1200px) and (max-width: 1599px) {
    /* events get a wide column, stats + info beside them, line-ups full width underneath */
    .mp-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .mp-grid > [data-pane="events"] { grid-column: 1; grid-row: span 2; }
    .mp-grid > [data-pane="stats"] { grid-column: 2; }
    .mp-grid.has-info > [data-pane="info"] { grid-column: 2; }
    .mp-grid > [data-pane="lineups"] { grid-column: 1 / -1; grid-row: auto; }
    .mp-lineups { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1600px) {
    .mp-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 1.2fr); }
    .mp-hero .sb-score { font-size: clamp(5rem, 6vw, 8rem); }
}
.mp-crumb a { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; }
@media (pointer: coarse) {
    .standard-footer a { display: inline-block; padding: .5rem 0; min-height: 40px; }
    .mp-hero .sb-team { min-height: 44px; }
}

/* ---- home page: Next up / Latest results, equal-height rows in both columns ---- */
.home-matches { display: grid; grid-template-columns: 1fr; gap: .75rem 1.5rem; }
.home-matches .round-head { margin: 1.2rem 0 0; }
.home-matches .match-row { height: 100%; min-height: 96px; }
.home-matches .hm-empty { display: grid; place-items: center; min-height: 96px; }
.home-matches .hm-pad { display: none; }
@media (min-width: 900px) {
    .home-matches { grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(3, auto); grid-auto-flow: column; }
    .home-matches .round-head { margin-top: 2rem; }
    .home-matches .hm-pad { display: block; }
}
.home-matches .match-row .meta { min-height: 1.7rem; display: flex; align-items: center; justify-content: center; }

/* ---- island: ongoing tournament notification ---- */
.island-tour { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; max-width: min(46vw, 440px); text-decoration: none; color: #e0f2fe; font-size: .8rem;
    background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.35); padding: .22rem .6rem; border-radius: 99px; white-space: nowrap; animation: tourIn .6s cubic-bezier(.2,.9,.25,1.2) both; }
.island-tour i { color: var(--accent); flex: none; }
.island-tour .nm { overflow: hidden; text-overflow: ellipsis; font-weight: 700; min-width: 0; }
.island-tour .wh { flex: none; color: #7dd3fc; font-weight: 600; padding-left: .45rem; border-left: 1px solid rgba(255,255,255,.15); font-variant-numeric: tabular-nums; }
.island-tour .more { flex: none; font-size: .7rem; font-weight: 800; background: rgba(56,189,248,.25); border-radius: 99px; padding: 0 .35rem; }
.island-tour:hover { background: rgba(56,189,248,.2); }
@keyframes tourIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 420px) { .island-tour { max-width: 52vw; font-size: .74rem; } .island-tour .more { display: none; } .island-logo { font-size: .98rem; } }

/* ---- photographers ---- */
.ph-auth { max-width: 620px; }
.ph-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; font-weight: 700; margin-bottom: .4rem; }
.ph-form { grid-template-columns: 1fr 1fr; }
.ph-form .ph-full { grid-column: 1 / -1; }
.ph-terms { align-items: flex-start; line-height: 1.45; font-size: .9rem; }
.ph-terms input { margin-top: .2rem; flex: none; }
@media (max-width: 560px) { .ph-form { grid-template-columns: 1fr; } }
.lightbox { flex-direction: column; gap: .75rem; }
.lightbox img { max-width: 100%; max-height: 85vh; }
.lb-cap { color: #e2e8f0; font-size: .92rem; text-align: center; margin: 0; max-width: 60ch; }
.lb-cap:empty { display: none; }

/* home promo (first section) */
.ph-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: center;
    background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(15,23,42,.72) 55%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.ph-promo .kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; font-weight: 700; margin-bottom: .5rem; }
.ph-promo h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); margin-bottom: .6rem; line-height: 1.15; }
.ph-promo p { color: var(--muted); line-height: 1.6; }
.ph-steps { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: .55rem; }
.ph-steps li { display: flex; align-items: center; gap: .7rem; }
.ph-steps b { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: rgba(56,189,248,.2); color: var(--accent); font-size: .9rem; }
.ph-promo-btns { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .3rem; }
.ph-promo-btns a { min-height: 44px; }
.ph-promo-count { margin-top: .9rem; font-size: .9rem; }
.ph-promo-count b { color: var(--accent); }
.ph-promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.ph-promo-grid a { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: block; border: 1px solid var(--line); }
.ph-promo-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.ph-promo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ph-promo-grid a:hover img { transform: scale(1.05); }
.ph-promo-grid span { position: absolute; inset: auto 0 0 0; padding: 1.4rem .6rem .45rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.ph-promo-grid small { display: block; font-weight: 400; opacity: .85; }
@media (max-width: 860px) { .ph-promo { grid-template-columns: 1fr; } .ph-promo-grid { order: -1; } }
@media (max-width: 480px) { .ph-promo-grid span { font-size: .7rem; padding: 1rem .4rem .35rem; } .ph-promo-grid a:not(:first-child) small { display: none; } .ph-promo-btns a { flex: 1 1 100%; justify-content: center; } }

/* item page credit + call to action */
.gallery a.has-credit { position: relative; }
.ph-credit { position: absolute; left: .4rem; bottom: .4rem; max-width: calc(100% - .8rem); background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: .15rem .5rem; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding: 1rem 1.25rem; border-radius: 16px; border: 1px dashed rgba(56,189,248,.45); background: rgba(56,189,248,.07); }
.ph-cta > i { font-size: 1.6rem; color: var(--accent); }
.ph-cta > div { flex: 1 1 200px; display: grid; gap: .15rem; }
.ph-cta span { color: var(--muted); font-size: .9rem; }
.ph-cta .btn { min-height: 44px; }

/* photographer portal */
.ph-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.ph-stats .glass-panel { padding: 1rem; text-align: center; margin: 0; }
.ph-stats b { display: block; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--accent); }
.ph-stats span { font-size: .82rem; color: var(--muted); }
.ph-upload, .ph-upload + section, #profile { margin-bottom: 1.25rem; }
.ph-drop { display: block; border: 2px dashed rgba(56,189,248,.4); border-radius: 16px; padding: 1.25rem; text-align: center; cursor: pointer; margin-bottom: 1rem; transition: background .2s, border-color .2s; position: relative; }
.ph-drop:hover, .ph-drop.over { background: rgba(56,189,248,.08); border-color: var(--accent); }
.ph-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ph-drop-txt { display: grid; gap: .3rem; justify-items: center; }
.ph-drop-txt i { font-size: 2rem; color: var(--accent); }
.ph-drop-txt small { color: var(--muted); font-size: .8rem; max-width: 44ch; }
.ph-drop.has .ph-drop-txt i { display: none; }
.ph-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem; margin-top: .6rem; }
.ph-previews:empty { display: none; }
.ph-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.ph-request { padding: .9rem; border-radius: 14px; background: var(--panel-2); margin-bottom: 1rem; }
.ph-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.ph-head .panel-title { margin: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .75rem; }
@media (max-width: 420px) { .ph-grid { grid-template-columns: 1fr 1fr; gap: .5rem; } .ph-card figcaption { padding: .5rem; font-size: .8rem; } }
.ph-card { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel-2); display: flex; flex-direction: column; }
.ph-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0b1220; }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-card figcaption { padding: .7rem; display: grid; gap: .3rem; font-size: .88rem; flex: 1; align-content: start; }
.ph-card figcaption .tag { justify-self: start; }
.ph-card small { color: var(--muted); }
.ph-reason { color: #fecaca !important; }
.ph-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.ph-acts .btn, .ph-act summary, .ph-move .btn { min-height: 40px; }

/* admin review */
.ph-tabs b { margin-left: .3rem; font-size: .78rem; background: rgba(255,255,255,.1); padding: 0 .45rem; border-radius: 99px; }
.ph-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .9rem; }
.ph-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.ph-item { padding: 0; overflow: hidden; margin: 0; position: relative; display: flex; flex-direction: column; }
.ph-item .ph-thumb { aspect-ratio: 3 / 2; }
.ph-pick { position: absolute; top: .5rem; left: .5rem; background: rgba(0,0,0,.6); border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.ph-pick input { width: 22px; height: 22px; }
.ph-body { padding: .9rem; display: grid; gap: .6rem; }
.ph-meta { display: grid; gap: .25rem; }
.ph-meta small { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.ph-act { border: 0; }
.ph-act summary { list-style: none; display: inline-flex; cursor: pointer; }
.ph-act summary::-webkit-details-marker { display: none; }
.ph-act[open] summary { margin-bottom: .6rem; }
.ph-act form { display: grid; gap: .55rem; padding: .7rem; border-radius: 12px; background: var(--panel-2); }
.ph-act .field { margin: 0; }
.ph-act form > .btn { justify-self: start; min-height: 40px; }
.ph-act select, .ph-move select { width: 100%; min-width: 0; }
.ph-move { display: flex; gap: .4rem; }
.ph-move select { flex: 1; }

/* Wide hero (Tournaments: futsal and handball champions side by side).
   On narrow screens the photo slowly pans from one team to the other instead of cutting both off. */
.photo-hero.hero-wide .hero-slide.active { animation: none; }
@media (max-aspect-ratio: 2/1) {
  .photo-hero.hero-wide .hero-slide.active { animation: heroPan 18s ease-in-out infinite alternate; }
}
@keyframes heroPan { from { background-position: 8% center; } to { background-position: 92% center; } }
@media (prefers-reduced-motion: reduce) { .photo-hero.hero-wide .hero-slide.active { animation: none; background-position: 30% center; } }

/* Tournament rules (PDF) */
.rules-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-color: rgba(56,189,248,.4); margin-bottom: 1.25rem; }
.rules-box > i { font-size: 2rem; color: #f87171; }
.rules-box > div { flex: 1 1 220px; display: grid; gap: .2rem; }
.rules-box span { color: var(--muted); font-size: .9rem; }
.rules-box .btn { min-height: 44px; }
@media (max-width: 520px) { .rules-box .btn { width: 100%; justify-content: center; } }
.rules-current { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.rules-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; padding: .35rem 0; min-height: 32px; }
.rules-link i, .rules-current .fa-file-pdf { color: #f87171; }
.mt-xs { margin-top: .25rem; }

/* ---- home: upcoming tournament (first section) ---- */
.up-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(56,189,248,.35);
    background: linear-gradient(140deg, rgba(56,189,248,.16), rgba(15,23,42,.85) 45%); box-shadow: 0 30px 70px -30px rgba(56,189,248,.45); }
.up-media { position: relative; min-height: 340px; background-size: cover; background-position: center; }
.up-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(15,23,42,.9)); }
.up-sport { position: absolute; top: 1rem; left: 1rem; z-index: 1; background: rgba(11,15,25,.75); border: 1px solid var(--line-2); padding: .35rem .8rem; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.up-body { padding: clamp(1.25rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .9rem; justify-content: center; }
.up-body .kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; font-weight: 700; }
.up-body h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.1; }
.up-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem .9rem; color: var(--ink-2); font-size: .95rem; }
.up-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.up-facts i { color: var(--accent); width: 1em; }
.up-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 420px; }
.up-count > div { background: rgba(255,255,255,.05); border: 1px solid var(--line-2); border-radius: 14px; padding: .55rem .3rem; text-align: center; }
.up-count b { display: block; font-size: clamp(1.4rem, 4vw, 2rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.up-count span { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.up-live { font-weight: 700; color: var(--ok); }
.up-reg { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink-2); margin: 0; }
.up-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: upPulse 1.8s infinite; flex: none; }
@keyframes upPulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.up-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.up-btns a { min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; }
.up-more { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .9rem; }
.up-more-label { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin-right: .3rem; }
.up-more a { flex: 1 1 260px; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 48px; }
.up-more a:hover { border-color: var(--accent); }
.up-more a b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-more a span { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.up-more a > i:first-child { color: var(--accent); }
@media (max-width: 820px) {
    .up-card { grid-template-columns: minmax(0, 1fr); }
    .up-media { min-height: 200px; aspect-ratio: 16 / 9; }
    .up-media::after { background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.9)); }
}
@media (max-width: 480px) {
    .up-btns a { flex: 1 1 100%; justify-content: center; }
    .up-more a span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .up-dot { animation: none; } }

/* ---- organiser & poster ---- */
.org-tag { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.org-tag img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.92); padding: 3px; flex: none; }
.org-tag > span { display: grid; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.org-tag small { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.org-card { margin: .2rem 0 .5rem; font-size: .88rem; }
.org-card img { width: 32px; height: 32px; }
.org-hero { background: rgba(11,15,25,.55); border: 1px solid var(--line-2); border-radius: 14px; padding: .35rem .8rem .35rem .4rem; }
.org-hero small { color: #cbd5e1; }
.poster-panel { display: grid; gap: .8rem; justify-items: center; padding: 1rem; }
.poster-panel img { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.preview-img.poster-prev { max-height: 220px; width: auto; }
.preview-img.logo-prev { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.reg-intro { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.reg-poster { flex: 0 0 auto; }
.reg-poster img { display: block; width: 150px; height: auto; border-radius: 10px; }
.reg-intro > div { flex: 1 1 220px; display: grid; gap: .4rem; }
.up-media.has-poster { display: grid; place-items: center; }
.up-media.has-poster::before { content: ''; position: absolute; inset: 0; backdrop-filter: blur(14px) brightness(.55); -webkit-backdrop-filter: blur(14px) brightness(.55); }
.up-poster { position: relative; z-index: 1; display: block; height: 86%; max-height: 420px; }
.up-poster img { height: 100%; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 25px 60px -20px rgba(0,0,0,.8); display: block; }
@media (max-width: 820px) { .up-media.has-poster { aspect-ratio: auto; min-height: 0; padding: 1.2rem 0; } .up-poster { height: auto; max-height: none; } .up-poster img { height: auto; max-height: 360px; width: auto; max-width: 80vw; margin: 0 auto; } }

/* ---- auto-upload boxes ---- */
.upl { display: grid; gap: .55rem; }
.upl-file { display: flex; align-items: center; gap: .75rem; padding: .55rem; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-2); min-width: 0; }
.upl-file[hidden], .upl-bar[hidden], .upl-err[hidden] { display: none; }
.upl-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #0b1220; border: 1px solid var(--line); }
.upl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upl[data-field="organizer_logo"] .upl-thumb { background: #fff; }
.upl[data-field="organizer_logo"] .upl-thumb img { object-fit: contain; padding: 4px; }
.upl-thumb i { font-size: 1.8rem; color: #f87171; }
.upl-meta { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.upl-name { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl-size { font-size: .78rem; color: var(--muted); }
.upl-state { color: var(--ok); }
.upl-del { flex: none; min-height: 40px; }
.upl-pick { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .6rem 1rem; border: 2px dashed rgba(56,189,248,.45); border-radius: 14px; cursor: pointer; font-weight: 600; color: var(--accent-2); transition: background .2s, border-color .2s; }
.upl-pick:hover, .upl-pick:focus-within { background: rgba(56,189,248,.08); border-color: var(--accent); }
.upl-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upl.uploading .upl-pick { pointer-events: none; opacity: .5; }
.upl-bar { position: relative; height: 26px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); overflow: hidden; }
.upl-bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #0284c7, var(--accent)); transition: width .2s; }
.upl-bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: .78rem; font-weight: 700; line-height: 24px; }
.upl-err { font-size: .85rem; color: #fecaca; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); padding: .45rem .7rem; border-radius: 10px; }
@media (max-width: 420px) { .upl-file { flex-wrap: wrap; } .upl-del { width: 100%; justify-content: center; } }

/* ---- home: MasVeriyaa advert ---- */
.mv-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(20,184,184,.35); background: #0b1622; box-shadow: 0 30px 70px -35px rgba(20,184,184,.45); }
.mv-media { position: relative; min-height: 320px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 1.2rem; }
.mv-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,34,0) 35%, rgba(11,22,34,.88)); }
.mv-tag { position: absolute; top: .9rem; left: .9rem; z-index: 1; font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(11,15,25,.7); color: #cbd5e1; padding: .25rem .6rem; border-radius: 99px; border: 1px solid var(--line-2); }
.mv-logo { position: relative; z-index: 1; width: min(260px, 70%); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.mv-body { padding: clamp(1.25rem, 3vw, 2.3rem); display: flex; flex-direction: column; gap: .85rem; justify-content: center; }
.mv-kicker { display: inline-flex; align-items: center; gap: .45rem; color: #2dd4bf; text-transform: uppercase; letter-spacing: 1.4px; font-size: .78rem; font-weight: 700; }
.mv-body h2 { font-size: clamp(1.45rem, 3.2vw, 2.2rem); line-height: 1.15; }
.mv-body h2 span { color: #fb923c; }
.mv-body p { color: var(--ink-2); line-height: 1.6; margin: 0; }
.mv-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mv-points li { position: relative; padding-left: 1.6rem; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.mv-points li::before { content: ''; position: absolute; left: 0; top: .3rem; width: .95rem; height: .95rem; border-radius: 50%; background: rgba(45,212,191,.18); box-shadow: inset 0 0 0 2px #2dd4bf; }
.mv-points b { color: var(--ink); }
.mv-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.mv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.4rem; border-radius: 99px; font-weight: 700; text-decoration: none; background: #f97316; color: #1a0f05; box-shadow: 0 8px 24px -8px rgba(249,115,22,.7); transition: transform .15s, background .15s; }
.mv-btn:hover { background: #fb923c; transform: translateY(-1px); }
.mv-btn.ghost { background: transparent; color: #5eead4; border: 1px solid rgba(45,212,191,.5); box-shadow: none; }
.mv-btn.ghost:hover { background: rgba(45,212,191,.1); }
@media (max-width: 820px) { .mv-card { grid-template-columns: minmax(0, 1fr); } .mv-media { min-height: 220px; aspect-ratio: 16 / 9; } }
@media (max-width: 480px) { .mv-btn { flex: 1 1 100%; } }
.mv-media { background-position: center 62%; }

.mv-body h2 .mv-h-logo { display: inline-block; height: 2.4em; width: auto; vertical-align: -0.62em; margin-left: .1em; }


/* ---------- home: next tournament as a card on the right of the hero (PC only) ---------- */
.hero-aside { display: none; }
@media (min-width: 1100px) {
    .photo-hero.has-aside .hero-content { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; align-items: end; }
    .photo-hero.has-aside .hero-aside { display: block; }
    .photo-hero.has-aside .hero-dots { right: auto; left: 2rem; bottom: 1.1rem; }
    .up-promo#upcoming { display: none; }
}
.hu-card { background: rgba(11,15,25,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(56,189,248,.35); border-radius: 22px; padding: 1.1rem; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); display: flex; flex-direction: column; gap: .85rem; }
.hu-top { display: flex; gap: .9rem; align-items: flex-start; }
.hu-thumb { flex: none; width: 92px; display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.12); }
.hu-thumb img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.hu-head { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.hu-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; font-weight: 700; }
.hu-name { color: #fff; font-weight: 800; font-size: 1.2rem; line-height: 1.15; text-decoration: none; }
.hu-name:hover { color: var(--accent-2); }
.hu-facts { display: flex; flex-wrap: wrap; gap: .25rem .8rem; color: #cbd5e1; font-size: .84rem; }
.hu-facts i { color: var(--accent); margin-right: .35rem; }
.hu-org { color: var(--muted); font-size: .8rem; }
.hu-count { max-width: none; gap: .4rem; }
.hu-count > div { padding: .4rem .2rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.hu-count b { font-size: 1.35rem; }
.hu-count span { font-size: .62rem; }
.hu-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.hu-btns a { flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding-left: .9rem; padding-right: .9rem; font-size: .9rem; }
.hu-more { display: flex; flex-direction: column; gap: .35rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: .7rem; }
.hu-more a { display: flex; justify-content: space-between; gap: .8rem; color: #e2e8f0; text-decoration: none; font-size: .84rem; min-height: 32px; align-items: center; }
.hu-more a b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hu-more a span { color: var(--muted); white-space: nowrap; }
.hu-more a:hover b { color: var(--accent-2); }

/* ---------- Facebook share buttons ---------- */
.fb-share { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.05rem; border-radius: 99px; background: #1877f2; color: #fff !important; font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid #1877f2; white-space: nowrap; transition: background .2s, transform .2s; }
.fb-share:hover { background: #0f63d6; transform: translateY(-1px); }
.fb-share i { font-size: 1rem; }
.hu-btns .fb-share { flex: 1 1 100%; }
@media (max-width: 820px) { .up-btns .fb-share, .mv-btns .fb-share, .ph-promo-btns .fb-share { flex: 1 1 100%; } }

/* ---------- menu "bar, then island": full-width bar at the top, the island takes over once you scroll ---------- */
.menu-hybrid .glass-header { position: fixed; top: 0; left: 0; right: 0; transition: transform .45s cubic-bezier(.2,.9,.25,1.05), opacity .3s ease; }
.menu-hybrid:not(.at-top) .glass-header { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.menu-hybrid.at-top .island-wrap { transform: translateY(-160%); opacity: 0; }
.menu-hybrid.at-top .island-wrap .island { pointer-events: none; }
.menu-hybrid .island-spacer { height: 76px; }
@media (max-width: 768px) { .menu-hybrid .island-spacer { height: 70px; } }

/* hero tournament card: larger on PC */
@media (min-width: 1100px) {
    .photo-hero.has-aside .hero-content { grid-template-columns: minmax(0, 1fr) clamp(420px, 34vw, 520px); gap: 3rem; }
    .hu-card { padding: clamp(1.2rem, 1.6vw, 1.6rem); gap: clamp(.85rem, 1.2vh, 1.15rem); border-radius: 26px; }
    .hu-top { gap: 1.2rem; }
    .hu-thumb { width: clamp(118px, 9.5vw, 150px); border-radius: 12px; }
    .hu-kicker { font-size: .8rem; }
    .hu-name { font-size: clamp(1.45rem, 1.9vw, 1.9rem); line-height: 1.12; }
    .hu-facts { font-size: .95rem; gap: .35rem 1rem; }
    .hu-org { font-size: .88rem; }
    .hu-count { gap: .55rem; }
    .hu-count > div { padding: .6rem .3rem; border-radius: 14px; }
    .hu-count b { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
    .hu-count span { font-size: .7rem; }
    .hu-btns { gap: .6rem; }
    .hu-btns a { min-height: 48px; font-size: .98rem; }
    .hu-more a { font-size: .92rem; min-height: 36px; }
}
@media (min-width: 1100px) and (max-height: 760px) {
    .hu-thumb { width: 108px; }
    .hu-count > div { padding: .4rem .2rem; }
    .hu-count b { font-size: 1.5rem; }
    .hu-btns a { min-height: 44px; }
}

/* hero tournament card: full height of the hero on every PC, poster fills the spare space */
@media (min-width: 1100px) {
    .photo-hero.has-aside { align-items: stretch; }
    .photo-hero.has-aside .hero-content { align-items: end; padding-top: 108px; }
    .photo-hero.has-aside .hero-aside { align-self: stretch; display: flex; min-height: 0; }
    .photo-hero.has-aside .hu-card { flex: 1; min-height: 0; }
    .photo-hero.has-aside .hu-top { flex: 1; min-height: 0; flex-direction: column; align-items: stretch; gap: 1rem; }
    .photo-hero.has-aside .hu-thumb { width: 100%; flex: 1 1 0; min-height: 140px; display: flex; align-items: center; justify-content: center;
        background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); box-shadow: none; padding: .6rem; }
    .photo-hero.has-aside .hu-thumb img { width: auto; height: 100%; max-width: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); }
    .photo-hero.has-aside .hu-head { flex: none; }
}
/* shorter PC screens: poster beside the title so the card still fits the screen height */
@media (min-width: 1100px) and (max-height: 900px) {
    .photo-hero.has-aside .hu-card { justify-content: space-between; }
    .photo-hero.has-aside .hu-top { flex: none; flex-direction: row; align-items: flex-start; }
    .photo-hero.has-aside .hu-thumb { width: clamp(108px, 9vw, 140px); flex: none; min-height: 0; padding: 0; background: none; border-color: rgba(255,255,255,.12); }
    .photo-hero.has-aside .hu-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; box-shadow: none; }
    .photo-hero.has-aside .hu-head { flex: 1; }
}

/* ---------- Dynamic Island: frosted glass ---------- */
.island { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)), rgba(15,23,42,.5);
    backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 12px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06); }
.island.open { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)), rgba(15,23,42,.7);
    box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.island-logo, .island-here, .island-tour { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.island-toggle { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18); }
.island-links a { background: rgba(255,255,255,.10); color: #f1f5f9; }
.island-live { background: rgba(239,68,68,.22); border-color: rgba(252,165,165,.45); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .island { background: rgba(15,23,42,.9); } }

/* hero tournament card on large screens: the cover photo fills the top, poster sits beside the title */
.hu-cover { display: none; }
@media (min-width: 1100px) and (min-height: 901px) {
    .photo-hero.has-aside .hu-card.has-cover .hu-cover { display: block; position: relative; flex: 1 1 0; min-height: 160px; border-radius: 16px; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 -60px 60px -30px rgba(11,15,25,.55); }
    .hu-sport { position: absolute; top: .8rem; left: .8rem; background: rgba(11,15,25,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: .3rem .75rem; border-radius: 99px; font-size: .8rem; font-weight: 700; }
    .hu-sport i { color: var(--accent); margin-right: .2rem; }
    .photo-hero.has-aside .hu-card.has-cover .hu-top { flex: none; flex-direction: row; align-items: flex-start; }
    .photo-hero.has-aside .hu-card.has-cover .hu-thumb { width: 120px; flex: none; min-height: 0; padding: 0; background: none; border-color: rgba(255,255,255,.12); box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); }
    .photo-hero.has-aside .hu-card.has-cover .hu-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; box-shadow: none; }
    .photo-hero.has-aside .hu-card.has-cover .hu-head { flex: 1; }
}
@media (min-width: 1100px) and (min-height: 901px) {
    /* whole cover photo, never cropped: shown in full over a blurred copy of itself */
    .photo-hero.has-aside .hu-card.has-cover .hu-cover { overflow: hidden; display: flex; align-items: center; justify-content: center; isolation: isolate; box-shadow: none; }
    .hu-cover::before { content: ''; position: absolute; inset: -20px; background: inherit; background-size: cover; background-position: center; filter: blur(18px) brightness(.55); z-index: -1; }
    .hu-cover img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
    .hu-cover .hu-sport { z-index: 1; }
}
.hu-cover img { display: none; }
@media (min-width: 1100px) and (min-height: 901px) { .photo-hero.has-aside .hu-cover img { display: block; } }
/* large screens: the cover photo replaces the poster, full width, at its own aspect ratio */
@media (min-width: 1100px) and (min-height: 901px) {
    .photo-hero.has-aside .hu-card.has-cover { justify-content: space-between; }
    .photo-hero.has-aside .hu-card.has-cover .hu-cover { flex: none; min-height: 0; display: block; background: none; border-radius: 16px; overflow: hidden; }
    .photo-hero.has-aside .hu-card.has-cover .hu-cover::before { display: none; }
    .photo-hero.has-aside .hu-card.has-cover .hu-cover img { width: 100%; height: auto; max-height: none; object-fit: initial; }
    .photo-hero.has-aside .hu-card.has-cover .hu-thumb { display: none; }
}
@media (min-width: 1100px) and (min-height: 901px) {
    .photo-hero.has-aside .hu-card.has-cover { justify-content: flex-start; gap: 1.2rem; }
    .photo-hero.has-aside .hu-card.has-cover .hu-more { margin-top: auto; }
    .photo-hero.has-aside .hu-card.has-cover .hu-name { font-size: 2rem; }
}
@media (min-width: 1100px) and (min-height: 901px) {
    .photo-hero.has-aside .hu-card.has-cover .hu-more { margin-top: 0; }
    .photo-hero.has-aside .hu-card.has-cover .hu-count { margin-top: auto; }
}
/* large screens with a cover photo: the card takes the size of its content, led by the cover's own shape */
@media (min-width: 1100px) and (min-height: 901px) {
    .photo-hero.has-aside .hero-aside:has(.hu-card.has-cover) { align-self: end; }
    .photo-hero.has-aside .hu-card.has-cover { flex: none; }
    .photo-hero.has-aside .hu-card.has-cover .hu-count { margin-top: 0; }
    /* a tall cover never pushes the card under the top bar */
    .photo-hero.has-aside .hu-card.has-cover .hu-cover { display: flex; justify-content: center; background: rgba(255,255,255,.04); }
    .photo-hero.has-aside .hu-card.has-cover .hu-cover img { width: auto; max-width: 100%; max-height: calc(100vh - 640px); min-height: 0; }
}
@media (min-width: 1100px) and (min-height: 901px) {
    .photo-hero.has-aside .hu-card.has-cover { width: 100%; min-width: 0; }
    .photo-hero.has-aside .hu-card.has-cover .hu-cover { width: 100%; }
}
@media (min-width: 1100px) and (min-height: 901px) {
    .photo-hero.has-aside .hu-card.has-cover { max-height: calc(100vh - 160px); }
    .photo-hero.has-aside .hu-card.has-cover .hu-cover { flex: 0 1 auto; min-height: 120px; }
    .photo-hero.has-aside .hu-card.has-cover .hu-cover img { max-height: 100%; object-fit: contain; }
    .photo-hero.has-aside .hu-card.has-cover > :not(.hu-cover) { flex-shrink: 0; }
}

/* team portal: registration fee upload */
.fee-upload { flex-wrap: wrap; gap: .6rem; }
.fee-upload input[type=file] { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .fee-upload { flex-direction: column; align-items: stretch; } .fee-upload .btn { min-height: 44px; justify-content: center; } }

/* ---------- team portal: kit colours ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.kit-card { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.kit-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.kit-head b { font-size: 1.05rem; }
.kit-visual { display: grid; place-items: center; padding: .8rem 0; border-radius: 14px;
    background: radial-gradient(ellipse at 50% 35%, rgba(148,163,184,.22), rgba(148,163,184,.04) 70%); }
.kit-svg { width: min(200px, 60vw); height: auto; display: block; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.kit-svg path { transition: fill .2s, stroke .2s; }
.kit-pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.kit-pick { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .55rem .3rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); cursor: pointer; min-width: 0; }
.kit-pick input[type=color] { width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; padding: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.kit-pick input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.kit-pick input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.kit-pick input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }
.kit-pick span { font-weight: 600; font-size: .88rem; }
.kit-pick code { font-size: .72rem; color: var(--muted); background: none; padding: 0; }
.kit-switch { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-2); cursor: pointer; min-height: 32px; }
.kit-switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.kit-card.is-off .kit-visual, .kit-card.is-off .kit-pickers { opacity: .35; filter: grayscale(.6); pointer-events: none; }
.kit-actions { margin-top: 1rem; display: flex; justify-content: flex-end; }
@media (max-width: 600px) { .kit-actions .btn { width: 100%; justify-content: center; min-height: 46px; } }

/* team portal: at-a-glance row on top */
.next-box { margin-bottom: 2rem; }
.next-box .btn { min-height: 40px; }
@media (max-width: 600px) { .next-box .btn { width: 100%; justify-content: center; min-height: 44px; } }
@media (max-width: 600px) {
    .kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .kpis.kpis-3 .kpi { padding: .8rem .6rem; min-width: 0; }
    .kpis.kpis-3 .kpi b { font-size: 1.5rem; }
    .kpis.kpis-3 .kpi span { font-size: .74rem; line-height: 1.25; display: block; }
}

/* "Finish your registration": fee step */
.fee-step { display: flex; flex-direction: column; gap: .55rem; margin-top: .55rem; max-width: 640px; }
.fee-step p { margin: 0; }
.steps li { min-width: 0; }
.fee-step, .fee-step form, .fee-step .history-msg { min-width: 0; max-width: 100%; box-sizing: border-box; }
.fee-step .history-msg { overflow-wrap: anywhere; margin: 0; }
@media (max-width: 600px) { .fee-step { margin-left: -2.4rem; } .fee-upload input[type=file] { width: 100%; } }

/* team dashboard rows: two columns on wide screens, stacked on phones */
.dash-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; margin-bottom: 2rem; }
.dash-row > .glass-panel { margin: 0; min-width: 0; }
.dash-row > :only-child { grid-column: 1 / -1; }
.dash-row:empty { display: none; }
@media (max-width: 900px) { .dash-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.25rem; } }

/* "Finish your registration": kit step */
.kit-step { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.kit-mini { width: 54px; height: 66px; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(148,163,184,.12); border: 1px solid var(--line); }
.kit-mini .kit-svg { width: 44px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }

/* "Changes requested": kit and fee steps */
.request-box .reg-steps { margin-bottom: .5rem; }

/* kit editor inside the registration steps */
.kit-editor { margin-top: .55rem; }
.kit-editor > summary { list-style: none; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; cursor: pointer; width: fit-content; max-width: 100%; }
.kit-editor > summary::-webkit-details-marker { display: none; }
.kit-editor .kt-close { display: none; }
.kit-editor[open] .kt-open { display: none; }
.kit-editor[open] .kt-close { display: inline; }
.kit-editor[open] > summary .kit-mini { display: none; }
.kit-editor .kit-form { margin-top: .8rem; }
.kit-editor .kit-actions { justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.kit-editor .kit-svg { width: min(170px, 50vw); }
@media (max-width: 600px) { .kit-editor { margin-left: -2.4rem; } .kit-editor > summary { margin-left: 2.4rem; } }
.kit-editor .kit-mini .kit-svg { width: 44px; }

/* team: withdraw from a tournament */
.withdraw-cell { padding-top: 0 !important; }
.withdraw > summary { list-style: none; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; cursor: pointer; width: fit-content; }
.withdraw > summary::-webkit-details-marker { display: none; }
.withdraw[open] > summary .btn { opacity: .6; }
.withdraw-form { margin-top: .8rem; padding: 1rem; border-radius: 14px; border: 1px solid rgba(248,113,113,.3); background: rgba(248,113,113,.05); display: flex; flex-direction: column; gap: .75rem; }
.withdraw-form .field { margin: 0; }
.withdraw-fee { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(251,191,36,.08); color: #fde68a; }
.withdraw-fee.is-refund { background: rgba(52,211,153,.08); color: #a7f3d0; }
.withdraw-form .check { align-items: flex-start; }
@media (max-width: 600px) { .withdraw-form .btn { width: 100%; justify-content: center; min-height: 44px; } }

/* team dashboard top row: the three counts and the next match side by side */
.glance-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 2rem; }
.glance-row > .kpis { margin: 0; }
.glance-row > .next-box { margin: 0; }
@media (min-width: 1200px) {
    .glance-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch; }
    .glance-row > .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: stretch; }
    .glance-row > .kpis .kpi { display: flex; flex-direction: column; justify-content: center; }
    .glance-row > .next-box { padding: 1.1rem 1.3rem; }
    .glance-row > .next-box .panel-title { margin-bottom: .6rem; }
    .glance-row > .next-box .mt { margin-top: .6rem; }
}
@media (min-width: 1200px) {
    .glance-row { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }
    .glance-row .next-box .match-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "when when when" "home score away"; row-gap: .5rem; column-gap: .8rem; }
    .glance-row .next-box .match-row .when { grid-area: when; text-align: center; }
    .glance-row .next-box .match-row .when br { display: none; }
    .glance-row .next-box .match-row .when span + br + span::before { content: ' · '; }
    .glance-row .next-box .match-row .team.home { grid-area: home; }
    .glance-row .next-box .match-row .score { grid-area: score; }
    .glance-row .next-box .match-row .team:not(.home) { grid-area: away; }
    .glance-row .next-box .match-row .meta { display: none; }
}
@media (min-width: 901px) {
    .recent-box .match-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "when when when" "home score away"; row-gap: .5rem; column-gap: .8rem; }
    .recent-box .match-row .when { grid-area: when; text-align: center; }
    .recent-box .match-row .when br { display: none; }
    .recent-box .match-row .when span + br + span::before { content: ' · '; }
    .recent-box .match-row .team.home { grid-area: home; }
    .recent-box .match-row .score { grid-area: score; }
    .recent-box .match-row .team:not(.home) { grid-area: away; }
    .recent-box .match-row .meta { display: none; }
}

/* home: number of teams entered in the tournament panels */
.teams-meter { display: flex; flex-direction: column; gap: .4rem; }
.tm-top { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; color: var(--ink-2); font-size: .95rem; }
.tm-top i { color: var(--accent); }
.tm-top b { color: #fff; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.tm-of { color: var(--muted); font-size: .85rem; }
.tm-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.tm-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #34d399); }
.up-body .teams-meter { max-width: 420px; }
@media (min-width: 1100px) and (max-height: 820px) {
    .photo-hero.has-aside .hu-card { gap: .6rem; padding: 1rem 1.2rem; }
    .photo-hero.has-aside .hu-btns a { min-height: 42px; }
    .photo-hero.has-aside .hu-count > div { padding: .35rem .2rem; }
    .photo-hero.has-aside .hu-more { padding-top: .45rem; gap: .2rem; }
    .photo-hero.has-aside .hu-thumb { width: 100px; }
}
