* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "vazirmatn", sans-serif;
}
body {
  width: 100%;
  background: slateblue;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}
.top {
  background: slateblue;
  display: flex;
  justify-content: space-between;
  padding: 5px 75px 5px 60px;
  font-weight: 600;
  font-size: small;
  white-space: nowrap;
  position: relative;
  height: 30px;
}
.top-l,
.top-r {
  display: flex;
  justify-content: center;
  align-items: center;
}
.top-r a {
  margin: 0 15px;
}
.top a,
.top p {
  color: white;
  text-decoration: none;
}
.date,
.search,
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 25px;
}
.login .guest-login {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
}
.date,
.search {
  border-left: 1px solid white;
}
.top i {
  font-size: 5px;
}
.top-icons {
  width: 15px;
  margin: 0 0 0 5px;
}
.head {
  background: white;
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 15px 60px;
  white-space: nowrap;
  position: relative;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  margin: 0 30px;
}
.logo img {
  width: 125px;
}
.head a {
  text-decoration: none;
}
.titles a {
  margin: 0 15px;
  font-weight: bold;
  color: slateblue;
}
.all {
  background-color: rgb(196, 196, 196);
  display: flex;
  padding: 25px;
  gap: 25px;
  height: calc(100vh - 91.75px);
  width: 100%;
  margin: auto;
}
.dashbord {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 70%;
  gap: 25px;
}
.near {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 30%;
  gap: 25px;
}
.dash-up {
  display: flex;
  background: white;
  height: 50%;
  border-radius: 8px;
}
.dash-buttom {
  display: flex;
  height: 50%;
  gap: 25px;
}
.tables {
  background: white;
  height: 100%;
  border-radius: 8px;
}
.dash-up .slider {
  width: 50%;
  height: 100%;
  display: flex;
  position: relative;
  overflow: visible;
}
.dash-up .slider button {
  position: absolute;
  top: 50%;
  width: 35px;
  height: 40px;
  font-weight: bold;
  font-size: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: slateblue;
  transform: translateY(-50%);
  border-color: white;
}
.slider .prev {
  right: 0;
  border-radius: 8px 0 0 8px;
}
.slider .next {
  left: 0;
  border-radius: 0 8px 8px 0;
}
.dash-up img {
  width: 100%;
  height: 100%;
  border-radius: 0 8px 8px 0;
  object-fit: cover;
  object-position: center;
  display: block;
  overflow: hidden;
}
.news-left {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 15px;
  width: 50%;
}
.news-left .span {
  cursor: pointer;
  margin: 15px 10px;
  font-weight: 250;
}
.news-left .h2 {
  cursor: pointer;
  margin: 15px 10px;
}
.news-left .p {
  cursor: pointer;
  margin: 15px 10px;
}
.sliders {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px;
  gap: 10px;
}
.sliders button {
  background-color: rgb(161, 161, 161);
  width: 25px;
  height: 25px;
  color: white;
  font-weight: bolder;
  cursor: pointer;
  font-size: medium;
  border: none;
}
.sliders button.page-active {
  background-color: slateblue;
}

.search-box {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  padding: 15px;
  background-color: white;
  box-shadow: 0 5px 15px #00000020;

  display: flex;
  gap: 10px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: 0.25s ease;

  z-index: 1000;
  box-sizing: border-box;
}

.search-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}

.search-box input:focus {
  border-color: #7950d8;
}

