.basketball-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 10px 36px;
  color: #24312d;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.basketball-seo-links { margin: 12px 0; font-size: 14px; }
.basketball-seo-links a { color: #245b80; text-decoration: underline; }
.basketball-data-note { font-size: 13px; color: #46515b; }
#basketball-matches, #faq { scroll-margin-top: 90px; }

.basketball-hero,
.basketball-info,
.basketball-table-wrap {
  background: #ffffff;
  border: 1px solid #d9e2de;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(28, 45, 38, 0.07);
}

.basketball-hero {
  padding: 18px;
  margin-bottom: 16px;
  background: #f8fafc;
  line-height: 1.6;
}

.basketball-eyebrow {
  margin-bottom: 8px;
  color: #2b5f86;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.basketball-hero h1 {
  margin: 0 0 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid #3a6ea5;
  color: #203345;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.basketball-hero p,
.basketball-info p,
.basketball-empty {
  margin: 0;
  color: #34443f;
  font-size: 15px;
  line-height: 1.6;
}

.basketball-hero strong {
  color: #2b5f86;
}

.basketball-tip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.basketball-tip-grid div {
  min-height: 74px;
  padding: 12px;
  border: 1px solid #d6e3ec;
  border-radius: 8px;
  background: #ffffff;
  color: #34443f;
  font-size: 14px;
}

.basketball-tip-grid span {
  display: block;
  margin-bottom: 5px;
  color: #203345;
  font-size: 15px;
  font-weight: 700;
}

.basketball-telegram {
  margin: 18px 0;
  padding: 14px;
  text-align: center;
  background: #f4f9ff;
  border: 1px solid #dce9f9;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.basketball-telegram-title {
  color: #1b2b42;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.basketball-telegram-text {
  color: #324a62;
  font-size: 14px;
  margin-bottom: 12px;
}

.basketball-telegram .telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 50px;
  background: #0a8fd4;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(10, 143, 212, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.basketball-telegram .telegram-btn:hover {
  transform: scale(1.04);
  background: #087bb8;
  color: #ffffff;
  text-decoration: none;
}

.basketball-telegram-note {
  margin-top: 10px;
  color: #55748f;
  font-size: 12px;
  font-weight: 600;
}

.basketball-section-title {
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 4px solid #3a6ea5;
  color: #203345;
  font-size: 20px;
  font-weight: 700;
}

.basketball-table-wrap {
  overflow-x: auto;
}

.basketball-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.basketball-table th,
.basketball-table td {
  padding: 9px 8px;
  vertical-align: middle;
}

.basketball-table .basketball-league-row th {
  background: #48545d;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.basketball-table .basketball-league-row th:first-child {
  text-align: left;
}

.basketball-table tbody tr.match-stripe-even > td {
  background: #ffffff;
}

.basketball-table tbody tr.match-stripe-odd > td {
  background: #f2f4f3;
}

.basketball-table tbody tr.match-row:hover > td {
  background: #e3f5eb !important;
}

.basketball-time {
  width: 58px;
  color: #203345;
  font-weight: 600;
}

.basketball-teams {
  min-width: 330px;
}

.basketball-team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 29px;
}

.basketball-team-name {
  min-width: 130px;
  color: #22312b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.basketball-team-name:hover {
  color: #2b5f86;
  text-decoration: underline;
}

.basketball-results {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.basketball-result-block {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 23px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  cursor: default;
}

.basketball-result-block:hover::after {
  content: attr(data-hover);
  position: absolute;
  left: 50%;
  bottom: 29px;
  z-index: 10;
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 5px;
  background: #26332d;
  color: #ffffff;
  white-space: nowrap;
  font-size: 11px;
}

.basketball-result-win {
  background: #15944f;
}

.basketball-result-loss {
  background: #cf3b3b;
}

.basketball-result-draw {
  background: #d9a71c;
  color: #17261f;
}

.basketball-pick {
  min-width: 115px;
  text-align: center;
}

.basketball-pick strong {
  display: block;
  color: #087646;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

.basketball-pick span {
  display: block;
  margin-top: 3px;
  color: #6a766f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.basketball-odd {
  min-width: 64px;
  text-align: center;
  color: #24342d;
  font-weight: 600;
  white-space: nowrap;
}

.basketball-empty {
  padding: 22px;
  text-align: center;
}

.basketball-info {
  padding: 16px;
  margin-top: 18px;
  background: #fafcfb;
  line-height: 1.6;
}

.basketball-info h2 {
  margin: 0 0 8px;
  color: #203345;
  font-size: 18px;
  font-weight: 700;
}

.basketball-faq details {
  border-top: 1px solid #dce6e1;
  padding: 12px 0;
}

.basketball-faq details:first-of-type {
  border-top: 0;
}

.basketball-faq summary {
  color: #203345;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
}

.basketball-faq summary:hover {
  color: #2b5f86;
}

.basketball-faq details p {
  margin-top: 8px;
}

.basketball-note {
  background: #fff8df;
  border-color: #ead58f;
}

.basketball-note p {
  color: #5b4811;
  font-size: 13px;
}

.basket-news-section {
  margin-top: 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d9e2de;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(28, 45, 38, 0.07);
}

.basket-news-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.basket-news-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #2b5f86;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.basket-news-head h2 {
  margin: 0;
  color: #203345;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.basket-news-head p {
  margin: 0;
  color: #4b5f58;
  font-size: 14px;
  line-height: 1.55;
}

.basket-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.basket-news-card {
  overflow: hidden;
  min-width: 0;
  background: #f9fbfc;
  border: 1px solid #dde6e2;
  border-radius: 8px;
}

.basket-news-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.basket-news-image {
  aspect-ratio: 16 / 10;
  background: #e8eef2;
  overflow: hidden;
}

.basket-news-featured .basket-news-image {
  aspect-ratio: 16 / 9;
}

.basket-news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.basket-news-card:hover .basket-news-image img {
  transform: scale(1.04);
}

.basket-news-body {
  padding: 11px;
}

.basket-news-body h3 {
  margin: 0;
  color: #203345;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.basket-news-featured .basket-news-body h3 {
  font-size: 18px;
}

.basket-news-body p {
  margin: 7px 0 0;
  color: #52665e;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .basketball-page {
    padding: 10px 7px 28px;
  }

  .basketball-hero {
    padding: 14px;
  }

  .basketball-hero h1 {
    font-size: 21px;
  }

  .basketball-tip-grid {
    grid-template-columns: 1fr;
  }

  .basketball-section-title {
    font-size: 18px;
  }

  .basket-news-section {
    padding: 14px;
  }

  .basket-news-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .basket-news-head h2 {
    font-size: 19px;
  }

  .basket-news-grid {
    grid-template-columns: 1fr;
  }

  .basket-news-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .basket-news-body h3,
  .basket-news-featured .basket-news-body h3 {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .basketball-table-wrap {
    overflow: visible;
  }

  .basketball-table {
    min-width: 0;
    width: 100%;
    font-size: 11px;
  }

  .basketball-table,
  .basketball-table thead,
  .basketball-table tbody,
  .basketball-table tr,
  .basketball-table th,
  .basketball-table td {
    display: block;
  }

  .basketball-table thead {
    display: none;
  }

  .basketball-table .basketball-league-row {
    display: block;
    margin: 14px 0 8px;
  }

  .basketball-table .basketball-league-row th {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 10px;
    border-radius: 8px;
    letter-spacing: 0.3px;
  }

  .basketball-table .basketball-league-row th:nth-child(n + 2) {
    display: none;
  }

  .basketball-table .match-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 6px 4px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9e2de;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(28, 45, 38, 0.07);
    padding: 9px 8px 8px;
  }

  .basketball-table .match-row.match-stripe-odd {
    background: #f8faf9;
  }

  .basketball-table tbody tr.match-row > td,
  .basketball-table tbody tr.match-row:hover > td {
    background: transparent !important;
  }

  .basketball-table .match-row > td {
    border: none;
    padding: 0;
    min-width: 0;
  }

  .basketball-table .match-row > td::before {
    display: none;
  }

  .basketball-table td.basketball-time {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-top: 2px;
    width: auto;
  }

  .basketball-table.predict-matches-table .time-cell {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .basketball-table td.basketball-time .time {
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.2px;
    white-space: nowrap;
    color: #203345;
  }

  .basketball-table td.basketball-teams {
    grid-column: 2 / 6;
    grid-row: 1;
    min-width: 0;
  }

  .basketball-table td.basketball-pick {
    grid-column: 6;
    grid-row: 1;
    min-width: 0;
    text-align: center;
    align-self: start;
  }

  .basketball-table td.basketball-pick strong {
    display: block;
    font-size: 11px;
    line-height: 1.15;
    word-break: break-word;
  }

  .basketball-table td.basketball-pick span {
    margin-top: 1px;
    font-size: 8px;
  }

  .basketball-table td.basketball-odd {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 5px 2px;
    border-radius: 6px;
    background: #eef3f0;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
  }

  .basketball-table td.basketball-odd::before {
    display: block;
    content: attr(data-label);
    font-size: 7px;
    font-weight: 600;
    line-height: 1.1;
    color: #6a766f;
    text-transform: uppercase;
    letter-spacing: 0.2px;
  }

  .basketball-table td.basketball-odd:nth-child(4) { grid-column: 1; grid-row: 2; }
  .basketball-table td.basketball-odd:nth-child(5) { grid-column: 2; grid-row: 2; }
  .basketball-table td.basketball-odd:nth-child(6) { grid-column: 3; grid-row: 2; }
  .basketball-table td.basketball-odd:nth-child(7) { grid-column: 4; grid-row: 2; }
  .basketball-table td.basketball-odd:nth-child(8) { grid-column: 5; grid-row: 2; }
  .basketball-table td.basketball-odd:nth-child(9) { grid-column: 6; grid-row: 2; }

  .basketball-team-line {
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 20px;
  }

  .basketball-team-line + .basketball-team-line {
    margin-top: 3px;
  }

  .basketball-team-name {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 10ch;
    font-size: 10px;
    line-height: 1.2;
  }

  .basketball-results {
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .basketball-results::-webkit-scrollbar {
    display: none;
  }

  .basketball-result-block {
    flex: 0 0 auto;
    width: 24px;
    height: 16px;
    font-size: 7px;
    border-radius: 4px;
  }

  .basketball-result-block:hover::after {
    bottom: 22px;
    font-size: 10px;
    padding: 4px 6px;
  }
}

@media (max-width: 400px) {
  .basketball-table .match-row {
    gap: 5px 3px;
    padding: 8px 6px 7px;
  }

  .basketball-table td.basketball-time .time {
    font-size: 9px;
  }

  .basketball-team-name {
    max-width: 9ch;
    font-size: 9px;
  }

  .basketball-result-block {
    width: 22px;
    height: 15px;
    font-size: 6px;
  }

  .basketball-table td.basketball-pick strong {
    font-size: 10px;
  }

  .basketball-table td.basketball-odd {
    padding: 4px 1px;
    font-size: 10px;
  }

  .basketball-table td.basketball-odd::before {
    font-size: 6px;
  }
}
