
    /*
      ДЕРБИ — главная страница
      ------------------------------------------------------------
      Каркас: div/grid/flex
      Табличные данные: table/tr/td можно вставлять внутрь .card
      PHP: блоки можно подключать/убирать через include и условия
    */

    :root {
      --site-width: 1180px;
      --accent: #f4860b;
      --accent-hover: #ff9b25;
      --green: #82d957;
      --red: #ff5d5d;
      --yellow: #ffd25a;
      --blue: #58a6ff;
      --radius: 9px;

      --text: #16202a;
      --muted: #6f7b86;
      --bg: #edf2f5;
      --panel: rgba(255,255,255,.92);
      --panel-strong: rgba(255,255,255,.98);
      --panel-soft: rgba(255,255,255,.72);
      --line: rgba(0,0,0,.10);
      --line-soft: rgba(0,0,0,.06);
      --shadow: 0 14px 34px rgba(24,36,50,.14);
      --body-tint: linear-gradient(rgba(245,248,251,.78), rgba(245,248,251,.84));
    }

    html[data-theme="dark"] {
      --text: #eff6fb;
      --muted: #9aa8b4;
      --bg: #071018;
      --panel: rgba(8,20,29,.84);
      --panel-strong: rgba(8,20,29,.95);
      --panel-soft: rgba(9,23,33,.64);
      --line: rgba(255,255,255,.14);
      --line-soft: rgba(255,255,255,.075);
      --shadow: 0 16px 42px rgba(0,0,0,.42);
      --body-tint: linear-gradient(rgba(3,8,12,.34), rgba(3,8,12,.55));
    }

@font-face {
  font-family: 'Blogger Sans';
  src: url('/css/Blogger-Sans.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      font: 14px/1.42 'Blogger Sans', Arial, Tahoma, Verdana, sans-serif;
      letter-spacing: 0.35px;
      background:
        var(--body-tint),
        url("/image/fon_2026.png") center top / cover fixed no-repeat;
    }

    a { color: inherit; text-decoration: none; }
    a:hover { color: var(--accent); }
    img { max-width: 100%; }
    button { font: inherit; }

.page-one-margin-top {
  margin-top: 14px;
}

.form-select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--text);
    padding: 0 12px;
}

/*Картинка в конетнте слева*/
.content-with-image {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.content-with-image img {
    width: 220px;
    border-radius: 10px;
    flex-shrink: 0;
}

@media (max-width: 680px) {
    .content-with-image {
        flex-direction: column;
    }

    .content-with-image img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

    .page {
      width: min(var(--site-width), calc(100% - 0px));
      margin: 0 auto;
      padding: 10px 0 26px;
    }

    .theme-line {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .theme-btn {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 7px 13px;
      color: var(--text);
      background: var(--panel);
      cursor: pointer;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      box-shadow: var(--shadow);
    }

    .theme-btn.is-active {
      color: #fff;
      background: linear-gradient(180deg, #ff9b25, #df6b00);
      border-color: rgba(255,255,255,.25);
    }


    .glass,
    .topbar,
    .notice,
    .calendar,
    .card,
    .cta,
    .footer {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
    }
    .footer-theme {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.footer-theme .theme-btn {
  box-shadow: none;
  padding: 6px 10px;
  font-size: 11px;
}

.text-center { text-align:center; }
.text-left { text-align:left; }
.text-right { text-align:right; }

.flex-center {
    display:flex;
    justify-content:center;
    align-items:center;
}

    .topbar { overflow: hidden; }

    .topbar-main {
      min-height: 72px;
      display: grid;
      grid-template-columns: 100px 1fr auto;
      align-items: center;
      gap: 18px;
      padding: 6px 13px;
    }

    .logo {
      color: var(--accent);
      font-size: 30px;
      font-weight: 950;
      line-height: .95;
      letter-spacing: .02em;
    }

    .logo small {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0;
    }

    .logo-img {
  display: flex;
  align-items: center;
}

.logo-img img {
  width: 100px;
  height: auto;
}

.error-box {
    text-align: center;
    padding: 30px 20px;
}

.error-box i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 12px;
}

.error-box h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.error-box p {
    margin: 0;
    color: var(--muted);
}

.derbi-message {
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
}

.derbi-message-success {
    background: rgba(46, 125, 50, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.derbi-message__icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.derbi-message__title {
    font-size: 22px;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 15px;
}

.derbi-message__text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.derbi-message__actions {
    margin-top: 20px;
}

    .main-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .main-nav a {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      min-width: 54px;
      color: var(--text);
    }

    .main-nav i {
      font-style: normal;
      font-size: 20px;
      line-height: 1;
      color: rgba(255,255,255,.90);
    }

    html[data-theme="light"] .main-nav i { color: #27313b; }

    .user-tools {
      display: flex;
      align-items: center;
      gap: 12px;
      white-space: nowrap;
    }

    .icon-link {
      position: relative;
      font-size: 20px;
      line-height: 1;
    }

/*Кнопка Войти в шапке для гостя с мобилки*/
.mobile-login-btn { display: none; }
.mobile-actions { display: none; }
/*Кнопка Войти в шапке для гостя с мобилки*/

/*Ссылки регистрации и авторизации в меню. */
.guest-auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 14px 14px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    transition: .15s;
}

.auth-link i {
    font-size: 14px;
}

/* Войти */

.auth-link-login {
    color: var(--text);
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
}

.auth-link-login:hover {
    background: rgba(255,255,255,.10);
    color: var(--text);
}

/* Регистрация */

.auth-link-register {
    color: #fff;
    background: linear-gradient(180deg, #ff9b25, #df6b00);
    box-shadow: 0 8px 18px rgba(244,134,11,.22);
}

.auth-link-register:hover {
    color: #fff;
    filter: brightness(1.05);
}




.message-btn {
  border-radius: 8px;
  background: linear-gradient(180deg, #ff9b25, #df6b00);
  padding: 6px;
  box-shadow: 0 8px 18px rgba(244,134,11,.25);
}

.message-btn:hover {
  color: #fff;
  filter: brightness(1.06);
}

.message-btn b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b3b;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

    .bubble {
      position: absolute;
      top: -8px;
      right: -8px;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      border-radius: 999px;
      color: #fff;
      background: var(--accent);
      font-size: 10px;
      line-height: 16px;
      text-align: center;
      font-weight: 900;
    }

    .profile-mini {
      display: flex;
      align-items: center;
      gap: 9px;
    }
.profile-info {
  display: flex;
  flex-direction: column;
}

    .avatar {
      width: 70px;
      height: 70px;
      border-radius: 7px;
      object-fit: cover;
      border: 1px solid var(--line);
      background: var(--panel-soft);
    }

    .profile-mini b { display: block; font-size: 12px; }
    .profile-mini small { display: block; color: var(--muted); font-size: 11px; }

    .club-logo {
      width: 70px;
      height: 70px;
      object-fit: contain;
      border-radius: 6px;
      padding: 3px;
      background: var(--panel-soft);
      border: 1px solid var(--line-soft);
    }

    .topbar-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 28px;
      align-items: center;
      padding: 10px 18px;
      border-top: 1px solid var(--line-soft);
      color: var(--muted);
      font-size: 12px;
    }

    .topbar-stats b { color: var(--text); }
    .topbar-stats .date { margin-left: auto; }

    .notice {
      margin-top: 12px;
      min-height: 46px;
      display: grid;
      grid-template-columns: 1fr auto auto;
      align-items: center;
      gap: 14px;
      padding: 10px 14px;
      border-color: rgba(244,134,11,.55);
      background: linear-gradient(90deg, rgba(244,134,11,.20), var(--panel));
    }

    .notice-text {
      display: flex;
      align-items: center;
      gap: 11px;
      font-size: 15px;
      font-weight: 800;
    }

    .notice-icon { font-size: 22px; }
    .notice-close { color: var(--muted); cursor: pointer; }

    .calendar {
      margin-top: 5px;
      display: grid;
      grid-template-columns: repeat(7, 1fr) 150px;
      overflow: hidden;
    }

    .calendar-day,
    .calendar-more {
      min-height: 68px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      border-right: 1px solid var(--line-soft);
      color: var(--muted);
    }

    .calendar-day b {
      color: var(--text);
      font-size: 22px;
      line-height: 1;
    }

    .calendar-day span { font-size: 12px; }
    .calendar-day small { font-size: 11px; }

    .calendar-day.is-active {
      color: var(--accent);
      background: rgba(244,134,11,.13);
      box-shadow: inset 0 0 0 1px rgba(244,134,11,.50);
    }

    .calendar-more {
      color: var(--accent);
      font-weight: 900;
      border-right: 0;
    }

    .calendar-day-match {
    position: relative;
}

.calendar-club-logo {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: .85;
}

.grid-main {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

.grid-bottom {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

    .card { overflow: hidden; }

    .card-head {
      min-height: 43px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 11px 13px;
      border-bottom: 1px solid var(--line-soft);
      background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,0));
    }

    .card-title {
      margin: 0;
      font-size: 15px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .02em;
    }

    .card-link {
      color: var(--accent);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .card-body { padding: 12px 13px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 0 18px;
      border: 0;
      border-radius: 7px;
      color: #fff;
      background: linear-gradient(180deg, #ff9b25, #df6b00);
      box-shadow: 0 8px 18px rgba(244,134,11,.25);
      font-weight: 900;
      cursor: pointer;
    }

    .btn:hover { color: #fff; filter: brightness(1.06); }
    .btn-small { min-height: 30px; padding: 0 12px; font-size: 12px; }

    .text-muted { color: var(--muted); }
    .text-green { color: var(--green); }
    .text-red { color: var(--red); }
    .text-accent { color: var(--accent); }

    /* Matches */

    .match-list { display: grid; }

.match-row {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;

    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

    .match-row:last-child { border-bottom: 0; }

.match-content {
    text-align: center;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .match-time { color: var(--muted); font-size: 11px; }

.match-league {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}


.club-emblem {
  display: inline-block;
  vertical-align: middle;
}

.club-emblem-20 {
    width: 20px;
    height: 20px;
}
.club-emblem-25 {
    width: 25px;
    height: 25px;
}

.club-emblem-50 {
    width: 50px;
    height: 50px;
}

.club-emblem-100 {
    width: 100px;
    height: 100px;
}

    .inline-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

    .team {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .mini-team {
    display: flex;
    align-items: center;
    gap: 7px;
}

    .team img { width: 25px; height: 25px; object-fit: contain; flex: 0 0 auto; }
    .team b { display: block; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .team small { display: block; color: var(--muted); font-size: 11px; }
    .vs { color: var(--muted); font-size: 11px; text-align: center; }

    /* News */

    .news-list { display: grid; }

    .news-row {
      display: grid;
      grid-template-columns: 32px 1fr auto;
      gap: 10px;
      align-items: start;
      padding: 11px 0;
      border-bottom: 1px solid var(--line-soft);
    }

    .news-row:last-child { border-bottom: 0; }
    .news-row img { width: 28px; height: 28px; object-fit: contain; }
    .news-row b { display: block; font-size: 14px; }
    .news-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
    .news-row-no-img {
    grid-template-columns: 1fr auto;
}
    .news-plus { color: var(--green); font-size: 12px; white-space: nowrap; }

    /* Quick actions */

    .quick-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-left: 1px solid var(--line-soft);
      border-top: 1px solid var(--line-soft);
    }

    .quick-item {
      min-height: 82px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 7px;
      border-right: 1px solid var(--line-soft);
      border-bottom: 1px solid var(--line-soft);
      font-size: 12px;
      font-weight: 800;
      text-align: center;
    }

    .quick-item span {
      color: var(--accent);
      font-size: 26px;
      line-height: 1;
      filter: drop-shadow(0 0 8px rgba(244,134,11,.20));
    }

    .quick-item:hover { background: rgba(244,134,11,.075); }

    /* БЛОК БЫСТРЫХ КНОПОК МЕНДЖЕР НА ГЛАВНОЙ СТРАНИЦЕ */
.quick-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.quick-strip-item {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.quick-strip-item:last-child {
  border-right: 0;
}

.quick-strip-item i {
  color: var(--muted);
  font-size: 17px;
  transition: .15s;
}

.quick-strip-item:hover i {
  color: var(--accent);
}

.quick-strip-item:hover {
  background: rgba(244,134,11,.08);
}
/* БЛОК БЫСТРЫХ КНОПОК МЕНДЖЕР НА ГЛАВНОЙ СТРАНИЦЕ */

    /* Teams / mini lists */

    .team-list,
    .mini-list { display: grid; }

    .free-team {
      display: grid;
      grid-template-columns: 26px 1fr auto;
      gap: 9px;
      align-items: center;
      padding: 9px 0;
      border-bottom: 1px solid var(--line-soft);
    }

    .free-team:last-child { border-bottom: 0; }
    .free-team small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
    .flag { font-size: 20px; }
    .price { color: var(--green); font-weight: 900; white-space: nowrap; }

    .mini-row {
      display: grid;
      grid-template-columns: 22px 1fr auto;
      gap: 8px;
      align-items: center;
      min-height: 26px;
      font-size: 13px;
      border-bottom: 1px solid var(--line-soft);
      padding: 5px 0;
    }

.transfer-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 110px 120px;
    gap: 10px;
    align-items: center;

    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.transfer-row a,
.transfer-player {
    display: flex;
    align-items: center;
    gap: 6px;
}

.transfer-date {
    text-align: center;
    white-space: nowrap;
    color:gray;
}

.transfer-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
}

    /* Tables — можно использовать в любых карточках */


    .table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255,255,255,.08);
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.table-wrap::after {
    display: none;
  }



    .derbi-table {
      width: 100%;
      min-width: 520px;
      border-collapse: collapse;
    }

    .derbi-table th,
    .derbi-table td {
      padding: 9px 10px;
      border-bottom: 1px solid var(--line-soft);
      text-align: left;
      white-space: nowrap;
    }

    .derbi-table th {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      background: rgba(255,255,255,.045);
    }

    .derbi-table tr:hover td { background: rgba(244,134,11,.055); }

    /* Guest blocks */

    .guest-intro {
      display: grid;
      grid-template-columns: 150px 1fr;
      min-height: 220px;
      overflow: hidden;
    }

    .guest-image {
      background:
        linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.15)),
        url("/image/index/welcome_guest.png") center / cover no-repeat;
    }

    .guest-text { padding: 22px 20px; }
    .guest-text h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.14; }
    .guest-text p { margin: 0 0 18px; color: var(--muted); }

    .feature-list { display: grid; }

    .feature-row {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 11px;
      padding: 11px 0;
      border-bottom: 1px solid var(--line-soft);
    }

    .feature-row:last-child { border-bottom: 0; }
    .feature-row i { color: var(--accent); font-size: 25px; font-style: normal; }
    .feature-row b { display: block; }
    .feature-row small { color: var(--muted); }

    /* CTA + Footer */

    .cta {
      position: relative;
      margin-top: 14px;
      min-height: 100px;
      display: grid;
      grid-template-columns: 1fr auto 250px;
      gap: 20px;
      align-items: center;
      padding: 18px 26px;
      overflow: hidden;
    }

    .cta::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("derbi-stadium-bg.jpg") center 65% / cover no-repeat;
      opacity: .32;
      pointer-events: none;
    }

    .cta > * { position: relative; }
    .cta h2 { margin: 0; font-size: 27px; line-height: 1.12; font-weight: 500; text-transform: uppercase; }

    .online-box {
      justify-self: end;
      min-width: 220px;
      display: grid;
      grid-template-columns: 50px 1fr;
      gap: 12px;
      align-items: center;
      padding: 12px 15px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel-soft);
    }

    .online-ball { font-size: 38px; }
    .online-box b { display: block; margin-bottom: 4px; }

    .footer {
      margin-top: 14px;
      min-height: 70px;
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 15px 18px;
      color: var(--muted);
      font-size: 12px;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      margin-left: auto;
    }

    .socials { display: flex; gap: 9px; }

    .social {
      width: 34px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 6px;
      background: var(--panel-soft);
      border: 1px solid var(--line-soft);
      font-weight: 900;
    }

    .store {
      width: 116px;
      height: 36px;
      display: grid;
      place-items: center;
      color: #fff;
      background: #050505;
      border-radius: 7px;
      font-weight: 900;
    }


.mobile-menu-btn,
.mobile-menu-overlay,
.mobile-drawer {
  display: none;
}

/* Решение для планшетов - если колонок 2, оставляем 2, если 3, то на весь экран все. Есть и в 1080px */
.grid-two {
  grid-template-columns: repeat(2, 1fr);
}

.wide-block {
  margin-top: 12px;
  width: 100%;
}


.roster-table { min-width: 860px; font-size: 13px; }
.roster-table th, .roster-table td { text-align: center; }
.roster-table th.player-col, .roster-table td.player-col { text-align: left; min-width: 50px; }
.roster-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel-strong);
}

.roster-table .sticky-player {
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--panel-strong);
  box-shadow: 8px 0 12px rgba(0,0,0,.18);
}

.roster-table th.sticky-player {
  z-index: 7;
}





    /* Auth / guest visibility */

    .only-auth,
    .only-guest { display: none; }
    body.is-auth .only-auth { display: block; }
    body.is-auth .only-auth.grid { display: grid; }
    body.is-guest .only-guest { display: block; }
    body.is-guest .only-guest.grid { display: grid; }
    body.is-guest .auth-stat { display: none; }

    /* Responsive */

    @media (max-width: 1080px) {
      .topbar-main { grid-template-columns: 1fr; }
      .main-nav { justify-content: flex-start; flex-wrap: wrap; }
      .user-tools { justify-content: space-between; flex-wrap: wrap; }
      .calendar { grid-template-columns: repeat(4, 1fr); }
      .grid-main { grid-template-columns: 1fr; }
      .grid-two { grid-template-columns: repeat(2, 1fr); }
       .grid-main > *,
  .grid-bottom > * {
    grid-column: auto !important;
  }
      .grid-bottom { grid-template-columns: repeat(2, 1fr); }
      .cta { grid-template-columns: 1fr; }
      .online-box { justify-self: stretch; }
    }

    @media (max-width: 768px) {
      .page { width: min(100% - 14px, var(--site-width)); padding-top: 9px; }
      .theme-line { justify-content: stretch; }
      .theme-btn { flex: 1; }

.roster-table { min-width: 860px; }

/*Меню для мобильных*/
 .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 40px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: var(--panel-soft);
    font-size: 18px;
    cursor: pointer;
  }

  .topbar {
    position: sticky;
    top: 6px;
    z-index: 70;
    transition: .2s ease;
  }

  .topbar-main {
    grid-template-columns: 1fr auto;
    align-items: center;
    transition: .2s ease;
  }

   body.header-compact .topbar-main {
    min-height: 48px;
    padding: 7px 12px;
  }

  body.header-compact .logo-img img {
    max-width: 34px;
    max-height: 34px;
  }

  body.header-compact .topbar-stats {
    display: none;
  }

  .main-nav {
    display: none;
  }
  .user-tools {
  display: none;
}

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0,0,0,.55);
  }

  .mobile-menu-overlay.is-open {
    display: block;
  }

  .mobile-drawer {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: min(310px, 86vw);
    height: 100vh;
    display: block;
    transform: translateX(-105%);
    transition: transform .22s ease;
    background: var(--panel-strong);
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 38px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
  }

  .mobile-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-drawer-head {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .mobile-drawer-head button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    background: var(--panel-soft);
    cursor: pointer;
  }

  .mobile-drawer-nav {
    display: grid;
    padding: 10px;
  }

  .mobile-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 800;
  }

  .mobile-drawer-nav a:hover {
    background: rgba(244,134,11,.10);
  }

  .mobile-drawer-nav i {
    width: 20px;
    color: var(--muted);
    text-align: center;
  }
  /*Меню для мобильных*/



  /*Главная: Блок Трансферы*/
.transfer-row {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 10px 0;
}

.transfer-player {
  font-weight: 800;
}

.transfer-from,
.transfer-to,
.transfer-date,
.transfer-price,
.transfer-arrow {
  text-align: left;
}

.transfer-arrow {
  display: none;
}

.transfer-from::before {
  content: "Из клуба: ";
  color: var(--muted);
}

.transfer-to::before {
  content: "В клуб: ";
  color: var(--muted);
}

.transfer-date::before {
  content: "Дата: ";
  color: var(--muted);
}

.transfer-price::before {
  content: "Сумма: ";
  color: var(--muted);
}
/*Главная: Блок Трнасферы*/

/*footer*/
.footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: center;
}

.footer-links,
.socials,
.footer-theme {
  justify-content: center;
}

.footer-links {
  margin-left: 0;
}

.store,
.footer .btn {
  width: 100%;
}

.footer-theme {
  display: flex;
  gap: 8px;
}

.footer-theme .theme-btn {
  flex: 1;
}
/*footer*/

/*Скрываем подсказку прокрутить таблицу при скролле на ПК*/
  .table-wrap {
  position: relative;
}

.table-wrap::after {
  content: "← прокрутите таблицу →";
  display: block;
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}


/*Кнопка Войти на мобилке в меню верхнем*/
      .mobile-login-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
      .mobile-actions { display: inline-flex; }
/*Кнопка Войти на мобилке в меню верхнем*/

      .topbar-stats .date { margin-left: 0; }
      .notice { grid-template-columns: 1fr auto; }
      .notice .card-link { grid-column: 1 / -1; }

      /*Календарь с мобилки на главной */
      /*.calendar { grid-template-columns: repeat(2, 1fr); }*/
.calendar {
    grid-template-columns: repeat(3, 1fr);
  }

  .calendar .calendar-day:nth-of-type(n+4) {
    display: none;
  }

  .calendar-more {
    flex-direction: row;
    gap: 12px;
    grid-column: 1 / -1;
  }
      /*Календарь с мобилки на главной */

      .grid-main, .grid-bottom { grid-template-columns: 1fr; }
      .match-row { grid-template-columns: 48px 1fr; }
      .match-row .vs { display: none; }
      .quick-grid { grid-template-columns: repeat(2, 1fr); }
      .quick-strip { grid-template-columns: repeat(3, 1fr); }
      .quick-strip-item { border-bottom: 1px solid var(--line-soft); }
      .guest-intro { grid-template-columns: 1fr; }
      .guest-image { min-height: 160px; }
      .cta h2 { font-size: 23px; }
      .footer { flex-wrap: wrap; }
      .footer-links { margin-left: 0; width: 100%; }
    }

