
/* --- olegtix-block-league_matches_tabs --- */
.block-lm-tabs {
  margin-bottom: 16px;
}

.block-lm-tabs__title {
  font-size: 24px;
  font-weight: 700;
  color: #232323;
  margin: 0 0 16px;
}

.block-lm-tabs .sport-tabs {
  margin: 0 0 16px;
}

.block-lm-tabs .sort-btn:not(.sort-btn--active) {
  background: transparent;
  color: var(--text);
}

.block-lm-tabs .sort-btn--active {
  background-color: var(--white);
  color: var(--primary);
}

.block-lm-tabs__panels {
  min-height: 100px;
}

.block-lm-tabs__panel {
  display: none;
}

.block-lm-tabs__panel--active {
  display: block;
}

.block-lm-tabs__panel .matches-table {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 4px;
  margin-bottom: 16px;
}

.block-lm-tabs__panel .matches-table:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .block-lm-tabs__panel .matches-table {
    background: transparent;
    padding: 0;
  }
}


/* --- olegtix-block-expert_predictions --- */
.block-expert-predictions {
  margin-bottom: 16px;
}

.block-expert-predictions .dates-header {
  margin-bottom: 16px;
}

.block-expert-predictions .sport-tabs {
  margin: 0 0 16px;
}

.block-expert-predictions .sort-btn:not(.sort-btn--active) {
  background: transparent;
  color: var(--text);
}

.block-expert-predictions .sort-btn--active {
  background-color: var(--white);
  color: var(--primary);
}

.block-expert-predictions__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.block-expert-predictions__empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: #7d7d7d;
}

.block-expert-predictions__empty + .block-expert-predictions__nearest {
  padding-top: 0;
}

.block-expert-predictions__nearest {
  padding: 8px 20px 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.block-expert-predictions__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.block-expert-predictions__more-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 10px;
  padding: 0 32px;
  height: 50px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.block-expert-predictions__more-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.block-expert-predictions__more-btn--loading {
  opacity: 0.6;
  pointer-events: none;
}



/* --- olegtix-block-banner --- */
.block-banner {
    padding: 48px 0;
}

.block-banner__link {
    display: block;
}

.block-banner__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}


/* --- olegtix-block-experts_slider --- */
.experts-slider {
  padding: 48px 0;
  overflow: hidden;
  width: 100%;
}

.experts-slider__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.experts-slider__title {
  margin: 0;
}

.experts-slider__navigation {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.experts-slider__nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.experts-slider__nav-btn:hover {
  background-color: var(--grey-light);
}

.experts-slider__nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.experts-slider__slider {
  overflow: visible;
  width: 100%;
}

.experts-slider__footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.experts-slider__footer .btn {
  padding: 14px 32px;
}

.expert-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.expert-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.expert-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-card__avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--grey-light);
  color: var(--text);
  font-size: 36px;
  font-weight: 700;
}

.expert-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.expert-card__position {
  font-size: 14px;
  color: #888;
  margin-top: -12px;
}

.expert-card__btn {
  width: 100%;
  font-size: 14px;
  padding: 12px 20px;
}

@media (max-width: 991px) {
  .experts-slider {
    max-width: 100vw;
  }
}

@media (max-width: 768px) {
  .experts-slider {
    padding: 32px 0;
  }

  .experts-slider__header {
    margin-bottom: 16px;
  }

  .expert-card {
    padding: 16px;
    gap: 16px;
  }

  .expert-card__avatar {
    width: 80px;
    height: 80px;
  }

  .expert-card__name {
    font-size: 16px;
  }
}


/* --- olegtix-block-experts --- */
.block-experts {
  margin-top: 40px;
  margin-bottom: 40px;
}

.block-experts__title {
  margin-bottom: 24px;
}

.block-experts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.expert-listing-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 20px;
  border-radius: 14px;
  background: var(--white);
}

.expert-listing-card__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.expert-listing-card__avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grey-light);
}

.expert-listing-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-listing-card__avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--grey);
  font-size: 36px;
  font-weight: 700;
}

.expert-listing-card__heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.expert-listing-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.expert-listing-card__position {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--grey);
}

.expert-listing-card__sport {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grey-light);
}

.expert-listing-card__sport img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.expert-listing-card__bio {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expert-listing-card__stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expert-listing-card__stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--grey-light);
}

.expert-listing-card__stat-label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
}

.expert-listing-card__stat-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  white-space: nowrap;
}

.expert-listing-card__btn {
  margin-top: auto;
  width: 100%;
  height: 50px;
  padding: 0 32px;
  box-shadow: 0 5px 10px rgba(147, 69, 216, 0.25);
}

.block-experts__more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.block-experts__more[hidden] {
  display: none;
}

