:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-muted: #f0f1ef;
  --ink: #17191b;
  --ink-soft: #6a7076;
  --line: #dedfda;
  --black: #151719;
  --red: #be2026;
  --red-dark: #92181d;
  --red-soft: #f9e9e9;
  --green: #2f7357;
  --green-soft: #e7f1eb;
  --amber: #9a6317;
  --amber-soft: #f8eedc;
  --shadow: 0 10px 28px rgba(20, 24, 26, .08);
  --radius: 12px;
  --sidebar-width: 240px;
}
body.dark {
  --bg: #161819;
  --surface: #202325;
  --surface-muted: #292d30;
  --ink: #f4f5f3;
  --ink-soft: #adb4b7;
  --line: #393f42;
  --black: #0f1112;
  --red: #d54b50;
  --red-dark: #eb676b;
  --red-soft: #402326;
  --green: #75b991;
  --green-soft: #20392e;
  --amber: #ddb66e;
  --amber-soft: #3d321d;
  --shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(190, 32, 38, .28); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar-width); padding: 24px 14px 18px; display: flex; flex-direction: column; background: var(--black); color: #fff; }
.club-lockup { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 6px 10px 26px; }
.club-mark { width: 43px; height: 48px; flex: 0 0 auto; object-fit: contain; transform: scale(1.45); transform-origin: center; }
.club-lockup strong, .club-lockup small { display: block; }
.club-lockup strong { font-size: 18px; letter-spacing: -.03em; }
.club-lockup small { opacity: .67; font-size: 12px; margin-top: -2px; }
.main-nav { display: grid; gap: 3px; }
.nav-item { border: 0; border-left: 3px solid transparent; width: 100%; padding: 10px 12px; color: rgba(255,255,255,.67); background: transparent; border-radius: 0 7px 7px 0; text-align: left; font-size: 14px; font-weight: 650; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; border-left-color: var(--red); background: rgba(255,255,255,.1); }
.sidebar-footer { margin-top: auto; padding: 14px 10px 0; display: grid; gap: 6px; color: rgba(255,255,255,.58); font-size: 12px; }
.local-indicator { display: flex; align-items: center; gap: 6px; }
.local-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #6eb58c; }
.season-label { opacity: .72; }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { height: 73px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--surface), var(--surface-muted)); }
.crumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb span { color: var(--ink-soft); font-size: 13px; }
.crumb b { font-size: 17px; white-space: nowrap; }
.crumb b::before { content: "/"; color: var(--line); margin-right: 10px; font-weight: 400; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.search-box input { width: 180px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; color: var(--ink); background: var(--surface); }
.text-button, .icon-button, .secondary-button, .primary-button, .danger-button, .filter-button, .mini-button, .menu-trigger { border: 1px solid transparent; border-radius: 7px; font-weight: 700; }
.text-button, .secondary-button, .filter-button, .mini-button { color: var(--ink); background: var(--surface); border-color: var(--line); }
.text-button { padding: 8px 11px; }
.text-button[aria-pressed="true"] { color: #fff; background: var(--red); border-color: var(--red); }
.icon-button { width: 36px; height: 36px; color: var(--ink); background: var(--surface-muted); }
.menu-trigger { display: none; }
#app-content { max-width: 1320px; margin: 0 auto; padding: 30px 32px 50px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; letter-spacing: -.05em; }
.page-head p { margin: 5px 0 0; color: var(--ink-soft); }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.primary-button, .secondary-button, .danger-button { padding: 10px 14px; }
.primary-button { background: var(--red); color: white; border-color: var(--red); }
.primary-button:hover { background: var(--red-dark); }
.secondary-button:hover, .filter-button:hover, .mini-button:hover { background: var(--surface-muted); }
.danger-button { color: var(--red); border-color: var(--line); background: var(--surface); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { padding: 8px 11px; color: var(--ink-soft); }
.filter-button.active { color: #fff; background: var(--black); border-color: var(--black); }
.notice { display: flex; gap: 10px; align-items: start; padding: 11px 13px; margin: 0 0 20px; border-left: 3px solid var(--red); background: var(--red-soft); color: var(--ink); border-radius: 0 7px 7px 0; font-size: 13px; }
.grid { display: grid; gap: 16px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); }
.lower-grid { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr); margin-top: 16px; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card, .game-card, .player-card, .news-card, .tournament-card, .calendar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.game-card, .player-card, .news-card, .tournament-card, .calendar-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .game-card:hover, .player-card:hover, .news-card:hover, .tournament-card:hover, .calendar-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); box-shadow: 0 16px 30px rgba(20, 24, 26, .12); } .nav-item:hover { transform: translateX(2px); } }
.card { padding: 19px; }
.page-head { position: relative; padding-left: 16px; }
.page-head::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 7px; width: 4px; border-radius: 4px; background: var(--red); }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.card-title a, .inline-link { color: var(--red); background: none; border: 0; padding: 0; font-weight: 750; text-decoration: none; }
.next-game { overflow: hidden; position: relative; background: var(--black); color: white; border: none; min-height: 270px; }
.next-game::after { content: "D"; position: absolute; right: -14px; bottom: -43px; color: rgba(255,255,255,.055); font: 900 170px/1 Arial, sans-serif; letter-spacing: -.12em; }
.next-game::before { content: ""; position: absolute; inset: auto -20% 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: sideline 5s ease-in-out infinite; }
.next-game .card-title { position: relative; z-index: 1; }
.next-game .card-title .eyebrow { color: #ff989b; }
.game-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; padding: 12px 4px 5px; text-align: center; }
.team-name { font-size: 20px; font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.team-sub { margin-top: 5px; color: rgba(255,255,255,.67); font-size: 13px; }
.versus { color: #ff8b90; font-size: 15px; font-weight: 900; }
.game-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 15px; margin-top: 18px; color: rgba(255,255,255,.77); font-size: 13px; }
.countdown { position: relative; z-index: 1; color: #fff; text-align: center; margin: 16px 0 0; font-size: 14px; font-weight: 750; }
.last-game-line { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.score-large { font-size: 34px; font-weight: 850; letter-spacing: -.08em; white-space: nowrap; }
.result-badge, .status-badge, .type-badge { display: inline-flex; align-items: center; width: max-content; border-radius: 100px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.result-badge.win { color: var(--green); background: var(--green-soft); }
.result-badge.draw { color: var(--amber); background: var(--amber-soft); }
.result-badge.loss { color: var(--red); background: var(--red-soft); }
.type-badge { color: var(--ink-soft); background: var(--surface-muted); }
.standing-compact { display: grid; gap: 8px; }
.standing-top { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.standing-top:last-child { border-bottom: 0; }
.standing-top.current { margin: 0 -7px; padding: 10px 7px; border-radius: 6px; background: var(--red-soft); color: var(--ink); }
.standing-top b:last-child { text-align: right; }
.training-prominent { background: var(--red); border: 0; color: white; }
.training-prominent .eyebrow, .training-prominent .muted { color: rgba(255,255,255,.74); }
.training-date { font-size: 25px; font-weight: 850; letter-spacing: -.05em; margin: 11px 0 3px; }
.training-where { font-size: 14px; }
.news-row, .compact-list { display: grid; gap: 10px; }
.news-row article, .compact-item { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.news-row article:last-child, .compact-item:last-child { padding-bottom: 0; border-bottom: 0; }
.news-row h3, .compact-item strong { margin: 0; font-size: 14px; }
.news-row p, .compact-item span { color: var(--ink-soft); margin: 3px 0 0; font-size: 13px; }
.stat-card { padding: 16px; }
.stat-card span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.stat-card b { display: block; margin-top: 5px; font-size: 27px; line-height: 1; letter-spacing: -.06em; }
.section-title { margin: 28px 0 13px; font-size: 19px; letter-spacing: -.03em; }
.games-list { display: grid; gap: 10px; }
.game-card { padding: 15px 17px; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center; cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.game-card:hover { transform: translateY(-2px); border-color: #bdbfba; }
.game-card .date-block { color: var(--ink-soft); font-size: 13px; }
.game-card .date-block strong { display: block; color: var(--ink); font-size: 17px; letter-spacing: -.03em; }
.fixture { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; text-align: center; }
.fixture .home { text-align: right; }
.fixture strong { overflow-wrap: anywhere; }
.fixture .vs-or-score { min-width: 44px; font-size: 16px; font-weight: 850; letter-spacing: -.05em; }
.game-card .game-side { display: grid; justify-items: end; gap: 5px; min-width: 115px; }
.subtle { color: var(--ink-soft); font-size: 13px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 700px; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 14px; text-align: right; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
th:nth-child(2), td:nth-child(2) { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.current-team { background: var(--red-soft); font-weight: 750; }
.team-hero { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center; padding: 24px; }
.team-photo { aspect-ratio: 1.42; border-radius: 9px; background: linear-gradient(135deg, #25292b, #5c1419); color: white; display: grid; place-items: center; overflow: hidden; }
.team-photo span { padding: 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font: 800 34px/1 Arial, sans-serif; letter-spacing: -.11em; }
.team-hero h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.team-hero p { color: var(--ink-soft); margin: 6px 0 0; }
.players-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.player-card { min-height: 130px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; }
.player-number { color: var(--red); font-size: 30px; font-weight: 850; line-height: 1; letter-spacing: -.07em; }
.player-card h3 { margin: 14px 0 1px; font-size: 15px; }
.player-card p { color: var(--ink-soft); margin: 0; font-size: 13px; }
.card-actions { display: flex; gap: 6px; align-items: center; }
.mini-button { padding: 6px 8px; color: var(--ink-soft); font-size: 12px; }
.training-list, .calendar-list { display: grid; gap: 10px; }
.training-row, .calendar-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 15px; align-items: center; padding: 15px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.date-tile { text-align: center; border-right: 1px solid var(--line); padding-right: 13px; }
.date-tile strong { display: block; font-size: 21px; line-height: 1; letter-spacing: -.06em; }
.date-tile span { color: var(--ink-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.training-row h3, .calendar-row h3 { margin: 0; font-size: 15px; }
.training-row p, .calendar-row p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }
.calendar-toolbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 15px; }
.calendar-day { min-height: 105px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.calendar-day .day-num { color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.calendar-entry { display: block; margin-top: 7px; padding: 4px 6px; overflow: hidden; border-radius: 4px; background: var(--red-soft); color: var(--ink); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.calendar-entry.training { background: var(--green-soft); }
.calendar-entry.tournament { background: var(--amber-soft); }
.stats-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, .75fr); }
.chart-block { min-height: 245px; }
.bar-set { display: grid; gap: 13px; margin-top: 20px; }
.bar-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.bar { height: 9px; overflow: hidden; border-radius: 20px; background: var(--surface-muted); }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.bar > i.green { background: var(--green); }
.bar > i.amber { background: var(--amber); }
.chart-svg { width: 100%; height: 200px; margin-top: 6px; }
.scorer-list { display: grid; gap: 9px; }
.scorer-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 9px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.scorer-row:last-child { border-bottom: 0; padding-bottom: 0; }
.scorer-rank { color: var(--ink-soft); font-weight: 800; }
.news-grid, .tournament-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.news-card, .tournament-card { padding: 18px; }
.news-card h2, .tournament-card h2 { margin: 11px 0 7px; font-size: 18px; letter-spacing: -.035em; }
.news-card p, .tournament-card p { margin: 0; color: var(--ink-soft); font-size: 14px; white-space: pre-line; }
.news-card footer, .tournament-card footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 18px; color: var(--ink-soft); font-size: 12px; }
.tournament-card .placement { color: var(--red); font-size: 26px; font-weight: 850; letter-spacing: -.06em; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.gallery-card { position: relative; aspect-ratio: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: end; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: white; background: linear-gradient(145deg, #1d2225, #84171d); }
.gallery-card:nth-child(3n+2) { background: linear-gradient(145deg, #25292b, #3e654f); }
.gallery-card:nth-child(3n) { background: linear-gradient(145deg, #493d22, #9d671a); }
.gallery-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.gallery-card > * { position: relative; z-index: 1; }
.gallery-card h3 { margin: 0; font-size: 14px; }
.gallery-card span { margin-top: 2px; font-size: 12px; opacity: .8; }
.season-timeline { position: relative; display: grid; gap: 0; }
.timeline-row { display: grid; grid-template-columns: 115px 20px 1fr; gap: 11px; min-height: 72px; }
.timeline-date { color: var(--ink-soft); text-align: right; font-size: 12px; padding-top: 3px; }
.timeline-dot { position: relative; }
.timeline-dot::before { content: ""; position: absolute; top: 5px; left: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.timeline-dot::after { content: ""; position: absolute; top: 18px; bottom: -5px; left: 9px; width: 1px; background: var(--line); }
.timeline-row:last-child .timeline-dot::after { display: none; }
.timeline-row h3 { margin: 0; font-size: 14px; }
.timeline-row p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }
.empty-state { padding: 40px 16px; text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.modal-layer { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,12,13,.5); }
.modal { position: relative; width: min(680px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 13px; box-shadow: 0 28px 60px rgba(0,0,0,.28); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.close-button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-muted); color: var(--ink); font-size: 20px; }
.modal-body { padding: 20px; }
.detail-score { margin: 22px 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; text-align: center; }
.detail-score strong { font-size: 19px; line-height: 1.1; }
.detail-score b { font-size: 29px; letter-spacing: -.07em; }
.detail-meta { display: grid; gap: 9px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-meta div { display: flex; justify-content: space-between; gap: 15px; }
.detail-meta span { color: var(--ink-soft); }
.detail-note { margin: 17px 0 0; white-space: pre-line; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; color: var(--ink); background: var(--surface); }
.field textarea { min-height: 96px; resize: vertical; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.form-actions .right { display: flex; gap: 9px; margin-left: auto; }
.search-results { position: fixed; z-index: 90; right: 97px; top: 63px; width: min(410px, calc(100vw - 30px)); max-height: min(500px, calc(100vh - 90px)); overflow: auto; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.search-result { width: 100%; padding: 10px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; text-align: left; }
.search-result:hover { background: var(--surface-muted); }
.search-result span { display: block; color: var(--ink-soft); font-size: 12px; }
.toast { position: fixed; z-index: 110; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px)); padding: 11px 14px; transform: translateY(15px); opacity: 0; border-radius: 8px; background: var(--black); color: #fff; pointer-events: none; transition: opacity .2s ease, transform .2s ease; font-weight: 650; font-size: 13px; }
.toast.visible { transform: translateY(0); opacity: 1; }
.head-actions { display: flex; align-items: center; gap: 9px; }
.sync-button { white-space: nowrap; }
.sync-notice { align-items: center; }
.sync-notice::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.device-card { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: -7px 0 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); animation: rise-in .28s ease both; }
.device-card div { display: grid; gap: 2px; margin-right: auto; }
.device-card span { color: var(--ink-soft); font-size: 12px; }
.device-card code { padding: 7px 9px; border-radius: 6px; background: var(--surface-muted); color: var(--red); font-size: 13px; font-weight: 750; }
#app-content > * { animation: rise-in .32s ease both; }
#app-content > *:nth-child(2) { animation-delay: .035s; }
#app-content > *:nth-child(3) { animation-delay: .07s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sideline { 0%,100% { transform: translateX(-35%); opacity: .2; } 50% { transform: translateX(35%); opacity: .8; } }
.bottom-nav, .mobile-more { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .app-main { margin-left: 0; }
  .topbar { height: 62px; padding: 0 15px; }
  .menu-trigger { display: inline-flex; padding: 7px 9px; color: var(--ink); background: var(--surface-muted); }
  .crumb span { display: none; }
  .crumb b { font-size: 15px; }
  .crumb b::before { display: none; }
  .search-box input { width: 120px; }
  .text-button { display: none; }
  #app-content { padding: 22px 15px 30px; }
  .page-head { align-items: start; }
  .page-head .primary-button { flex: 0 0 auto; }
  .head-actions { flex-wrap: wrap; justify-content: flex-end; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .lower-grid, .stats-layout { grid-template-columns: 1fr; }
  .bottom-nav { position: fixed; z-index: 70; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 5px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  .bottom-item { border: 0; color: var(--ink-soft); background: transparent; font-size: 11px; font-weight: 750; }
  .bottom-item.active { color: var(--red); }
  .mobile-more { position: fixed; z-index: 69; left: 10px; right: 10px; bottom: 69px; padding: 9px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
  .mobile-more button { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 700; }
  .game-card { grid-template-columns: 72px minmax(0, 1fr); gap: 11px; }
  .game-card .game-side { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .fixture { gap: 6px; font-size: 13px; }
  .fixture .vs-or-score { min-width: 32px; font-size: 14px; }
  .team-hero { grid-template-columns: 115px 1fr; padding: 16px; }
  .team-hero h2 { font-size: 21px; }
  .players-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .tournament-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-toolbar { grid-template-columns: repeat(2, 1fr); }
  .search-results { right: 15px; top: 56px; }
  .device-card { align-items: stretch; }
  .device-card code { width: 100%; overflow: auto; }
}
@media (max-width: 480px) {
  .topbar { gap: 9px; }
  .search-box input { width: 100px; }
  .icon-button { width: 33px; height: 33px; }
  .search-box { display: none; }
  .page-head { display: block; }
  .page-head .primary-button { margin-top: 14px; }
  .page-head .head-actions { margin-top: 14px; justify-content: flex-start; }
  .game-hero { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .team-name { font-size: 16px; }
  .training-row, .calendar-row { grid-template-columns: 65px 1fr; gap: 10px; }
  .training-row .card-actions, .calendar-row .card-actions { grid-column: 2; }
  .date-tile { padding-right: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .detail-score strong { font-size: 15px; }
  .detail-meta div { display: block; }
  .detail-meta b { display: block; margin-top: 1px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