.search-box button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #7950d8;
  color: white;
  font-family: inherit;
  cursor: pointer;
}
.slider img,
.news-left .text {
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.slider img.slide-out-left,
.news-left .text.slide-out-left {
  transform: translateX(-50px);
  opacity: 0;
}

.slider img.slide-out-right,
.news-left .text.slide-out-right {
  transform: translateX(50px);
  opacity: 0;
}
.matches {
  background-color: white;
  width: 50%;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-top: 5px solid slateblue;
}
.matches .matches-heading {
  width: 100%;
}
.matches .matches-heading button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  background: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  height: 52px;
  margin-bottom: 5px;
}
.matches .matches-heading button::after {
  content: ">";
  font-size: 30px;
  color: slateblue;
  font-weight: 500;
}
.matches .matches-heading button:hover {
  background: linear-gradient(to left, white, rgb(200, 200, 200));
}
.matches .matches-heading h1 {
  font-size: 20px;
  color: slateblue;
}
.matches .date-slide {
  background-color: slateblue;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0;
  gap: 2px;
}
.matches .date-slide button {
  padding: 5px;
  width: 20%;
  background: white;
  color: black;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
.matches .date-slide button.active {
  background-color: slateblue;
  color: white;
  font-weight: bold;
  border: none;
  padding: 5px;
  width: 20%;
  cursor: pointer;
}
.matches .plays {
  background-color: white;
  height: 100%;
  border: 2px solid white;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 1px;
  scrollbar-width: thin;
}
.matches .plays .tor-box {
  background-color: black;
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 8px;
  gap: 8px;
  border-radius: 6px;
}
.matches .plays .tor-box img {
  height: 20px;
}
.matches .plays .tor-box a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
}
.matches .plays .tor-box p {
  color: white;
  font-size: 13px;
}
.matches .plays .epl {
  background: linear-gradient(to left, rgb(40, 10, 85), rgb(101, 74, 143));
}
.matches .plays .laliga {
  background: linear-gradient(to left, rgb(225, 10, 85), rgb(202, 17, 82));
}
.matches .plays .seriea {
  background: linear-gradient(to left, rgb(40, 10, 100), rgb(40, 125, 200));
}
.matches .plays .ligue1 {
  background: linear-gradient(to left, black);
}
.matches .plays .bundesliga {
  background: linear-gradient(to left, rgb(75, 75, 75), rgb(100, 100, 100));
}
.matches .plays .ucl {
  background: linear-gradient(to left, rgb(0, 0, 50), rgb(0, 0, 150));
}
.matches .plays .pgl {
  background: linear-gradient(to left, rgb(21, 108, 207), rgb(182, 108, 10));
}
.matches .plays .unl {
  background: linear-gradient(to left, rgb(10, 50, 100), rgb(180, 180, 190));
}
.matches .plays .Friendlies {
  background: linear-gradient(to left, rgb(33, 24, 156), rgb(53, 63, 117));
}
.plays .match-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 5px;
  background-color: white;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.plays .match-box img {
  height: 30px;
}
.plays .match-box a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: black;
  margin: 0 5px;
  overflow: hidden;
}
.plays .match-box .team1 {
  display: flex;
  justify-content: left;
  align-items: center;
  width: 40%;
}
.plays .match-box .time {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plays .match-box .time p {
  font-size: large;
  font-weight: bold;
}
.plays .match-box .team2 {
  display: flex;
  justify-content: right;
  align-items: center;
  width: 40%;
}
.nude {
  width: 100%;
  height: 10px;
}
.live-time {
  width: 100%;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #1fad53;
  font-size: 12px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1s infinite ease-in-out;
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.5;
  }
}

.loading-matches {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.loader {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.25);
  border-top-color: slateblue;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.nothave {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: slateblue;
  font-weight: bolder;
  font-size: 20px;
}
.news {
  background-color: white;
  width: 50%;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-top: 5px solid slateblue;
}
.news .news-heading button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  background: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  height: 52px;
  margin-bottom: 5px;
}
.news .news-heading button::after {
  content: ">";
  font-size: 30px;
  color: slateblue;
  font-weight: 500;
}
.news .news-heading button:hover {
  background: linear-gradient(to left, white, rgb(200, 200, 200));
}
.news .news-heading h1 {
  font-size: 20px;
  color: slateblue;
}
.news .filter-ticks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.news .filter-ticks label {
  display: flex;
  align-items: center;
  font-weight: bold;
  gap: 5px;
  padding: 5px;
}
.news .news-box {
  background-color: white;
  height: 100%;
  border: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 5px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 2px solid slateblue;
}

/* اسکرول*/
.news-box {
  scrollbar-width: none;
}
.news-box::-webkit-scrollbar {
  width: 0;
}

.news-box:hover {
  scrollbar-width: thin;
}

.news-box:hover::-webkit-scrollbar {
  width: 6px;
}

.news-box:hover::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.news-box:hover::-webkit-scrollbar-track {
  background: transparent;
}
.news .news-box .news-small {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 5px;
}
.news .news-box h3 {
  font-size: 15px;
  font-weight: 450;
  white-space: nowrap;
}
.news .news-box img {
  height: 15px;
}
.near .tables {
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-top: 5px solid slateblue;
  white-space: nowrap;
}
.near .tables-heading button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  background: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  height: 52px;
}
.near .tables-heading button::after {
  content: ">";
  font-size: 30px;
  color: slateblue;
  font-weight: 500;
}
.near .tables-heading button:hover {
  background: linear-gradient(to left, white, rgb(200, 200, 200));
}
.near .tables-heading h1 {
  font-size: 20px;
  color: slateblue;
}

.near .league-selector {
  position: relative;
  width: 100%;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-sizing: border-box;
  font-weight: bold;
}

.near .league-selector-btn {
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  gap: 10px;
  font-size: 17px;
  font-weight: bold;
}

.league-selector-btn .selected-league-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* چیدمان دکمه انتخاب لیگ */
.league-selector-btn {
  display: flex;
  align-items: center;
  direction: rtl;
  gap: 10px;
}

/* فلش سمت چپ دکمه */
.league-selector-btn .arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-inline-start: auto;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* چرخش فلش هنگام باز شدن منو */
.league-selector.active .league-selector-btn .arrow {
  transform: rotate(225deg);
}

.near .league-options {
  display: none;
  position: absolute;
  top: calc(100%);
  right: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow-y: auto;
  max-height: 340px;
  z-index: 100;
  scrollbar-width: thin;
}

.near .league-selector.active .league-options {
  display: block;
}

.near .league-option {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  color: white;
  border-top: 1px solid black;
  font-weight: 400;
  font-size: 15px;
}

.near .league-option img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* رنگ اختصاصی هر لیگ */

.near .league-option.iran {
  background: linear-gradient(to left, rgb(21, 108, 207), rgb(182, 108, 10));
}

.near .league-option.england {
  background: linear-gradient(to left, rgb(40, 10, 85), rgb(101, 74, 143));
}

.near .league-option.spain {
  background: linear-gradient(to left, rgb(225, 10, 85), rgb(202, 17, 82));
}

.near .league-option.italy {
  background: linear-gradient(to left, rgb(40, 10, 100), rgb(40, 125, 200));
}

.near .league-option.germany {
  background: linear-gradient(to left, rgb(75, 75, 75), rgb(100, 100, 100));
}

.near .league-option.france {
  background: linear-gradient(to left, black);
}

.near .league-option.asia {
  background: linear-gradient(to left, rgb(91, 91, 158), rgb(100, 100, 200));
}

.near .league-option.europe {
  background: linear-gradient(to left, rgb(0, 0, 50), rgb(0, 0, 150));
}
.near .table-values {
  background-color: white;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
.near .table-values .league-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.near .table-values .league-table th {
  background-color: slateblue;
  color: white;
  font-size: 12px;
  padding: 3px 5px;
}
.near .table-values .league-table td {
  background-color: white;
  color: black;
  font-size: 13px;
  padding: 5px 5px;
  font-weight: bold;
}
.near .table-values .league-table .team-column {
  text-align: right;
}
.near .table-values .league-table .team-column .team-info {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 140px;
  text-decoration: none;
  overflow: hidden;
}
.near .table-values tbody img {
  height: 25px;
  object-fit: contain;
}
.near .table-values {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

/* Chrome و Edge */
.near .table-values::-webkit-scrollbar {
  width: 4px;
}

.near .table-values::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

.near .table-values::-webkit-scrollbar-track {
  background: transparent;
}