.block-experts__more-btn {
  min-width: 185px;
  height: 50px;
}

.block-experts__more-btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.block-experts__pagination {
  display: flex;
  justify-content: center;
}

.block-experts__empty {
  padding: 32px 0;
  color: var(--grey);
  font-size: 14px;
}

.block-experts.is-loading {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .block-experts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .block-experts {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .block-experts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .block-experts__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .block-experts__more-btn {
    width: 100%;
  }
}


/* --- olegtix-block-sport_leagues --- */
.block-sport-leagues {
    margin: 0;
}

.block-sport-leagues .sport-tabs {
    margin: 0 0 16px;
}

.block-sport-leagues__hub-link {
    display: inline-block;
    margin: 0 0 12px;
    color: #9345d8;
    font-weight: 600;
    text-decoration: none;
}

.block-sport-leagues__hub-link:hover {
    text-decoration: underline;
}

.block-sport-leagues__see-all {
    display: inline-block;
    margin-top: 8px;
    color: #9345d8;
    font-size: 14px;
    text-decoration: none;
}

.block-sport-leagues__see-all:hover {
    text-decoration: underline;
}

.block-sport-leagues__panel {
    display: none;
}

.block-sport-leagues__panel--active {
    display: block;
}

.block-sport-leagues__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.block-sport-leagues__card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: #232323;
    font-size: 14px;
    transition: opacity 0.2s;
}

.block-sport-leagues__card:hover {
    opacity: 0.7;
}

.block-sport-leagues__panel[data-panel="popular"] .block-sport-leagues__card {
    background: #fff;
}

.block-sport-leagues__empty {
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    color: #7d7d7d;
    font-size: 14px;
}

.block-sport-leagues__card-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.block-sport-leagues__card-icon {
    display: flex;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.block-sport-leagues__card-icon svg {
    width: 100%;
    height: 100%;
}

.block-sport-leagues__country {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 0 20px;
}

.block-sport-leagues__country-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.block-sport-leagues__country-flag {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
    object-fit: cover;
}

.block-sport-leagues__country-name {
    font-weight: 700;
    font-size: 16px;
    color: #232323;
    flex: 1;
}

.block-sport-leagues__country-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: #7d7d7d;
}

.block-sport-leagues__country--open .block-sport-leagues__country-chevron {
    transform: rotate(180deg);
}

.block-sport-leagues__country-body {
    display: none;
    padding: 0 0 16px;
}

.block-sport-leagues__country--open .block-sport-leagues__country-body {
    display: block;
}

@media (max-width: 768px) {
    .block-sport-leagues__grid {
        grid-template-columns: 1fr;
    }

    .block-sport-leagues .sport-tabs__tab {
        font-size: 18px;
    }

    .block-sport-leagues .sport-tabs__tab-text {
        display: inline;
    }
}


/* --- olegtix-single --- */
/* Grid Layout для статьи */
.article-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

/* Без сайдбара - 1 колонка */
.article-layout.no-sidebar {
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "body"
    "form"
    "reviews"
    "related";
}

.article-layout.no-sidebar .article__header {
  grid-area: header;
}
.article-layout .broker-review-form {
  grid-area: form;
}
.article-layout .block-broker-comments {
  grid-area: reviews;
  margin: 30px 0;
}
.article-layout.no-sidebar .article__body {
  grid-area: body;
}

.article-layout.no-sidebar .related {
  grid-area: related;
}

/* С сайдбаром - 2 колонки */
.article-layout.has-sidebar {
  grid-template-columns: 1fr 312px;
  grid-template-areas:
    "header expert"
    "body expert"
    "form expert"
    "reviews expert"
    "related expert";
}

.article-layout.has-sidebar .article__header {
  grid-area: header;
}

.article-layout.has-sidebar .article__body {
  grid-area: body;
}

.article-layout.has-sidebar .related {
  grid-area: related;
}

.article-layout.has-sidebar .expert {
  grid-area: expert;
}
.article-layout .block-broker-comments__container {
  padding: 0;
}
/* С сайдбаром для кнопок поделиться */
.article-layout.has-share-sidebar {
  grid-template-columns: 1fr 312px;
  grid-template-areas:
    "body sidebar"
    "form sidebar"
    "reviews sidebar"
    "related sidebar";
}

.article-layout.has-share-sidebar .article__body {
  grid-area: body;
}

.article-layout.has-share-sidebar .article-share-sidebar {
  grid-area: sidebar;
}

.article-layout.has-share-sidebar .related {
  grid-area: related;
}
.article__body #ez-toc-container {
  display: none;
}
.article__body #ez-toc-container + * {
  margin-top: 0;
}
/* Сайдбар с кнопками поделиться */
.article-share-sidebar {
  width: 312px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: start;
}
.article-share-sidebar__block {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  width: 100%;
}
.article-share-sidebar__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.275em;
  color: var(--text);
  margin-bottom: 12px;
}

