/* container */
.rating-block {/*
  margin: 30px auto;*/
}

/* header block */
.block-header {
    position: relative;
    background: #AB264D;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    cursor: pointer;
}

.block-title {
    font-size: 35px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 40px;
    text-align: center;
}

/* header lines & arrow */
.block-header-lines {
  position: absolute;
  bottom: 20px;
  width: 100%;
  height: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.block-header-line.left {
  width: 30%;
  height: 0;
  border-top: 2px solid #F4DCBB;
  margin-left: 29px;
}
.block-header-line.right {
  width: 30%;
  height: 0;
  border-top: 2px solid #F4DCBB;
  margin-right: 29px;
}
.block-header-arrow {
  width: 28px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* rating block */
.rating {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 630px;
    background: #F4EADD;
    border-radius: 25px;
    overflow: hidden;
}

.rating-header {
    padding: 15px 38px 15px 30px;/*+8 пикселей справа из-за скроллбара, иначе рейтинг и заголовки не центруются*/
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 2px solid #AB264D;
    font-size: 14px;
    color: #770326;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: #F4EADD;
    z-index: 10;
}

.rating-scroll-container {
    font-family: 'Montserrat';
    flex: 1;
    overflow-y: auto;
    width: 100%;
    padding: 0 15px;
}

.rating-content {
    width: 100%;
}

.rating-row {
    position: relative;
    height: 61px;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #AB264D;
    font-size: 12px;
    color: #770326;
    margin-left: auto;
    margin-right: auto;
}

.rating-title {
    width: 97px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-spaces;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.rating-leader {
    width: 72px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-spaces;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.rating-score {
    width: 50px;
    text-align: center;
}

.rating-ellipse {
    width: 41px;
    height: 41px;
    background: #FFF;
    border-radius: 50%;
    border: 1px solid #770326;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.loading, .error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 18px;
    color: #770326;
    text-align: center;
}

.error {
    color: #AB264D;
}

/* Стилизация скроллбара */
.rating-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.rating-scroll-container::-webkit-scrollbar-track {
    background: #F4EADD;
    border-radius: 4px;
}

.rating-scroll-container::-webkit-scrollbar-thumb {
    background: #AB264D;
    border-radius: 4px;
}

.rating-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #770326;
}