:root {
  --c-brand: #8B0015;
  --c-brand-light: #B01028;
  --c-brand-glow: rgba(139,0,21,.08);
  --c-gold: #D4A017;
  --c-gold-light: #E6B82E;
  --c-green: #1B6B2B;
  --c-red: #B71C1C;
  --c-orange: #CC5500;
  --c-bg: #FFFFFF;
  --c-bg-muted: #F9FAFB;
  --c-text: #111827;
  --c-text-2: #6B7280;
  --c-text-3: #9CA3AF;
  --c-border: #E5E7EB;
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1000px;
  --pad-x: clamp(1rem, 4vw, 2rem);
  --header-h: 64px;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-full: 6px;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem;
  --text-xs: .7rem; --text-sm: .82rem;
  --f-display: 'Inter', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'Inter', monospace;
  --radius-lg: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--c-bg); color: var(--c-text); font-family: var(--f-sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: var(--radius-sm); }
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--c-brand); color: #fff; padding: .4rem 1rem; border-radius: 0 0 var(--radius) var(--radius); font-size: .75rem; z-index: 9999; transition: top .2s var(--ease); }
.skip-link:focus { top: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-sans); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h3 { font-size: clamp(.95rem, 2vw, 1.15rem); }
.label { font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-3); }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 200; height: var(--header-h); background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.site-header__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); height: 100%; display: flex; align-items: center; gap: var(--space-lg); }
.site-logo { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.site-logo__mark { width: 34px; height: 34px; background: var(--c-brand); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #fff; }
.site-logo__text { display: flex; flex-direction: column; gap: 1px; }
.site-logo__name { font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.site-logo__sub { font-size: .48rem; color: var(--c-text-3); letter-spacing: .06em; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: 0; }
.main-nav__link { display: block; font-weight: 500; font-size: .78rem; color: var(--c-text-2); padding: .4rem .75rem; transition: color .2s; }
.main-nav__link:hover { color: var(--c-text); }
.main-nav__link.is-active { color: var(--c-brand); font-weight: 600; }
.main-nav__link--admin { color: var(--c-gold); }
.header-auth { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }
.header-auth__user { font-size: .78rem; color: var(--c-text-3); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-sm); border-radius: var(--radius); }
.menu-toggle:hover { background: var(--c-bg-muted); }
.menu-toggle__bar { display: block; width: 20px; height: 2px; background: var(--c-text); border-radius: 1px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle.is-open .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HEADER ── */
.page-header { padding: var(--space-xl) 0 var(--space-lg); border-bottom: 1px solid var(--c-border); margin-bottom: var(--space-lg); }
.page-header__title { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: var(--space-sm); }
.page-header__desc { color: var(--c-text-2); max-width: 50ch; font-size: .9rem; line-height: 1.6; }
.page-header__back { font-size: .78rem; color: var(--c-brand); display: inline-block; margin-bottom: var(--space-sm); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: var(--space-sm); font-weight: 600; font-size: .82rem; padding: .5rem 1.15rem; border-radius: var(--radius); white-space: nowrap; cursor: pointer; border: 1.5px solid transparent; transition: all .15s var(--ease); }
.btn--primary { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.btn--primary:hover { background: var(--c-brand-light); border-color: var(--c-brand-light); }
.btn--outline { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn--outline:hover { background: var(--c-bg-muted); border-color: var(--c-text-3); }
.btn--gold { background: var(--c-gold); color: #1A1A1A; border-color: var(--c-gold); }
.btn--gold:hover { background: var(--c-gold-light); }
.btn--green { background: var(--c-green); color: #fff; border-color: var(--c-green); }
.btn--green:hover { background: #1e7d32; }
.btn--red { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.btn--red:hover { background: #961818; }
.btn--full { width: 100%; justify-content: center; }
.btn--sm { font-size: .75rem; padding: .3rem .85rem; }
.btn--lg { font-size: .9rem; padding: .65rem 1.5rem; }
.btn--disabled, .btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-sm); white-space: nowrap; }
.badge--brand { color: var(--c-brand); background: rgba(139,0,21,.06); }
.badge--gold { color: #7A5E00; background: rgba(212,160,23,.08); }
.badge--green { color: var(--c-green); background: rgba(27,107,43,.06); }
.badge--red { color: var(--c-red); background: rgba(183,28,28,.06); }
.badge--default { color: var(--c-text-3); background: var(--c-bg-muted); }

/* ── CARDS ── */
.module-card { border-bottom: 1px solid var(--c-border); }
.module-card__header { padding: var(--space-md) 0; display: flex; align-items: center; justify-content: space-between; }
.module-card__title { font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
.module-card__body { padding: var(--space-md) 0; }
.module-card__footer { padding: var(--space-sm) 0; border-top: 1px solid var(--c-border); }

/* ── LAYOUT ── */
.page-content { padding-bottom: var(--space-2xl); }
.form-section { margin-bottom: var(--space-lg); }
.form-section__title { font-size: .95rem; font-weight: 700; margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--c-border); }

/* ── ÚLTIMAS NOTICIAS (enlazado interno) ── */
.page-latest-posts { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--c-border); }
.page-latest-posts__title { font-size: 1.2rem; font-weight: 800; margin-bottom: var(--space-sm); }
.page-latest-posts__sub { color: var(--c-text-2); font-size: .85rem; margin-bottom: var(--space-lg); }
.page-latest-posts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-md); margin-bottom: var(--space-lg); }
.page-latest-posts__card { display: flex; flex-direction: column; gap: .35rem; padding: var(--space-sm); border: 1px solid var(--c-border); border-radius: var(--radius-md); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.page-latest-posts__card:hover { border-color: var(--c-brand); background: var(--c-bg-muted); }
.page-latest-posts__thumb { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); }
.page-latest-posts__card-title { font-size: .88rem; font-weight: 700; color: var(--c-text); line-height: 1.35; }
.page-latest-posts__card-meta { font-size: .72rem; color: var(--c-text-3); font-family: var(--f-mono); }

/* ── FORMS ── */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: var(--space-sm); }
.form-input, .form-select { width: 100%; padding: .5rem .8rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); font-size: .9rem; background: var(--c-bg); color: var(--c-text); transition: border-color .2s; }
.form-input:focus, .form-select:focus { border-color: var(--c-brand); outline: none; }
.form-input--error { border-color: var(--c-red); }
.form-error { font-size: .75rem; color: var(--c-red); margin-top: var(--space-xs); }
.form-hint { font-size: .75rem; color: var(--c-text-3); margin-top: var(--space-xs); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

/* ── ALERT ── */
.alert { padding: var(--space-md); border-radius: var(--radius); font-size: .82rem; margin-bottom: var(--space-lg); display: flex; align-items: center; gap: var(--space-sm); }
.alert--error { background: rgba(183,28,28,.04); border: 1px solid rgba(183,28,28,.15); color: var(--c-red); }
.alert--success { background: rgba(27,107,43,.04); border: 1px solid rgba(27,107,43,.15); color: var(--c-green); }
.alert--warning { background: rgba(212,160,23,.05); border: 1px solid var(--c-gold); color: #7A5E00; }

/* ── PLAYER SELECTOR ── */
.player-grid { display: flex; flex-direction: column; gap: var(--space-sm); }
.player-card { display: flex; align-items: center; gap: var(--space-md); padding: .5rem var(--space-md); border: 1.5px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); cursor: pointer; transition: all .15s var(--ease); user-select: none; }
.player-card:hover { border-color: var(--c-brand); }
.player-card--selected { border-color: var(--c-brand); background: rgba(139,0,21,.03); }
.player-card--disabled { opacity: .35; cursor: not-allowed; }
.player-card__check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; font-size: .6rem; color: transparent; }
.player-card--selected .player-card__check { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.player-card__number { width: 28px; height: 28px; border-radius: 50%; background: var(--c-bg-muted); display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; flex-shrink: 0; }
.player-card__photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--c-border); flex-shrink: 0; }
.player-card__info { flex: 1; min-width: 0; }
.player-card__name { font-weight: 600; font-size: .85rem; line-height: 1.2; }
.player-card__pos { font-size: .65rem; text-transform: uppercase; color: var(--c-text-3); }
.player-card__stats { font-size: .75rem; color: var(--c-text-3); display: flex; gap: var(--space-md); }

/* ── LINEUP SUMMARY ── */
.lineup-counter { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--c-bg-muted); border-radius: var(--radius); margin-bottom: var(--space-lg); font-size: .82rem; }
.lineup-counter__num { font-weight: 800; font-size: 1.2rem; color: var(--c-brand); min-width: 28px; }
.lineup-counter__num--ok { color: var(--c-green); }
.lineup-counter__divider { width: 1px; height: 18px; background: var(--c-border); }
.lineup-counter__detail { color: var(--c-text-3); }

/* ── ALINEACIÓN GRÁFICA ── */
.formation-bar { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.formation-bar .form-label { margin-bottom: 0; flex-shrink: 0; }
.formation-select { max-width: 220px; }

.pitch { position: relative; width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 496 / 740; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 32px rgba(0,0,0,.14); }
.pitch__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pitch__slots { position: absolute; inset: 0; }

.pitch-row { position: absolute; left: 0; right: 0; top: var(--row-top); transform: translateY(-50%); display: flex; justify-content: space-evenly; align-items: center; gap: var(--space-xs); padding: 0 6px; }

.pitch-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.pitch-circle { width: clamp(40px, 11vw, 50px); height: clamp(40px, 11vw, 50px); border-radius: 50%; background: rgba(255,255,255,.92); border: 2px solid var(--c-brand); box-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; font-size: 1rem; color: var(--c-text-3); flex-shrink: 0; }
.pitch-circle--empty { border-style: dashed; background: rgba(255,255,255,.75); }
.pitch-circle__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.pitch-circle__num { font-weight: 800; font-size: 1.05rem; color: var(--c-brand); }

.pitch-slot__select { width: clamp(56px, 18vw, 82px); max-width: 82px; font-size: .6rem; padding: 2px 2px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: rgba(255,255,255,.96); color: var(--c-text); cursor: pointer; text-align: center; }
.pitch-slot__select:focus { border-color: var(--c-brand); outline: none; }

.pitch-slot__name { width: 88px; max-width: 88px; font-size: .55rem; font-weight: 700; text-align: center; background: rgba(255,255,255,.88); padding: 1px 4px; border-radius: var(--radius-sm); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── RANKING TABLE ── */
.ranking-table { width: 100%; font-size: .82rem; }
.ranking-table th { font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-3); padding: .5rem .75rem; border-bottom: 1px solid var(--c-border); text-align: left; }
.ranking-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--c-border); color: var(--c-text-2); }
.ranking-table tbody tr { transition: background .1s; }
.ranking-table tbody tr:hover td { background: var(--c-bg-muted); }
.ranking-table__pos { font-weight: 700; font-size: .9rem; color: var(--c-text); }
.ranking-table__pos--1 { color: var(--c-gold); }
.ranking-table__pos--2, .ranking-table__pos--3 { color: var(--c-text-2); }
.ranking-table__name { font-weight: 600; color: var(--c-text); }
.ranking-table__pts { font-weight: 700; font-size: 1rem; color: var(--c-brand); }

/* ── JORNADA CARD ── */
.jornada-card { border-bottom: 1px solid var(--c-border); margin-bottom: var(--space-md); }
.jornada-card__header { padding: var(--space-sm) 0; display: flex; align-items: center; justify-content: space-between; }
.jornada-card__title { font-size: .88rem; font-weight: 700; }
.jornada-card__body { padding: var(--space-sm) 0; }
.jornada-card__meta { font-size: .75rem; color: var(--c-text-3); display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ── PLAYER STATS ── */
.player-stat-row { display: flex; align-items: center; gap: var(--space-md); padding: .5rem 0; border-bottom: 1px solid var(--c-border); }
.player-stat-row:last-child { border-bottom: none; }
.player-stat-row__label { font-size: .75rem; color: var(--c-text-3); text-transform: uppercase; width: 130px; flex-shrink: 0; }
.player-stat-row__value { font-weight: 700; font-size: 1rem; color: var(--c-text); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--c-text-3); }
.empty-state__icon { font-size: 1.5rem; margin-bottom: var(--space-md); }
.empty-state__text { font-size: .85rem; }

/* ── DEADLINE ── */
.deadline-banner { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid var(--c-gold); border-radius: var(--radius); font-size: .78rem; color: var(--c-text-2); margin-bottom: var(--space-lg); }
.deadline-banner--closed { border-color: var(--c-brand); color: var(--c-brand); }
.deadline-banner__icon { font-size: 1rem; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--c-border); margin-top: var(--space-2xl); }
.site-footer__inner { max-width: var(--max-w); margin: 0 auto; padding: var(--space-lg) var(--pad-x); }
.site-footer__grid { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: var(--space-sm); }
.footer-logo__mark { width: 26px; height: 26px; background: var(--c-brand); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .65rem; color: #fff; }
.footer-logo__name { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer__tagline { font-size: .78rem; color: var(--c-text-2); max-width: 32ch; }
.site-footer__heading { font-size: .68rem; font-weight: 700; margin-bottom: var(--space-sm); color: var(--c-text); text-transform: uppercase; letter-spacing: .04em; }
.site-footer__links { display: flex; flex-direction: column; gap: var(--space-xs); }
.site-footer__links a { font-size: .78rem; color: var(--c-text-2); transition: color .2s; padding: 2px 0; }
.site-footer__links a:hover { color: var(--c-text); }
.site-footer__bottom { padding: var(--space-md) 0 0; border-top: 1px solid var(--c-border); margin-top: var(--space-md); text-align: center; }
.site-footer__copy { font-size: .75rem; color: var(--c-text-3); }

/* ── ADMIN ── */
.admin-toolbar { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.score-input { width: 64px; padding: .35rem .4rem; text-align: center; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; transition: border-color .2s; }
.score-input:focus { border-color: var(--c-brand); outline: none; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 9000; padding: .65rem 1.25rem; border-radius: var(--radius); font-size: .82rem; box-shadow: 0 4px 20px rgba(0,0,0,.12); transform: translateY(120%); opacity: 0; transition: all .3s var(--ease); }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast--success { background: var(--c-green); color: #fff; }
.toast--error { background: var(--c-red); color: #fff; }

/* ── ADMIN: PLAYER TOGGLE ── */
.player-toggle { display: inline-flex; cursor: pointer; border: 1px solid var(--c-border); border-radius: var(--radius); transition: all .15s; }
.player-toggle__input { display: none; }
.player-toggle__label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: .78rem; color: var(--c-text-2); border-radius: var(--radius); transition: all .15s; }
.player-toggle__num { font-weight: 700; font-size: .85rem; }
.player-toggle__pos { font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-3); }
.player-toggle:hover { border-color: var(--c-brand); }
.player-toggle--active { background: var(--c-brand); border-color: var(--c-brand); }
.player-toggle--active .player-toggle__label { color: #fff; }
.player-toggle--active .player-toggle__pos { color: rgba(255,255,255,.7); }

/* ── ADMIN: STATS TABLE ── */
.stats-header { display: grid; grid-template-columns: 1fr repeat(6, 64px); gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--c-border); font-size: .68rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .04em; }
.stats-header__col { text-align: center; }
.stats-header__col--name { text-align: left; }
.stats-row { display: grid; grid-template-columns: 1fr repeat(6, 64px); gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--c-border); align-items: center; transition: background .1s; }
.stats-row:hover { background: var(--c-bg-muted); }
.stats-row--hidden { display: none; }
.stats-row__name { display: flex; align-items: center; gap: var(--space-md); }
.stats-row__num { font-weight: 800; font-size: 1.05rem; min-width: 24px; }
.stats-row__info { display: flex; flex-direction: column; }
.stats-row__player-name { font-weight: 600; font-size: .85rem; }
.stats-row__player-pos { font-size: .7rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .04em; }
.stats-row__col { text-align: center; }
.stats-input { width: 100%; max-width: 56px; padding: 5px 6px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-bg); color: var(--c-text); font-size: .78rem; text-align: center; transition: border-color .15s; }
.stats-input:focus { border-color: var(--c-brand); outline: none; }
.stats-input--score { font-weight: 700; }
.stats-check { display: inline-flex; cursor: pointer; }
.stats-check__input { display: none; }
.stats-check__box { width: 20px; height: 20px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-bg); position: relative; transition: all .15s; }
.stats-check__input:checked + .stats-check__box { background: var(--c-brand); border-color: var(--c-brand); }
.stats-check__input:checked + .stats-check__box::after { content: ''; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.modal-box { background: var(--c-bg); border-radius: var(--radius); padding: var(--space-xl); max-width: 420px; width: 100%; }

/* ── PLAYER PHOTO ── */
.player-photo-cell { display: flex; align-items: center; gap: var(--space-sm); }
.player-photo-thumb { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--c-border); flex-shrink: 0; }
.player-photo-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--c-bg-muted); border: 1px dashed var(--c-border); display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.player-photo-btn { padding: 2px 6px !important; font-size: .65rem !important; border-radius: var(--radius-sm) !important; cursor: pointer; line-height: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .main-nav, .header-auth { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.is-open { display: flex; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(255,255,255,.98); flex-direction: column; padding: var(--space-lg); z-index: 150; overflow-y: auto; border-top: 1px solid var(--c-border); }
  .main-nav.is-open .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav.is-open .main-nav__link { padding: var(--space-md); font-size: .95rem; border-bottom: 1px solid var(--c-border); }
  .site-footer__grid { flex-direction: column; align-items: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .player-card { flex-wrap: wrap; }
  .player-card__stats { width: 100%; justify-content: flex-end; }
  .stats-header { grid-template-columns: 1fr repeat(6, 48px); padding: var(--space-sm); }
  .stats-row { grid-template-columns: 1fr repeat(6, 48px); padding: var(--space-sm); }
  .stats-input { max-width: 44px; padding: 3px 4px; font-size: .7rem; }
  .player-toggle { margin-bottom: 4px; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }