/* Тренеры — обновлённый вид (только .treaners-v2-page) */

html:has(.treaners-v2-page) {
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.treaners-v2-page {
  margin: 0 !important;
  background: linear-gradient(165deg, #120a1a 0%, #0a0610 40%, #181028 100%);
  color: #e8e4f0;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
}

.treaners-v2-page #navbar a {
  color: #c8f4ff;
}

.treaners-v2-wrap {
  padding-bottom: 3rem;
}

.treaners-v2-intro {
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(220, 155, 61, 0.25);
}

.treaners-v2-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 5vw, 2.05rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.treaners-v2-lead {
  margin: 0;
  max-width: 40em;
  color: rgba(232, 228, 240, 0.88);
  font-size: clamp(15px, 3.6vw, 18px);
  line-height: 1.55;
}

.treaners-v2-lead a {
  color: #dc9b3d;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 155, 61, 0.45);
}

.treaners-v2-lead a:hover {
  color: #f0b85a;
  border-bottom-color: #f0b85a;
}

.treaners-v2-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 1rem;
}

.treaners-v2-page #myInput {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  padding: 13px 16px;
  font-size: 17px;
  border: 1px solid rgba(170, 188, 254, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  box-sizing: border-box;
}

.treaners-v2-page #myInput::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.treaners-v2-page #myInput:focus {
  outline: none;
  border-color: #dc9b3d;
  box-shadow: 0 0 0 3px rgba(220, 155, 61, 0.2);
}

.treaners-v2-page #change.togle-but1,
.treaners-v2-page .menu-toggle2.all-but {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 44px;
  padding: 10px 16px !important;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 0.02em !important;
  border-radius: 10px;
  border: 1px solid rgba(220, 155, 61, 0.5);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.treaners-v2-page #change.togle-but1 {
  background: linear-gradient(135deg, #5c2d8a 0%, #3d1f5c 100%);
  color: #fff;
}

.treaners-v2-page #change.togle-but1:hover {
  border-color: #dc9b3d;
}

.treaners-v2-page .menu-toggle2.all-but {
  background: rgba(0, 0, 0, 0.35);
  color: #dc9b3d;
}

.treaners-v2-page .menu-toggle2.all-but:hover {
  background: rgba(103, 58, 183, 0.35);
}

.treaners-v2-page .butt_cont {
  font-size: 16px !important;
  margin-bottom: 1rem !important;
  padding: 14px !important;
  background: rgba(0, 0, 0, 0.38) !important;
  border: 1px solid rgba(170, 188, 254, 0.22) !important;
  border-radius: 12px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.treaners-v2-page .sub-but {
  width: 100% !important;
  max-width: 100%;
  padding: 14px 18px !important;
  margin: 12px 0 8px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border: none !important;
  border-radius: 8px;
  background: linear-gradient(90deg, #673ab7 0%, #4a148c 100%) !important;
  color: #fff !important;
  cursor: pointer;
  text-align: left;
}

.treaners-v2-page .sub-but:hover {
  filter: brightness(1.08);
}

.treaners-v2-page .gem-menu,
.treaners-v2-page .char-menu,
.treaners-v2-page .move-menu,
.treaners-v2-page .sub-menu,
.treaners-v2-page .other-menu {
  font-size: 16px !important;
  margin-bottom: 50px !important;
  padding: 4px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.treaners-v2-page .togle-but {
  width: auto !important;
  min-height: 44px;
  padding: 10px 14px !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.3;
  border-radius: 8px !important;
  border: 1px solid rgba(170, 188, 254, 0.28) !important;
  background: rgba(103, 58, 183, 0.25) !important;
  color: #e8e4f0 !important;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.treaners-v2-page .togle-but:hover {
  background: rgba(103, 58, 183, 0.45) !important;
  border-color: rgba(220, 155, 61, 0.45) !important;
}

.treaners-v2-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(170, 188, 254, 0.2);
  background: rgba(0, 0, 0, 0.22);
  margin-top: 4px;
}

.treaners-v2-page #sheet0 {
  width: 100%;
  min-width: 280px;
  border-collapse: separate;
  border-spacing: 0;
}

.treaners-v2-page #sheet0 tr.row0 {
  transition: background 0.15s;
}

.treaners-v2-page #sheet0 tr.row0:not(.hidden):hover {
  background: rgba(103, 58, 183, 0.12);
}

.treaners-v2-page #sheet0 tr.row0 + tr.row0 td {
  border-top: 1px solid rgba(170, 188, 254, 0.12) !important;
}

.treaners-v2-page #sheet0 td {
  border: none !important;
  font-size: clamp(15px, 2.4vw, 18px) !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  color: rgba(232, 228, 240, 0.95) !important;
  background: transparent !important;
  padding: 16px 18px !important;
  vertical-align: top !important;
  text-align: left !important;
  line-height: 1.55 !important;
}

.treaners-v2-page #sheet0 td.column0 {
  font-weight: 600 !important;
  font-size: clamp(16px, 2.6vw, 19px) !important;
  color: #fff !important;
  border-left: 3px solid #dc9b3d !important;
  background: rgba(103, 58, 183, 0.14) !important;
  min-width: 180px;
  max-width: 34%;
}

.treaners-v2-page #sheet0 td.column1 {
  color: rgba(232, 228, 240, 0.9) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  max-height: none;
  -webkit-line-clamp: unset;
}

.treaners-v2-page #sheet0 td.column1 img.plate-mod {
  height: 1.15em;
  width: auto;
  vertical-align: -0.15em;
  margin: 0 1px;
}

.treaners-v2-page #sheet0 td img {
  max-width: min(152px, 46vw);
  width: auto;
  height: auto;
  border-radius: 10px;
  margin-top: 12px;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.treaners-v2-page .hidden {
  display: none !important;
}

.treaners-v2-page .btn-up {
  background: linear-gradient(135deg, #673ab7, #4a148c) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border-radius: 12px !important;
}

@media (max-width: 720px) {
  .treaners-v2-page #sheet0,
  .treaners-v2-page #sheet0 tbody {
    display: block;
    width: 100%;
  }

  .treaners-v2-page #sheet0 tr.row0 {
    display: block;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(170, 188, 254, 0.2);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
  }

  .treaners-v2-page #sheet0 tr.row0 td {
    display: block;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  .treaners-v2-page #sheet0 td.column0 {
    border-left: none !important;
    border-bottom: 1px solid rgba(220, 155, 61, 0.35) !important;
    padding-bottom: 12px !important;
  }

  .treaners-v2-page #sheet0 td.column1 {
    padding-top: 12px !important;
  }

  .treaners-v2-page #sheet0 tr.row0 + tr.row0 td {
    border-top: none !important;
  }
}
