/* =====================================================================
   Vole — Sistema de diseño corporativo (modo claro)
   ===================================================================== */
:root {
  /* Neutros / superficies */
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e9f2;
  --border-strong: #cbd5e1;

  /* Texto */
  --text: #0f1b2d;
  --muted: #5b6b82;

  /* Marca */
  --primary: #143a6b;        /* navy corporativo (titulares, footer) */
  --primary-600: #1d4ed8;    /* azul interactivo */
  --primary-500: #2563eb;
  --primary-050: #eef4ff;
  --accent: #f59e0b;         /* ámbar (energía deportiva) */
  --accent-600: #d97706;

  /* Estado */
  --ok: #15803d;  --ok-bg: #ecfdf3;  --ok-bd: #abefc6;
  --warn: #b45309; --warn-bg: #fffaeb; --warn-bd: #fedf89;
  --err: #b42318; --err-bg: #fef3f2; --err-bd: #fecdca;

  /* Forma */
  --radius: 14px;
  --radius-sm: 9px;
  --ring: 0 0 0 3px rgba(37, 99, 235, .25);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 6px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { color: var(--primary); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 2.4rem 1.25rem 4rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ───────────────────────── Header / Nav ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1140px; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.12rem; color: var(--primary); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-500), var(--primary)); color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .14em; color: var(--accent-600); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 600; font-size: .92rem; padding: .45rem .7rem; border-radius: 8px; }
.nav a:hover { color: var(--primary); background: var(--surface-2); text-decoration: none; }
.nav .sep { width: 1px; height: 22px; background: var(--border); margin: 0 .3rem; }

/* ───────────────────────── Botones ───────────────────────── */
.btn {
  --b1: var(--primary-500); --b2: var(--primary-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--b1), var(--b2)); color: #fff !important; font-weight: 700; font-size: .92rem;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .06s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--primary) !important; border-color: var(--border-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.accent { --b1: var(--accent); --b2: var(--accent-600); color: #3a2400 !important; }
