.magma-tournaments,.magma-coaching { padding: 10px 0 20px; }
.mt-toolbar,.mt-detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.mt-toolbar > div > p,.mt-detail-top > div > p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.mt-toolbar > div:last-child:has(.btn) { display: flex; flex-wrap: wrap; gap: 10px; }
.mt-toolbar .btn,.mt-pagination .btn { min-height: 44px; }
.mt-tournament-list { border-top: 1px solid var(--line); }
.mt-tournament-row { display: flex; align-items: center; gap: 24px; width: 100%; padding: 25px 0; border-bottom: 1px solid var(--line); text-align: start; }
.mt-tournament-row:hover .mt-tournament-info > strong { text-decoration: underline; text-underline-offset: 5px; }
.mt-tournament-date { color: var(--primary); font-size: 13px; line-height: 1.6; width: 120px; flex: 0 0 120px; font-variant-numeric: tabular-nums; }
.mt-tournament-info { display: grid; gap: 7px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mt-tournament-info > strong { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.mt-tournament-info > span,.mt-tournament-info > small { color: var(--muted); font-size: 13px; }
.mt-status,.mc-status { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 7px 10px; border-radius: 6px; color: var(--primary); background: var(--surface-2); font-size: 12px; line-height: 1.4; }
.mt-status.is-live { background: var(--lime-soft); }
.mt-empty { padding: 42px 0; max-width: 65ch; }
.mt-empty h2 { font-size: 26px; }
.mt-empty p { margin-top: 14px; font-size: 14px; color: var(--muted); }
.mt-empty .btn { margin-top: 24px; min-height: 44px; }
.mt-loading { padding: 30px 0; color: var(--muted); font-size: 14px; }
.mt-error { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 24px; color: var(--danger); font-size: 14px; }
.mt-rules { border-top: 1px solid var(--line); margin-top: 38px; padding: 22px 0; max-width: 75ch; }
.mt-rules > summary { cursor: pointer; min-height: 44px; align-content: center; font-size: 15px; font-weight: 600; }
.mt-rules > p { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.mt-rules > summary:focus-visible,.mt-table-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.mt-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.mt-pagination > span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mt-detail-top h1 { overflow-wrap: anywhere; }
.mt-organiser-note { max-width: 70ch; margin-bottom: 22px; color: var(--muted); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mt-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; padding: 16px 0; border-block: 1px solid var(--line); }
.mt-progress > span { color: var(--muted); margin-inline-start: auto; }
.mt-section { margin-top: 34px; min-width: 0; }
.mt-section > h2 { margin-bottom: 20px; }
.mt-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.mt-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mt-table th,.mt-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.mt-table thead th { color: var(--muted); font-size: 12px; font-weight: 500; background: var(--surface); }
.mt-table .mt-team-name { min-width: 220px; max-width: 340px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.mt-table-hint { display: none; }
.mt-round { padding-top: 8px; margin-top: 22px; }
.mt-round > h3 { font-size: 15px; color: var(--primary); }
.mt-round-rest { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.mt-round > ol { list-style: none; margin: 8px 0 0; padding: 0; }
.mt-round li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mt-round li.is-notification-target { background: var(--lime-soft); border-radius: 8px; padding-inline: 14px; outline: 2px solid var(--primary); outline-offset: 3px; scroll-margin-block: 110px; }
.mt-match-teams { display: grid; gap: 10px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.mt-match-score { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-match-score > span { display: inline-block; max-width: 100px; font-size: 12px; font-weight: 400; color: var(--muted); white-space: normal; text-align: end; }
.mt-match-score > .mt-rating-state { display: block; max-width: 160px; font-size: 11px; font-weight: 400; line-height: 1.55; color: var(--muted); white-space: normal; text-align: end; margin-top: 7px; }
.mt-match-score > .mt-rating-state.is-confirmed { color: var(--primary); }
.mt-roster { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.mt-roster li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mt-player-level { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 6px; }
.mt-admission { font-size: 11px; color: var(--primary); text-align: end; }
.mc-teaser { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 24px; background: var(--lime-soft); border-radius: 12px; margin: 24px 0; }
.mc-teaser h2 { font-size: 25px; }
.mc-teaser p { color: var(--primary); font-size: 14px; max-width: 60ch; margin-top: 12px; }
.mc-teaser small { display: block; color: var(--primary); font-size: 12px; margin-top: 13px; line-height: 1.65; }
.mc-teaser > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex-shrink: 0; }
.mc-teaser .btn,.mc-teaser .text-btn { min-height: 44px; }
.mc-form-section { max-width: 760px; }
.mc-form-section > h2 { font-size: 25px; }
.mc-form-section > p { margin-top: 15px; font-size: 14px; color: var(--muted); }
.mc-request-form { margin-top: 28px; }
.mc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mc-request-form label { display: grid; gap: 10px; font-size: 13px; font-weight: 550; }
.mc-request-form > label { margin-top: 24px; }
.mc-request-form input,.mc-request-form select,.mc-request-form textarea { min-width: 0; width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); color: var(--ink); caret-color: var(--primary); font: inherit; font-size: 14px; line-height: 1.5; }
.mc-request-form textarea { resize: vertical; }
.mc-request-form small { color: var(--muted); font-size: 12px; line-height: 1.6; font-weight: 400; }
.mc-limits { color: var(--muted); font-size: 12px; margin-top: 22px; }
.mc-error { font-size: 14px; color: var(--danger); margin-top: 18px; }
.mc-form-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.mc-form-actions > button { min-height: 46px; }
.mc-history { margin: 0; padding: 0; list-style: none; }
.mc-history > li { padding: 26px 0; border-top: 1px solid var(--line); }
.mc-request-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.mc-request-heading h2 { font-size: 22px; }
.mc-request-heading p,.mc-request-facts { color: var(--muted); font-size: 13px; margin-top: 11px; }
.mc-request-note { margin: 18px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.mc-history .text-btn { min-height: 44px; margin-top: 10px; }
.mc-confirmed-note { color: var(--primary); font-size: 13px; margin-top: 17px; }
.mc-status.is-cancelled { color: var(--muted); }
@media (max-width: 767px) {
  .mt-toolbar,.mt-detail-top { flex-wrap: wrap; gap: 18px; margin-bottom: 25px; }
  .mt-toolbar h1,.mt-detail-top h1 { font-size: 28px; }
  .mt-toolbar > div > p { font-size: 13px; }
  .mt-tournament-row { gap: 12px; flex-wrap: wrap; padding: 22px 0; }
  .mt-tournament-date { width: 100%; flex-basis: 100%; font-size: 12px; }
  .mt-tournament-info > strong { font-size: 21px; }
  .mt-tournament-info > span,.mt-tournament-info > small { font-size: 12px; }
  .mt-tournament-row > svg { display: none; }
  .mt-status,.mc-status { font-size: 11px; padding: 6px 8px; }
  .mt-progress > span { width: 100%; margin: 3px 0 0; font-size: 12px; }
  .mt-roster { grid-template-columns: 1fr; }
  .mt-round li { gap: 15px; }
  .mt-match-teams { font-size: 13px; }
  .mt-match-score { font-size: 20px; }
  .mt-table th,.mt-table td { padding-inline: 10px; }
  .mt-table .mt-team-name { min-width: 180px; max-width: 220px; }
  .mt-table-hint { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
  .mc-teaser { flex-direction: column; align-items: flex-start; gap: 19px; padding: 22px; }
  .mc-teaser > div:last-child { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
  .mc-teaser h2 { font-size: 24px; }
  .mc-form-grid { grid-template-columns: 1fr; gap: 21px; }
  .mc-request-form input,.mc-request-form select,.mc-request-form textarea { font-size: 16px; }
  .mc-request-heading { flex-direction: column; gap: 14px; }
  .mc-request-heading h2 { font-size: 21px; }
  .mc-form-actions { gap: 12px 20px; }
}
