@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap");

/* ========================================
   BASE STYLES
   ======================================== */
body {
  font-family: "Roboto", sans-serif;
  color: #f2f2f2;
}

.wrapper {
  background: #09090b;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.header-list-item-link {
  position: relative;
}
.header-list.header-nav-list {
  display: flex;
  gap: 16px;
}
.header-list-item-link {
  text-transform: capitalize;
  padding-bottom: 10px;
}
.header-list-item-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s;
}

.header-list-item-link--active::after,
.header-list-item-link:hover::after {
  background: #e63946;
}

/* ========================================
   SCROLLBAR HIDE (объединено)
   ======================================== */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========================================
   TABS & FILTERS (объединено)
   ======================================== */
.sport-tab {
  position: relative;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.table-link {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.table-link:hover {
  color: #ef4444;

  text-decoration-color: #ef4444;
}

.sport-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s;
}

.sport-tab.active::after,
.sport-tab:hover::after {
  background: #e63946;
}

.tab-btn.active {
  color: white;
  border-color: #e63946 !important;
}
.tab-btn {
  transition: 0.3s all;
  border-bottom: 2px solid transparent;
}
.tab-btn:hover {
  border-color: #e63946 !important;
}

.date-btn,
.sport-filter {
  transition: 0.3s all;
}

.date-btn:hover {
  background: #e63946;
}

.date-btn.active {
  background: #e63946 !important;
  color: white !important;
}

.sport-filter:hover {
  border: 1px solid #e63946 !important;
}

.sport-filter.active {
  background: #e63946 !important;
  color: white !important;
  border-color: #e63946 !important;
}

.sport-pill.active {
  background: #e63946 !important;
  color: white !important;
}

.filter-chip.active {
  background: #e63946;
  color: white;
  border-color: #e63946;
}

.category-btn.active {
  background: #e63946;
  color: white;
}

/* ========================================
   CARDS (объединено)
   ======================================== */
/* News Card */
.news-card {
  transition: all 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: #e63946;
}

.news-card:hover .news-img,
.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-card:hover .news-title {
  color: #e63946;
}

.news-image {
  transition: transform 0.3s ease;
}

/* Team Card */
.team-card {
  transition: all 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: #e63946 !important;
}

/* Player Card */
.player-card {
  transition: 0.3s all;
}

.player-card:hover {
  transform: translateY(-4px);
  border-color: #e63946 !important;
}

/* Stat Card */
.stat-card {
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  background: #27272a;
}

/* Trophy Card */
.trophy-card:hover {
  transform: scale(1.05);
}

/* ========================================
   VIDEO STYLES
   ======================================== */
.video-card:hover {
  border-color: #e63946 !important;
}

.video-card:hover .video-overlay {
  opacity: 1 !important;
}

.video-card:hover .video-thumb {
  transform: scale(1.05);
}

.video-card:hover .play-btn {
  transform: scale(1.1);
}

.play-btn {
  transition: transform 0.2s ease;
}

/* ========================================
   MATCH ROW
   ======================================== */
.match-row {
  transition: all 0.2s;
}

.match-row:hover {
  background: rgba(230, 57, 70, 0.05);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  background: #e63946;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #c62b38;
  transform: translateY(-1px);
}

.like-btn.active {
  background: #e63946;
  color: white;
}

.like-btn.active svg {
  fill: currentColor;
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-input:focus {
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* ========================================
   CALENDAR
   ======================================== */
.calendar-day:hover {
  background: rgba(230, 57, 70, 0.1);
}

.calendar-day.selected {
  background: #e63946;
  color: white;
}

.calendar-day.today {
  border: 2px solid #e63946;
}

/* ========================================
   SEARCH
   ======================================== */
.search-result:hover {
  background: rgba(230, 57, 70, 0.1);
}

/* ========================================
   PROGRESS BAR (объединено - фиксированный + анимированный)
   ======================================== */
.progress-bar {
  transition: width 0.3s ease;
}

.progress-bar.fixed {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background: #e63946;
  z-index: 100;
}

/* ========================================
   STAT BAR
   ======================================== */
.stat-bar {
  height: 8px;
  background: #27272a;
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.league-section {
  animation: fadeIn 0.3s ease-out;
}

.modal {
  animation: modalFadeIn 0.2s ease-out;
}

.notification {
  animation: slideIn 0.3s ease-out;
}

.live-badge {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   HERO GRADIENT (объединено - используем более красивый)
   ======================================== */
.hero-gradient {
  background: linear-gradient(135deg, #da291c 0%, #8b0000 50%, #09090b 100%);
}

.hero-gradient-vertical {
  background: linear-gradient(
    180deg,
    #da291c 0%,
    rgba(218, 41, 28, 0.3) 50%,
    #09090b 100%
  );
}

/* ========================================
   CATEGORY COLORS
   ======================================== */
.cat-football {
  background: #22c55e;
}
.cat-basketball {
  background: #f97316;
}
.cat-tennis {
  background: #eab308;
}
.cat-mma {
  background: #ef4444;
}
.cat-f1 {
  background: #dc2626;
}
.cat-transfer {
  background: #8b5cf6;
}
.cat-breaking {
  background: #ef4444;
}

.splide__pagination{
    position:relative !important;
    margin-top:16px !important;
}
.splide__pagination__page.is-active{
    background: #e63946 !important;
}
.video-card {
    height:100%;
}
/* ========================================
   LEAGUE BADGE COLORS
   ======================================== */
.league-pl {
  background: #3d195b;
}
.league-laliga {
  background: #ee8707;
}
.league-bundesliga {
  background: #d20515;
}
.league-seriea {
  background: #024494;
}
.league-ligue1 {
  background: #091c3e;
}
.league-ucl {
  background: #0a1128;
}

/* ========================================
   POSITION BADGES
   ======================================== */
.pos-gk {
  background: #f59e0b;
}
.pos-def {
  background: #3b82f6;
}
.pos-mid {
  background: #22c55e;
}
.pos-fwd {
  background: #ef4444;
}

/* ========================================
   FEATURED OVERLAY
   ======================================== */
.featured-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */
.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #a1a1aa;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 1.5rem 0 0.75rem;
}

.article-content blockquote {
  border-left: 4px solid #e63946;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #d4d4d8;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #a1a1aa;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content a {
  color: #e63946;
  text-decoration: underline;
}

.article-content a:hover {
  color: #c62b38;
}

.article-content img {
  border-radius: 0.75rem;
  margin: 2rem 0;
}

/* ========================================
   PROSE (for privacy/terms pages)
   ======================================== */
.prose h2 {
  scroll-margin-top: 100px;
}

.toc-link.active {
  color: #e63946;
  border-color: #e63946;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #27272a, #e63946, #27272a);
  transform: translateX(-50%);
}

.timeline-event {
  position: relative;
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #e63946;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.timeline-event.home::before {
  right: calc(50% - 6px);
}

.timeline-event.away::before {
  left: calc(50% - 6px);
}

/* ========================================
   FORMATION FIELD
   ======================================== */
.formation-field {
  background: linear-gradient(to bottom, #1a472a 0%, #2d5a3f 50%, #1a472a 100%);
  position: relative;
}

.formation-field::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.my-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.text-accent {
  color: #e63946;
}
.bg-accent {
  background: #e63946;
}
.border-accent {
  border-color: #e63946;
}

.bg-surface-950 {
  background: #09090b;
}
.bg-surface-900 {
  background: #0f0f10;
}
.bg-surface-800 {
  background: #18181b;
}
.bg-surface-700 {
  background: #27272a;
}
/* Animation styles */
section {
  
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Table row transition */
tbody tr {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Sortable header indicator */
th[data-sort]::after {
  content: "↕";
  margin-left: 5px;
  opacity: 0.3;
  font-size: 10px;
}

th[data-sort][data-order="asc"]::after {
  content: "↑";
  opacity: 1;
}

th[data-sort][data-order="desc"]::after {
  content: "↓";
  opacity: 1;
}

/* ========================================
   HELPER CLASSES (cleaned)
   ======================================== */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.pointer {
  cursor: pointer;
}
.inline_block {
  display: inline-block;
}

.border50 {
  border-radius: 50%;
}
.border5px {
  border-radius: 5px;
}

.object_fit_cover {
  object-fit: cover;
}
.object_fit_contain {
  object-fit: contain;
}

.list_style_none {
  list-style: none;
}

.z-index1 {
  z-index: 1;
}

.rotate {
  transform: rotate(180deg);
}
.rotate270deg {
  transform: rotate(270deg);
}

.invert {
  filter: invert(100%);
}
.blur {
  filter: blur(2px);
}
.filter_none {
  filter: none;
}
.filter_70 {
  filter: brightness(80%);
}

.hover_filter_70:hover {
  filter: brightness(70%);
}
.hover_Background_white:hover {
  background-color: rgb(255, 252, 252);
}
.hover_color_black:hover {
  color: rgb(6, 6, 6);
}
.hover_color_white:hover {
  color: rgb(255, 255, 255);
}
.hover_Color_red:hover {
  color: rgb(190, 2, 2);
}

.flex_end {
  justify-content: flex-end;
  display: flex;
}

.flex-grow-1 {
  flex-grow: 1;
}
.auto-1-1 {
  flex: auto 1 1;
}

/* Font sizes */
.fz14 {
  font-size: 14px;
}
.fz20 {
  font-size: 20px;
}
.fz22 {
  font-size: 22px;
}
.fz50 {
  font-size: 50px;
}

.letter-spacing-2 {
  letter-spacing: 2px;
}
.text-transform-capitalize {
  text-transform: capitalize;
}

/* Widths & Heights */
.height100_procent {
  height: 100%;
}
.height150px {
  height: 150px;
}
.height200px {
  height: 200px;
}
.height250px {
  height: 250px;
}
.height300px {
  height: 300px;
}
.height400px {
  height: 400px;
}
.height500px {
  height: 500px;
}

.width_height25px {
  height: 25px;
  width: 25px;
}
.width30x30 {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.height40_width40px {
  height: 40px;
  width: 40px;
}
.height_width20px {
  height: 20px;
  width: 20px;
}
.width75x75 {
  height: 75px;
  width: 75px;
}
.width_height80px {
  width: 80px;
  height: 80px;
}
.width100px_height100 {
  width: 100px;
  height: 100px;
}
.height100_width100 {
  height: 100px;
  width: 100px;
}
.width150_height100 {
  height: 100px;
  width: 150px;
}
.width833px {
  width: 800px;
}

/* Paddings */
.padding_5px {
  padding: 5px;
}
.padding_5x25 {
  padding: 5px 25px;
}
.padding32 {
  padding: 32px;
}
.padding_buttom {
  padding: 7px 15px;
}
.padding_left0 {
  padding-left: 0;
}
.p_left0 {
  padding-left: 0;
}
.padding_left5 {
  padding-left: 16px;
}
.padding_left_right30px {
  padding-left: 30px;
  padding-right: 30px;
}
.padding_left_right_top15 {
  padding: 15px 15px 0 15px;
}
.padding_top_bottom5px {
  padding: 5px 0;
}
.padding_bottom20px {
  padding-bottom: 20px;
}
.padding_top50 {
  padding-top: 50px;
}
.padding_t_b32px {
  padding: 32px 0;
}
.padding_t_l_b32px {
  padding: 32px 0 32px 32px;
}
.padding_10px {
  padding: 0 10px;
}

/* Margins */
.margin_8 {
  margin-bottom: 8px;
}
.margin_bottom10 {
  margin-bottom: 10px;
}
.margin_bottom20px {
  margin-bottom: 20px;
}
.margin_32 {
  margin-bottom: 32px;
}

/* Gaps */
.column_gap32 {
  column-gap: 32px;
}
.row_gap32 {
  row-gap: 32px;
}

/* Grid */
.grid-template-columns-2-1fr {
  grid-template-columns: repeat(2, 1fr);
}
.grid-template-columns-70-auto {
  grid-template-columns: 70% auto;
}
.grid-template-columns-75-auto {
  grid-template-columns: 75% auto;
}
.grid-30-auto {
  grid-template-columns: 30% auto;
}
.grid-36-auto {
  grid-template-columns: 36% auto;
}
.grid-50-1fr {
  grid-template-columns: 50% 1fr;
}

/* Borders */
.border_1px {
  border: 1px solid #7676764d;
}
.solid {
  border: 1px solid #ccc;
}
.solid1px {
  border: 1px solid #ccc;
}
.right_none {
  border-right-width: 0;
}
.solid_Bottom {
  border-style: solid;
  border-width: 0 0 1px 0;
}

/* Positions */
.top_left0 {
  left: 0;
  top: 0;
}
.left0_bottom0_right0 {
  left: 0;
  bottom: 0;
  right: 0;
}
.left50_top50procent {
  left: 50%;
  top: 50%;
}
.translateX-50-translateY-50 {
  transform: translate(-50%, -50%);
}

/* Colors */
.gews {
  color: rgb(255, 255, 255);
}
.color_gray2 {
  color: rgb(237, 237, 237);
}

/* Box shadow */
.box_shadow0415 {
  box-shadow: 0px 4px 15px rgb(94, 94, 94);
}

/* Background */
.background_text {
  background-color: rgba(0, 0, 0, 0.46);
}

/* Border radius */
.all_top5px {
  border-radius: 5px 5px 0 0;
}

/* Special elements */
.border_left_h2 {
  background-color: rgb(39, 94, 254);
  border-left: 12px solid rgb(255, 0, 0);
}

.img_card_color {
  height: 25px;
  width: 15px;
  object-fit: cover;
}

.table_result {
  width: 100%;
}

.play_button2 {
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.play_button2:hover {
  filter: brightness(70%);
}

.tsrhrthyrt:hover {
  background-color: rgb(142, 140, 140);
}

/* Team Stats */
.team_stats {
  border-style: solid;
  border-width: 0;
  border-top-width: 1px;
  border-left-width: 1px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.team-stats-cell {
  align-items: center;
  border-style: solid;
  border-width: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 600;
  padding-bottom: 16px;
}

/* Background with pseudo elements */
.background_card_result::before {
  content: "";
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://sportwiki.pl/assets/img/a52cef52baf4cca03b9c1b341108eb11.jpg");
  background-size: cover;
  filter: blur(1px);
}

.bg_reviews::before {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://sportwiki.pl/assets/img/a52cef52baf4cca03b9c1b341108eb11.jpg");
  background-size: cover;
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  content: "";
  filter: blur(1px);
  top: 0;
  left: 0;
}

/* ========================================
   RESPONSIVE - Mobile Menu
   ======================================== */
/* ========================================
   BURGER MENU
   ======================================== */
.menu-burger {
  width: 30px;
  height: 20px;
  background-color: transparent;
  cursor: pointer;
  border: none;
  padding: 0;
  z-index: 100;
  position: relative;
  display: none;
}

.menu-burger::after,
.menu-burger::before {
  content: "";
  position: absolute;
  left: 0;
}

.menu-burger::before {
  top: 0;
  transition: transform 0.3s, top 0.3s 0.3s;
}

.menu-burger::after {
  bottom: 0;
  transition: transform 0.3s, bottom 0.3s 0.3s;
}

.menu-burger__line,
.menu-burger::after,
.menu-burger::before {
  display: block;
  width: 100%;
  border-radius: 10px;
  height: 3px;
  background-color: #f2f2f2;
}

.menu-burger--active .menu-burger__line {
  display: none;
}

.menu-burger--active::before {
  transform: translateY(-50%) rotate(45deg);
  top: 50%;
  transition: top 0.3s, transform 0.3s 0.3s;
}

.menu-burger--active::after {
  transform: translateY(50%) rotate(-45deg);
  bottom: 50%;
  transition: bottom 0.3s, transform 0.3s 0.3s;
}

.burger_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 8;
}

.burger_overlay--active {
  opacity: 1;
  pointer-events: auto;
}

.no-scroll {
 
  height: 100%;
}

@media (max-width: 1420px) {
  .menu-burger {
    display: block;
  }

  .header-nav-list {
    display: flex;
    flex-direction: column;
    position: fixed;
    gap: 24px;
    z-index: 99;
    overflow: scroll;
    width: 250px;
    background: #0f0f10;
    padding: 50px 0;
    height: 100vh;
    top: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .header-nav-list.active {
    transform: translateX(0);
  }

  .header-list-item-link:not(.header-list-item-link--active) {
    color: #fff;
  }

  .header-nav-list-mobile {
    align-items: flex-start;
    padding-left: 50px;
    backdrop-filter: blur(19px);
    font-weight: 700;
    transform: translateY(0);
  }
}