.btn.danger { --b1: #ef4444; --b2: #dc2626; }
.btn.sm { padding: .4rem .75rem; font-size: .82rem; border-radius: 8px; }
.btn.block { width: 100%; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 2rem;
  padding: 4.6rem 2rem; text-align: center; color: #fff;
  min-height: 440px; display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(180deg, rgba(13, 33, 66, .82), rgba(13, 33, 66, .68)),
    radial-gradient(700px 380px at 100% 120%, rgba(37, 99, 235, .45), transparent 55%),
    url('/static/img/hero.jpg') center 28% / cover no-repeat,
    #14315f;
  box-shadow: var(--shadow-lg);
}
.hero .eyebrow { display: inline-block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #ffd79a; font-weight: 700; margin-bottom: .7rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p { color: #d7e2f4; font-size: 1.12rem; max-width: 640px; margin: 0 auto 1.6rem; }
.hero .cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* ───────────────────────── Secciones / cards ───────────────────────── */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.eyebrow { color: var(--accent-600); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.grid  { display: grid; gap: 1.1rem; margin-top: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid2 { display: grid; gap: 1.1rem; margin-top: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.features { display: grid; gap: 1.1rem; margin-top: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
}
.card.hover { transition: transform .12s ease, box-shadow .18s ease; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 1.3rem; background: var(--primary-050); color: var(--primary-600); margin-bottom: .8rem; }
.grid2 .form { max-width: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat span { display: block; font-size: 2.1rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.stat small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; }

/* ───────────────────────── Tags / badges ───────────────────────── */
.tag { display: inline-block; padding: .22rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.tag.fem  { color: #be185d; background: #fdf2f8; border-color: #fbcfe8; }
.tag.masc { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.tag.approved, .tag.paid, .tag.confirmed { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
.tag.pending, .tag.notified { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bd); }
.tag.rejected { color: var(--err); background: var(--err-bg); border-color: var(--err-bd); }
.tag.role { color: var(--primary-600); background: var(--primary-050); border-color: #c7d7fe; text-transform: capitalize; }

/* ───────────────────────── Tablas ───────────────────────── */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 1rem; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .8rem 1rem; }
.table thead th { background: var(--surface-2); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.table tbody tr { border-top: 1px solid var(--border); }
.table tbody tr:hover { background: var(--primary-050); }

/* ───────────────────────── Formularios ───────────────────────── */
.form { display: grid; gap: 1rem; max-width: 440px; margin-top: 1.2rem; }
.form label { display: grid; gap: .35rem; color: var(--text); font-weight: 600; font-size: .88rem; }
.form input, .form select {
  padding: .65rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: .95rem; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--primary-500); box-shadow: var(--ring); }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }

/* ───────────────────────── Alertas (htmx) ───────────────────────── */
.alert { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; border: 1px solid transparent; }
.alert.ok  { background: var(--ok-bg);  color: var(--ok);  border-color: var(--ok-bd); }
.alert.err { background: var(--err-bg); color: var(--err); border-color: var(--err-bd); }

/* ───────────────────────── Dashboard / paneles ───────────────────────── */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.links { display: flex; gap: .55rem; flex-wrap: wrap; }
.callup-action { margin-left: .5rem; }

.notif { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.notif li { padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem; }
.notif li.unread { border-left: 3px solid var(--accent); background: #fffdf7; }

/* Página de autenticación centrada */
.auth { max-width: 440px; margin: 1.5rem auto; }
.auth.wide { max-width: 680px; }
.auth .card { box-shadow: var(--shadow); }
.auth .form { max-width: none; }

/* Formulario por secciones (fieldset) */
.fset { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1.1rem 1.15rem; margin: 0; background: var(--surface-2); }
.fset legend { padding: 0 .5rem; font-weight: 700; color: var(--primary); font-size: .95rem; }
.fset .form, .fset > label { margin-top: 0; }
.fset .row + label, .fset label + label, .fset label + .row, .fset .row + .row { margin-top: .9rem; }
.hint { margin: .7rem 0 0; font-size: .85rem; color: var(--muted); background: var(--primary-050); border: 1px solid #d6e2ff; border-radius: 8px; padding: .5rem .7rem; }

/* Cinta de categorías técnicas (home) */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill { padding: .4rem .9rem; border-radius: 999px; background: var(--primary-050); color: var(--primary-600); font-weight: 600; font-size: .85rem; border: 1px solid #d6e2ff; }

/* Banda multimedia (imagen + texto) */
.media-band { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.8rem; align-items: center; margin-top: 2.6rem; }
.media-band.reverse .media { order: 2; }
.media-band .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 11; }
.media-band .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.media-band .media:hover img { transform: scale(1.04); }
.checks { list-style: none; padding: 0; margin: .6rem 0 1.2rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 1.7rem; color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 1.2rem; height: 1.2rem; background: var(--ok-bg); color: var(--ok); border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }

/* Galería de fotos */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.3rem; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(13, 33, 66, .82)); }

@media (max-width: 760px) {
  .media-band { grid-template-columns: 1fr; }
  .media-band.reverse .media { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* ───────────────────────── Calendario ───────────────────────── */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.cal-nav strong { font-size: 1.1rem; color: var(--primary); min-width: 190px; text-align: center; text-transform: capitalize; }
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.cal thead th { background: var(--surface-2); color: var(--muted); font-size: .72rem; text-transform: uppercase; padding: .5rem; border-bottom: 1px solid var(--border); }
.cal-cell { vertical-align: top; height: 98px; border: 1px solid var(--border); padding: .3rem; overflow: hidden; }
.cal-out { background: var(--surface-2); }
.cal-out .cal-day { color: #aab4c2; }
.cal-today { background: var(--primary-050); }
.cal-day { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .25rem; }
.cal-today .cal-day { color: var(--primary-600); }
.cal-ses { display: block; font-size: .72rem; line-height: 1.25; background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); color: #fff !important; border-radius: 6px; padding: .2rem .35rem; margin-bottom: .2rem; text-decoration: none; }
.cal-ses:hover { filter: brightness(1.08); text-decoration: none; }
.cal-ses .cal-sec { display: block; opacity: .85; font-size: .66rem; }
.cal-fr { display: block; font-size: .72rem; line-height: 1.25; background: linear-gradient(135deg, var(--accent), var(--accent-600)); color: #3a2400 !important; font-weight: 700; border-radius: 6px; padding: .2rem .35rem; margin-bottom: .2rem; text-decoration: none; }
.cal-fr:hover { filter: brightness(1.05); text-decoration: none; }
.cal-fr .cal-sec { display: block; font-weight: 600; opacity: .9; font-size: .66rem; }
.cal-fr i { font-style: normal; opacity: .75; }

/* ───────────────────────── Avatar / foto de perfil ───────────────────────── */
.avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); background: var(--surface-2); flex-shrink: 0; }
.avatar-empty { display: grid; place-items: center; font-size: 1.9rem; color: var(--primary-600); }
.avatar-sm { width: 40px; height: 40px; border-width: 2px; font-size: 1.1rem; }
.photo-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .6rem 0 1.2rem; }
.photo-form input[type=file] { font-size: .85rem; max-width: 260px; }

/* ───────────────────────── KPIs / rendimiento ───────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; text-align: center; box-shadow: var(--shadow-sm); }
.kpi-val { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.kpi-val .up { color: #15803d; }
.kpi-val .down { color: #b42318; }
.kpi small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }

.bars { display: grid; gap: .7rem; margin-top: .6rem; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 66px; align-items: center; gap: .6rem; }
.bar-label { font-size: .85rem; font-weight: 600; }
.bar { height: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-500), var(--accent)); border-radius: 999px; }
.bar-val { font-size: .82rem; text-align: right; font-weight: 600; }
.att-sel { padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); font-family: inherit; }

/* ───────────────────────── Galería de jugadores (cards) ───────────────────────── */
.roster { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 1.4rem; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .18s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-photo { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #14315f, #1b3a6b); display: grid; place-items: center; overflow: hidden; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard-ph { font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, .6); letter-spacing: .05em; }
.pcard-num { position: absolute; top: .6rem; right: .6rem; background: var(--accent); color: #3a2400; font-weight: 800; font-size: .82rem; padding: .15rem .55rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pcard-cat { position: absolute; bottom: .6rem; left: .6rem; font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1d4ed8; }
.pcard-cat.fem { color: #be185d; }
.pcard-body { padding: .85rem 1rem 1.05rem; }
.pcard-body h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.pcard-body .pos { margin: 0; color: var(--muted); font-size: .88rem; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { background: var(--primary); color: #c7d4e8; margin-top: 3rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 2.6rem 1.25rem 1.4rem; display: grid; gap: 1.8rem; grid-template-columns: 1.6fr 1fr 1fr; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.footer a { color: #c7d4e8; display: block; padding: .18rem 0; font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .brand small { color: var(--accent); }
.footer p { font-size: .9rem; color: #9fb1cc; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 1.6rem; padding: 1rem 1.25rem; text-align: center; font-size: .82rem; color: #9fb1cc; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
}

/* ── Amistosos: marcador, badges de club y listados ──────────────────────── */
.friendly-card { display: block; color: inherit; text-decoration: none; }
.friendly-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.club-badge { display: grid; justify-items: center; gap: .25rem; text-align: center; }
.club-badge img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.club-badge .logo { font-size: 2rem; line-height: 1; }
.club-badge small { color: var(--muted); font-weight: 600; font-size: .72rem; max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-badge.big img { width: 84px; height: 84px; border-radius: 14px; }
.club-badge.big .logo { font-size: 3.4rem; }
.friendly-score { display: flex; align-items: center; gap: .35rem; font-weight: 800; }
.friendly-score .fs { font-size: 1.6rem; color: var(--primary); }
.friendly-score .fs-sep { color: var(--muted); }

.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.sb-side { display: grid; justify-items: center; gap: .5rem; text-align: center; }
.sb-side strong { font-size: 1.05rem; }
.sb-score { display: grid; grid-auto-flow: column; align-items: baseline; justify-content: center; gap: .6rem; }
.sb-sets { font-size: 2.8rem; font-weight: 800; color: var(--primary); }
.sb-dash { font-size: 1.6rem; color: var(--muted); }
.sb-score small { grid-column: 1 / -1; text-align: center; }

.mini-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .2rem; }
.mini-list li { font-size: .9rem; color: var(--text); padding: .15rem 0; border-bottom: 1px dashed var(--border); }
.table tfoot th { background: var(--surface-2); font-weight: 800; border-top: 2px solid var(--border-strong); }
details > summary { cursor: pointer; display: inline-flex; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ── Panel de gestión de amistosos: sub-nav, paneles colapsables, tarjetas ── */
.subnav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.3rem; }
.subnav a { padding: .5rem .95rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--primary); background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: all .12s ease; }
.subnav a:hover { border-color: var(--border-strong); text-decoration: none; }
.subnav a.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-sm); }

.tag.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bd); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; overflow: hidden; }
.panel > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--primary); list-style: none; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: "▾"; color: var(--muted); transition: transform .15s ease; }
.panel[open] > summary::after { transform: rotate(180deg); }
.panel > summary:hover { background: var(--surface-2); }
.panel .panel-body { padding: 0 1.2rem 1.2rem; }
.panel .panel-t { font-size: 1.05rem; }

.list-head { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0 .8rem; }
.count { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .5rem; border-radius: 999px; background: var(--primary-050); color: var(--primary-600); font-weight: 800; font-size: .85rem; }

.fr-list { display: grid; gap: 1rem; }
.fr-item { padding: 1rem 1.1rem; }
.fr-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem .9rem; align-items: center; }
.fr-teams { display: flex; align-items: center; gap: .6rem; font-size: 1.02rem; }
.fr-teams .fr-vs { background: var(--primary); color: #fff; font-weight: 800; padding: .1rem .55rem; border-radius: 8px; font-size: .95rem; }
.fr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.fr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .8rem 0 .2rem; }
.fr-actions form { display: inline; margin: 0; }

details.sub { border-top: 1px dashed var(--border); margin-top: .7rem; padding-top: .7rem; }
details.sub > summary { margin-bottom: 0; }

.club-row { display: flex; align-items: center; gap: .7rem; }
.club-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.logo-setting { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