.article-share-sidebar__buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}

.article-share-sidebar__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  transition: opacity 0.3s ease;
}

.article-share-sidebar__button:hover {
  opacity: 0.7;
}

.article-share-sidebar__button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article__header {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}

.article__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.275em;
  color: var(--text);
  margin: 0;
}

.article__meta {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.article__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.275em;
  color: var(--grey);
}

.article__meta-item svg {
  flex-shrink: 0;
}

.article__excerpt {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5em;
}

.expert {
  width: 312px;
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
}

.expert__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expert__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.expert__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert__avatar--placeholder {
  width: 100%;
  height: 100%;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.expert__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expert__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.275em;
  color: var(--text);
}

.expert__position {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.275em;
  color: var(--grey);
}

/* Related Block */
.related {
  background: var(--white);
  border-radius: 14px;
}

.related__header {
  padding: 20px;
  border-bottom: 1px solid var(--grey-light);
}

.related__date {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.27em;
  color: var(--primary);
}
.article-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.single-article .block-faq.section {
  margin: 0 0 35px;
}
.single-article .block-faq__container {
  padding: 0;
}
.single-article .article-related__container {
  padding: 0;
}
/* Responsive Design */
@media (max-width: 1024px) {
  .article__body #ez-toc-container {
    display: block;
    margin-bottom: 24px;
  }
  .article-share-sidebar #ez-toc-container {
    display: none;
  }
  .article-layout.has-sidebar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "expert"
      "body"
      "form"
      "reviews "
      "related";
    gap: 12px;
  }

  .article-layout.has-share-sidebar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "body"
      "sidebar"
      "form"
      "reviews "
      "related";
    gap: 12px;
  }

  .expert {
    width: 100%;
  }
  .expert__card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .article-share-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .article__title {
    font-size: 28px;
  }
  .article__excerpt {
    font-size: 15px;
  }
  .article-share-sidebar__title {
    font-size: 20px;
  }
  .review-experience__inner--comments {
    display: none;
  }
}
@media (max-width: 480px) {
  .article__title {
    font-size: 24px;
  }
  .article__excerpt {
    font-size: 14px;
  }
  .article-layout .block-broker-comments {
    margin: 20px 0;
  }
}
.blog-post-breadcrumbs .breadcrumbs {
  margin: 20px 0;
}
.wp-block-image :where(figcaption) {
  text-align: center;
  margin-top: -16px;
  font-size: 14px;
  color: var(--grey);
}
/* Tag Archive Page */
.tag-archive .news-feed__header {
  margin-bottom: 32px;
}

.tag-archive__description {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5em;
  color: var(--grey);
}


/* --- olegtix-post-rating --- */
/* Рейтинг статьи (score) */
.post-rating-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 20px;
  margin-bottom: 16px;
}

.post-rating-score__star {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.post-rating-score__rating {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.post-rating-score__votes {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.2;
}

/* Рейтинг статьи в конце (footer) */
.post-rating-footer {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  padding: 24px 0 0;
  margin-top: 32px;
  border-top: 1px solid #f4f4f4;
}

.post-rating-footer__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.275em;
  color: var(--text);
  margin-bottom: -4px;
}

.post-rating-footer__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.post-rating-footer__star {
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-rating-footer__star:hover {
  transform: scale(1.1);
}

.post-rating-footer__star svg {
  width: 34px;
  height: 34px;
}

.post-rating-footer__star svg path {
  fill: #d7d7d7;
  transition: fill 0.2s ease;
}

.post-rating-footer__star.active svg path {
  fill: #ffd700;
}

.post-rating-footer__stars[data-readonly="true"] {
  cursor: default;
}

.post-rating-footer__stars[data-readonly="true"] .post-rating-footer__star {
  cursor: default;
  pointer-events: none;
}

.post-rating-footer__stars[data-readonly="true"]
  .post-rating-footer__star:hover {
  transform: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .post-rating-footer {
    margin-top: 24px;
    padding-top: 20px;
    align-items: center;
  }

  .post-rating-footer__title {
    font-size: 18px;
    margin-bottom: 0;
  }

  .post-rating-footer__star svg {
    width: 28px;
    height: 28px;
  }

  .post-rating-score {
    gap: 6px;
    padding: 5px 10px;
    margin-bottom: 12px;
  }

  .post-rating-score__star {
    width: 18px;
    height: 18px;
  }

  .post-rating-score__rating {
    font-size: 14px;
  }

  .post-rating-score__votes {
    font-size: 12px;
  }
}

