/* menu.css */


.ad-content {
    max-width: 728px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .ad-content {
        max-width: 100%;
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }
}
.ad-banner {
    display: flex;
    justify-content: center;
    align-items: center;
   
    margin: 0 auto 12px auto;
    overflow: hidden;
    width: fit-content;
}
.ad-banner-center {
    flex-direction: column;
}
.ad-banner-center,.ad-content {
    max-width: 728px;
    width: 100%;
    display: flex;
    align-items: center;
}
.ad-content {
    margin: 0 auto;
    justify-content: center;
    height: 100px;
}
.ad-content img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Zachowaj proporcje dla banerów 728x90 */
.ad-content > * {
    aspect-ratio: 728/90;
    width: 100%;
    max-width: 728px;
}
.ads-label {
    margin-top: 4px;
    color: #888;
    font-size: 14px;
    text-align: center;
}
/* Ad Banner Responsive Styles */
.ad-banner {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    width: fit-content;
}
.ads-label {
    
    color: #888;
    font-size: 10px;
    line-height: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4px;

    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .ad-banner {
        flex-direction: column;
        align-items: flex-end;
        min-height: unset;
    }
    .ads-label {
    
    color: #888;
    font-size: 10px;
    line-height: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4px;

    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
}
}
.main-nav {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    width: auto;
    margin: 0 auto;
    height: 50px;
    padding: 0 6px;
}

.main-nav::before,
.main-nav::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

.main-nav::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.main-nav::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    
}

.main-nav ul::-webkit-scrollbar {
    display: none;
}

.main-nav li {
    flex: 0 0 160px;
    scroll-snap-align: start;
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
    background: var(--bg-medium);
}

@media (max-width: 768px) {
    .main-nav {
        width: auto;
    }
    
    .main-nav li {
        flex: 0 0 140px;
    }
    .main-nav ul {
        justify-content: flex-start;
    }
}

/* style.css */


.meta-on-image {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 10px 16px;
    z-index: 3;
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 1em;
}
.meta-on-image .category, .meta-on-image .author {
    color: #fff;
    font-weight: 500;
    background: none;
}
.news-details .meta,.main-news .news-content {
    position: relative;
    z-index: 3;
}
/* Warstwa czerwonego gradientu dla pilnych newsów na zdjęciu */
.urgent-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}
/* Pilne newsy - czerwony gradient przez 2h */
.urgent-gradient,.urgent-news .news-content,
.urgent-news .meta,
.urgent-news {
    background: linear-gradient(transparent, rgba(255, 0, 0, 0.7));
}
/* Style dla tabeli ze składem */
.squad-table-container {
    position: relative;
    overflow-x: auto;
    background: var(--bg-medium);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 15px 0;
    scrollbar-width: thin;
}

.squad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--text-primary);
}

.squad-table th {
    position: sticky;
    top: 0;
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
    z-index: 10;
}

.squad-table th:first-child {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    background: var(--bg-light);
}

.squad-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background: var(--bg-medium);
    font-weight: 600;
}

.squad-table th,
.squad-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.squad-table tbody tr:hover,.squad-table tbody tr:hover td:first-child {
    background: rgba(var(--accent-color-rgb), 0.05);
}

@media (max-width: 768px) {
    .squad-table th,
    .squad-table td {
        padding: 8px 12px;
        font-size: 13px;
    }
}
.sidebar {
/* Modal dla statystyk zawodnika */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 32px 24px;
    border-radius: 8px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
}
#modalClose {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    color: #333;
}
    flex-shrink: 0;
    width: 300px;
    background: var(--bg-medium);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s;
}
.sidebar-bottom-sheet.active .sidebar-bottom-sheet-content {
    transform: translateY(0);
    opacity: 1;
}
.sidebar-bottom-sheet-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    z-index: 2;
}

/* RESPONSYWNA TABELA SPORTOWA */
/* Podstawowe style dla kolumn tabeli */
.table .col-pozycja,
.table .col-druzyna,
.table .col-mecze,
.table .col-z,
.table .col-r,
.table .col-p,
.table .col-bramki,
.table .col-pkt {
    display: none; /* Domyślnie ukrywamy wszystkie kolumny */
}

/* Zawsze widoczne kolumny (dla najmniejszych ekranów) */
.table .col-pozycja,
.table .col-druzyna,
.table .col-mecze,
.table .col-pkt {
    display: table-cell;
}

/* Style dla ekranów między 480px a 760px */
@media (min-width: 480px) {
    .table .col-bramki:nth-child(7) { /* Tylko pierwsza kolumna bramek (GS) */
        display: table-cell;
    }
}

/* Style dla ekranów powyżej 760px */
@media (min-width: 760px) {
    .table .col-z,
    .table .col-r,
    .table .col-p,
    .table .col-bramki { /* Wszystkie kolumny bramek */
        display: table-cell;
    }
}


    

@media (min-width: 769px) {
    .table .col-pozycja,
    .table .col-druzyna,
    .table .col-mecze,
    .table .col-z,
    .table .col-r,
    .table .col-p,
    .table .col-bramki,
    .table .col-pkt {
        display: table-cell;
    }
}
/* Główna paleta kolorów i wymiary */
:root {
  --bg-dark: #0f1a33;
  --bg-medium: #1f2b49;
  --bg-light: #2b3a63;
  --text-primary: #e9eef7;
  --text-secondary: #9fb2d9;
  --accent-color: #2c812f;
  --accent-color-rgb: 76, 175, 80;
  --live-color: #ff6b6b;
  --border-color: #1f2b49;
  --header-height: 147px; /* Suma wysokości top-bar, main-header i main-nav */
}






/* Ogólne style */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: 'SofiaSans', Arial, sans-serif;
  margin: 0;
  color: var(--text-primary);
  line-height: 0.95;
  border:#e3e5e9 2px;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Styles dla seoadwrapper */
body,.seo-ad-wrapper {
  background: var(--bg-dark);
}
.seo-ad-wrapper {
    width: 100%;
    height: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.seo-ad-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}


/* Styles dla linklist-wrapper */
.breadcrumbs {
    width: 100%;
    height: 24px;
    
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.breadcrumbs::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}


.breadcrumbs-content {
    white-space: nowrap;
    padding: 0 8px;
    font-size: 12px;
    font-weight: normal;
    margin-top: 10px;
    color: var(--text-secondary);
    display: inline-block;
    text-transform: uppercase;
}

@media (min-width: 480px) {
    .breadcrumbs-content {
        padding: 0 16px;
    }
}






.seo-ad-content {
    white-space: nowrap;
    padding: 4px 8px;
}

.seo-ad-content h1 {
    font-size: 12px;
    font-weight: normal;
    margin: 0;
    color: var(--text-secondary);
    display: inline-block;
}

@media (min-width: 480px) {
    .seo-ad-content {
        padding: 4px 16px;
    }
}

/* Style dla górnego paska */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: var(--bg-medium);
    height: 50px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 480px) {
    .top-header {
        padding: 8px 16px;
    }
}

.top-header .logo {
    font-size: 20px;
    font-weight: bold;
}

.top-header .logo a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-header .logo a:hover {
    color: var(--accent-color);
}

.top-header-right {
    gap: 20px;
}

.top-header-right,.header-icon-button {
    display: flex;
    align-items: center;
}

.header-icon-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    justify-content: center;
    transition: transform 0.2s ease;
}

.header-icon-button:hover {
    transform: scale(1.1);
}

.header-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--text-primary);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .top-header {
        padding: 8px;
    }
    
    .top-header .logo {
        font-size: 18px;
    }
    
    .top-header-right {
        gap: 15px;
    }
    
    .header-icon {
        width: 20px;
        height: 20px;
    }
}



/* Style dla sekcji zdjęcia stadionu */
.club-section.stadium-info-section {
    width: 100%;
    position: relative;
    
    overflow: hidden;
    margin-bottom: 30px;
}

.club-section.stadium-info-section img {
    
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Autor zdjęcia */
.club-section.stadium-info-section .photo-credit {
    
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 1;
}

/* Style dla sekcji mapy */
.stadion-map {
    margin: 30px 0;
}

.stadion-map #map {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* Proporcja 16:9 */
    margin: 20px 0;
}

.stadion-map #map .leaflet-container {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Responsywność */
@media (max-width: 768px) {
    .club-section.stadium-info-section,
    .stadion-map #map {
        
    }
}




/* NOWY HEADER STYLES */
.top-bar {
  background: var(--bg-medium);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.search-bar {
  flex-grow: 1;
  margin-right: 15px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 8px 12px 8px 35px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.search-bar input::placeholder {
  color: var(--text-secondary);
}

.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.gift-icon {
  color: var(--text-primary);
  font-size: 1.2em;
  cursor: pointer;
  padding: 5px;
}

.main-header {
  background: var(--bg-dark);
  padding: 15px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.banner-ad {
  background: #3a4767;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  text-align: center;
  flex-grow: 1;
  margin-left: 20px;
  margin-right: 20px;
}




/* KONIEC NOWYCH STYLI HEADER */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* NOWE STYLE SIDEBAR */

.main-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-medium);
    border-radius: 8px;
    border: 1px solid var(--border-color);
   padding: 0 10px;
}

@media (max-width: 768px) {
    .content-layout {
        padding: 10px;
    }
    .main-content {
        width: 100%;
    }
}

.sidebar {
  flex-shrink: 0;
  width: 300px;
  background: var(--bg-medium);
  padding: 15px 0;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  border-radius: 8px;
}

/* Przycisk Moje Kluby w sidebarze */
.sidebar-my-clubs {
  margin: 0 15px 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.sidebar-my-clubs-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  color: #f57c00;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ffc107;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.sidebar-my-clubs-btn:hover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffd54f 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.sidebar-my-clubs-btn.active {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #fff;
  border-color: #ff9800;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.4);
}

.sidebar-my-clubs-btn svg {
  flex-shrink: 0;
}

.sidebar .filter-group {
  margin-bottom: 20px;
  padding: 0 15px;
}

.sidebar .filter-group-title {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar .date-selector-wrapper,
.sidebar .favorite-chip-wrapper {
  margin-bottom: 10px;
}

/* NOWE STYLE DLA MAIN-CONTENT */
.main-content {
  flex-grow: 1; /* Pozwól, aby główna zawartość rozciągała się na dostępną szerokość */
}
/* KONIEC NOWYCH STYLI DLA MAIN-CONTENT */

.sidebar #date-selector,.sidebar .chip {
  width: 100%;
  box-sizing: border-box;
}

.sidebar .chip {
  text-align: center;
  margin-bottom: 5px;
}

.sidebar .sport-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .sport-item {
  margin-bottom: 5px;
}

.sidebar .sport-item > a {
  display: block;
  padding: 10px 15px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  background: var(--bg-dark);
  border-radius: 5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar .sport-item > a:hover {
  background: var(--bg-light);
}

.sidebar .sport-item > a.active {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
}

.sidebar-title-active {
  display: block;
  padding: 10px 15px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  background: var(--bg-dark);
  border-radius: 5px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  margin-left: 0px;
}

.sidebar .league-list {
  list-style: none;
  padding-left: 0px;
  margin-top: 5px;
  border-left: 2px solid var(--border-color);
}

.sidebar .league-item {
  margin-bottom: 3px;

}

.sidebar .league-item a {
  display: block;
  padding: 6px 0;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.2s ease;
}

.sidebar .league-item a:hover {
  color: var(--text-primary);
  
}

.sidebar .league-item a.active {
  color: var(--accent-color);
  font-weight: 600;
}


a {
 
  padding: 6px 0;
  color: var(--text-secondary);
  text-decoration: none;
 
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-primary);
}






/* KONIEC NOWYCH STYLI SIDEBAR */

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--bg-light);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  background: var(--bg-dark);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.chip:hover {
  background: var(--bg-light);
  border-color: var(--accent-color);
  color: var(--text-primary);
}

div.filters .chip.active {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

#date-selector {
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 1px solid var(--bg-light);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  position: relative;
  padding-right: 30px;
}

.favorite-star {
  cursor: pointer;
  font-size: 1.2em;
  margin-left: 0px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  
}

.favorite-star:hover,.favorite-star.favorite {
  color: #28a745;
}

.league-group.favorite {
  background: rgba(var(--accent-color-rgb), 0.1);
  border-left-color: #FFD700;
}

.card.favorite-match {
  background: rgba(var(--accent-color-rgb), 0.05);
  border-color: rgba(255, 215, 0, 0.5);
}

#date-selector::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

#date-selector::-webkit-calendar-picker-indicator::after {
  content: '📅';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 16px;
}

/* NOWE STYLE DLA SUWAKA DATY */
.date-slider-container {
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0 5px;
  margin-bottom: 10px;
}

.date-slider-inner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex-grow: 1;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.date-slider-inner::-webkit-scrollbar { /* Chrome, Safari */
  display: none;
}

.date-nav-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2em;
  padding: 8px 5px;
  cursor: pointer;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.date-nav-button:hover {
  color: var(--text-primary);
}

.date-item {
  flex-shrink: 0;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 15px;
  margin: 0 2px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 60px;
}

.date-item:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.date-item.active {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
}

.date-item .day-of-week {
  font-size: 0.8em;
  opacity: 0.8;
}
/* KONIEC NOWYCH STYLI DLA SUWAKA DATY */

.group {
  margin-top: 25px;
  margin-bottom: 10px;
  padding: 10px 15px;
  background: var(--bg-medium);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 16px;
}

.sport-group {
  background: linear-gradient(90deg, var(--bg-light) 0%, var(--bg-medium) 100%);
  border-left: 5px solid var(--accent-color);
  text-transform: uppercase;
  color: #fff;
}

.sport-icon {
  margin-right: 10px;
  
  line-height: 1;
}

.league-group {
  background: var(--bg-medium);
  border-left: 3px solid var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  margin-top: 15px;
}

.league-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.league-link:hover {
  color: var(--accent-color);
}

.league-link::after {
  content: ' ›';
  margin-left: 5px;
  font-size: 1em;
}

.card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background 0.2s ease;
  box-sizing: border-box; /* Dodano, aby zapewnić prawidłowe obliczanie szerokości */
}

.card:hover {
  background: #1a2a52;
}

.card .sport-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.meta {
  flex: 1;
}

.time {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 4px;
}

.teams {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.league-name {
  margin-top: 4px;
}

.league-name,.status {
  font-size: 12px;
  color: var(--text-secondary);
}

.status {
  padding: 4px 10px;
  border-radius: 16px;
  border: 1px solid var(--bg-light);
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
}

.status.live {
  color: var(--live-color);
  border-color: var(--live-color);
  font-weight: 600;
}

.status.finished {
  color: #777;
  border-color: #777;
}

footer {
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-dark);
}

/* NOWE STYLE DLA TABELI WYNIKÓW */
.standings-table-container {
    background: var(--bg-medium);
    border-radius: 8px;
    overflow: hidden; 
    overflow-x: auto; /* Dodano przewijanie poziome */
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--text-primary);
}

.standings-table th,
.standings-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 480px) {
    .standings-table th,
    .standings-table td {
        padding: 8px 6px; /* Mniejsze paddingi na małych ekranach */
        font-size: 0.9em; /* Mniejsza czcionka */
    }
    
    .standings-table .team-name {
        max-width: 120px; /* Ograniczenie szerokości nazwy drużyny */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.standings-table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
}

.standings-table tbody tr:last-child td {
    border-bottom: none; /* Brak dolnej ramki dla ostatniego wiersza */
}

.standings-table tbody tr:hover {
    background: rgba(var(--accent-color-rgb), 0.05); /* Delikatne podświetlenie on hover */
}

.standings-table tr.current-club {
    background-color: rgba(var(--accent-color-rgb), 0.15) !important;
    font-weight: bold;
    border-left: 3px solid var(--accent-color);
}

.standings-table .pos {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

.standings-table .team-name {
    font-weight: 600;
    color: var(--text-primary);
}

.standings-table .goals, .standings-table .points {
    text-align: center;
    font-weight: 700;
}

/* Style dla pozycji (promotion/relegation/playoff) */
.promotioncolor_clq {
    background-color: rgba(124, 252, 0, 0.1); /* Jasnozielony dla Ligi Mistrzów Kwalifikacje */
    border-left: 3px solid #7CFC00; 
}

/* Style dla awansu */
.promotioncolor_promotion {
    background-color: rgba(60, 179, 113, 0.1); /* Zielony dla awansu */
    border-left: 3px solid #3CB371;
}

/* Styl dla Playoff */
.promotioncolor_playoff {
    background-color: rgba(102, 204, 102, 0.1); /* Inny odcień zieleni dla Playoff */
    border-left: 3px solid #66CC66;
}

/* Nowe style dla stref promocji/spadków na podstawie faktycznych danych JSON */
.promotioncolor_promotionplayoff {
    background-color: rgba(139, 195, 74, 0.1); /* Odcień zieleni dla baraży o awans */
    border-left: 3px solid #8BC34A;
}

.promotioncolor_relegationplayoff {
    background-color: rgba(229, 115, 115, 0.1); /* Bardziej intensywny róż dla baraży o spadek */
    border-left: 3px solid #E57373;
}

.promotioncolor_relegation {
    background-color: rgba(255, 99, 71, 0.1); /* Jasnoczerwony dla spadku */
    border-left: 3px solid #FF6347;
}

/* Wyróżnienie klubów śląskich */
.is-slaski-club, .is-slaski-club .team-name {
  color: #FFD700 !important;
  font-weight: bold; 
}

/* Styl dla linków w klubach śląskich */
.is-slaski-club a {
    color: #FFD700 !important; /* Żółty kolor linku */
    text-decoration: none !important; /* Brak podkreślenia */
}

/* Legenda pod tabelą */
.standings-legend {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: var(--text-secondary);
}

.standings-legend h3 {
    color: var(--text-primary);
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
}

.standings-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.standings-legend li {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-color);
}

.standings-legend li::before {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid var(--border-color);
}

.standings-legend li.promotioncolor_clq::before {
    background-color: #7CFC00;
}

.standings-legend li.promotioncolor_playoff::before {
    background-color: #66CC66;
}

.standings-legend li.promotioncolor_promotion::before {
    background-color: #3CB371;
}

.standings-legend li.promotioncolor_promotionplayoff::before {
    background-color: #8BC34A;
}

.standings-legend li.promotioncolor_relegationplayoff::before {
    background-color: #E57373;
}

.standings-legend li.promotioncolor_relegation::before {
    background-color: #FF6347;
}

.standings-legend li.is-slaski-club::before {
    background-color: #FFD700;
}

/* Style dla boxów klubów */
.club-boxes-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 0px;
}

.sport-club-group h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.0em;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

@media (max-width: 600px) {
    .club-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.club-box {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
@media (max-width: 900px) {
    .club-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .club-box, .club-card {
        max-width: none;
        min-width: unset;
        width: auto;
    }
}

@media (max-width: 600px) {
    .club-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
    padding: 5px;
}

.club-box-name {
    font-size: 1.0em; /* Zmniejszono rozmiar czcionki */
    font-weight: 700;
    margin-bottom: 5px;
    
    overflow: hidden; /* Ukrywa nadmiarowy tekst */
    text-overflow: ellipsis; /* Dodaje elipsę (...) dla przyciętego tekstu */
}

.club-box-founded {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* NOWE STYLE DLA STRONY SZCZEGÓŁÓW KLUBU */
.club-details-container {
    max-width: 100%; /* Zmieniono, aby dopasować do szerokości nadrzędnego kontenera */
    margin: 0 auto 20px auto;
    padding: 20px;
    background: var(--bg-medium);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

}



h2 {
  text-transform: uppercase;
  font-size: 1em;
  
}

.club-details-container h1, .club-details-container h2, .stadion-details-container h2 {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding: 6px 3px;
    margin-top: 0px;
   
    
}

.club-section {
    
    padding: 4px;
    
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.club-header {
    display: flex;
    align-items: flex-start; /* Zmieniono na flex-start */
    gap: 20px;
   
    border-bottom: 1px solid var(--border-color);
}

.club-header .club-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.club-header .club-info {
    flex-grow: 1;
}

.club-header .club-info h2 {
    margin: 0;
    font-size: 2.5em;
    color: var(--text-primary);
    border-bottom: none;
    padding-bottom: 0;
    width: 100%; /* Upewnia się, że h1 zajmuje pełną szerokość dostępną w .club-info */
}

.club-header h1 {
  
  width: 100%; /* Upewnia się, że h1 zajmuje pełną szerokość dostępną w .club-info */
}



.club-header .club-info p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.club-header .club-info p a {
    color: var(--accent-color);
    text-decoration: none;
}

.club-header .club-info p a:hover {
    text-decoration: underline;
}

.club-header .club-info .club-sport-league {
    font-size: 1.0em; /* Nieco mniejsza czcionka */
    margin-top: 0px; /* Bliżej nazwy klubu */
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.club-header .club-stadium-image {
    flex-shrink: 0;
    width: 350px; /* Dalsze zmniejszenie szerokości */
    height: 220px; /* Dalsze zmniejszenie wysokości */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative; /* Dodano dla pozycjonowania nakładki */
}

.club-header .club-stadium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.stadium-info-section h2 {
  margin-bottom: 20px;
}

.stadium-info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stadium-info-section ul li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95em;
}

.stadium-info-section ul li a {
  color: var(--accent-color);
  text-decoration: none;
}

.stadium-info-section ul li a:hover,.accent-link:hover {
  text-decoration: underline;
}

.accent-link {
  color: var(--accent-color);
  text-decoration: none;
}
/* KONIEC Style dla nowej sekcji stadium-info-section */

/* Style dla nakładki z informacjami o stadionie */
.stadium-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Półprzezroczyste tło */
    color: var(--text-primary);
    padding: 8px 10px; /* Przywrócony delikatny padding */
    box-sizing: border-box;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 0.85em; /* Nieznacznie zmniejszony rozmiar czcionki */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Cień dla lepszej czytelności */
}

.stadium-overlay-info p {
    margin: 2px 0; /* Minimalne marginesy dla akapitów */
    line-height: 1.2; /* Dalsze zmniejszenie wysokości linii */
}

/* Style dla sekcji meczów */
.all-matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.match-card {
    /* Dziedziczy z .card, dodatkowe style */
    justify-content: space-between;
    gap: 10px;
    text-decoration: none; /* Usunięcie podkreślenia dla całego linku */
}

.match-card,.match-card .teams {
    display: flex;
    align-items: center;
}

.match-card .teams {
    gap: 8px;
}

.match-card .score {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1em;
    white-space: nowrap; /* Zapobiegaj zawijaniu się wyniku */
}

.match-card.finished .status {
    background-color: rgba(119, 119, 119, 0.1);
    color: #777;
    border-color: #777;
}

.match-card.upcoming .status {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.match-card .sport-icon {
    font-size: 1.2em; /* Zmniejsz rozmiar ikony */
    color: var(--text-secondary); /* Ustaw kolor ikony na secondary */
}


/* General table styling */
.standings-table-container, .squad-table-container {
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wrap,.filters {
        padding: 10px;
    }
    .filters { /* Reset dla mobilnych */
        flex-direction: row;
        gap: 10px;
        background: var(--bg-medium);
        border-radius: 8px;
        border: 1px solid var(--border-color);
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    .chip, #date-selector {
        width: auto;
        flex-grow: 1;
    }
    .content-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        border-radius: 8px;
        padding: 15px;
    }
    
    .sidebar-my-clubs {
        margin: 0 0 15px 0;
    }
    
    .sidebar-my-clubs-btn {
        font-size: 14px;
        padding: 10px 14px;
    }
    .banner-ad {
        display: none;
    }
    .main-header {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        margin-bottom: 10px;
    }
    .search-bar {
        margin-top: 10px;
        order: 1;
        flex-basis: 100%;
    }
    .club-details-container {
        padding: 10px;
        margin: 10px auto;
    }

    .club-header {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Wyśrodkuj elementy w trybie mobilnym */
    }

    .club-header .club-logo {
        margin-bottom: 15px;
    }



    .club-logo {
      width: 120px;
      height: 120px;
      object-fit: contain;
      border-radius: 10px;
      background: #fff;
      padding: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      flex-shrink: 0;
      
      margin: 0 auto 10px auto;
  }

    .club-header .club-stadium-image {
        width: 100%;
        height: 180px;
        margin-top: 15px;
    }

    .club-header .club-info p {
        text-align: center;
    }

.club-colors {
    justify-content: center;
}

}



.club-boxes-container {
  display: flex;
  
  gap: 32px;
  justify-content: flex-start;
  margin-top: 0px;
}

/* 3 kolumny dla ekranów o szerokości do 992px (np. średnie laptopy, duże tablety w trybie poziomym) */
@media (max-width: 600px) {
    .club-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.club-box, .club-card {
  background: var(--bg-medium, #1f2b49);
  border: 1.5px solid var(--border-color, #2b3a63);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-primary, #e9eef7);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  width: 100%;
  height: 220px;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.club-box:hover, .club-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  border-color: var(--accent-color, #4CAF50);
}
.club-box a, .club-card a {
    text-decoration: none;
    color: inherit;
}

.club-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin-bottom: 10px; /* Zmniejszono margin-bottom */
  margin-top: 0;
  
}

.club-name, .club-box-name {
  font-size: 0.95em; /* Zmniejszono rozmiar czcionki */
  font-weight: 700;
  margin: 0 0 5px 0; /* Zmniejszono margin-bottom */
  line-height: 1.2em; /* Dodano line-height */
  //color: var(--text-primary, #e9eef7);
  letter-spacing: 0.5px;
  text-align: center; /* Dodano explicit text-align, jeśli parent nie dziedziczy */
}

.club-details, .club-box-founded {
  font-size: 1em;
  color: var(--accent-color, #4CAF50);
  margin-top: 5px; /* Zmniejszono margin-top */
  margin-bottom: 0;
  border-top: none; /* Usunięto zieloną linię */
  padding-top: 0px; /* Usunięto padding-top związany z linią */
  width: 100%;
}

@media (max-width: 900px) {
  .club-boxes-container, .club-grid {
      gap: 18px;
  }
  .club-box, .club-card {
      min-width: 220px;
      height: 220px;
      padding: 20px;
  }
  .club-logo {
      width: 60px;
      height: 60px;
      padding: 6px;
      margin-bottom: 8px; /* Dostosowano margin-bottom */
  }
  .club-name, .club-box-name {
      font-size: 0.8em; /* Dalsze zmniejszenie rozmiaru czcionki dla mobilnych */
      margin-bottom: 4px; /* Dostosowano margin-bottom */
	 
  }
  .club-details, .club-box-founded {
      font-size: 0.95em;
      padding-top: 0px; /* Usunięto padding-top */
      margin-top: 4px; /* Dostosowano margin-top */
  }
}

@media (max-width: 600px) {
    .matches-slider-inner .slider-item {
        width: 100%; /* Jeden element na całą szerokość na małych ekranach */
    }
}

/* Style dla szczegółów newsa */
.news-details {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-medium);
    border-radius: 12px;
    overflow: hidden;
    
}

.news-details h1 {
    font-size: 28px;
    margin: 0;
    padding: 20px;
    color: var(--text-primary);
}

.news-details .image {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    padding-top: 10px;
}

.news-details .image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-details .meta {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    width: 100%;
    z-index: 1;
}

.news-details .meta , 
.news-details .meta time {
    color: #fff;
    font-size: 14px;
    z-index: 5;
    padding: 5px 10px;
    border-radius: 4px;
}

.news-details .meta .category {
    background: var(--accent-color);
}

.news-details .content {
    
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 16px;
}


.news-details .news-title {
    margin-bottom: 30px;
    padding: 20px 0 5px 0;
    border-bottom: 2px solid var(--accent-color);
    
  
}
/* Responsywność dla szczegółów newsa */
@media (max-width: 768px) {
    .news-details h1 {
        font-size: 24px;
    }

    .news-details h1,.news-details .meta {
        padding: 15px;
    }

    .news-details .content {
        padding: 20px;
        font-size: 15px;
    }
}

/* Style dla listy newsów */
.news-list-container {
    max-width: 100%;
    margin: 0 auto;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: var(--bg-medium);
    padding: 15px;
    border-radius: 8px;
}

.category-filter {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-dark);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.category-filter:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.category-filter.active {
    background: var(--accent-color);
    color: #fff;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: var(--bg-medium);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-link {
    display: flex;
    text-decoration: none;
    color: var(--text-primary);
    gap: 20px;
    padding: 15px;
}

.news-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.news-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-content h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--text-primary);
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.news-meta .category {
    background: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.urgent-icon {
   
    background: #ff2222;
    color: #fff;
    border-radius: 50%;
  padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 16px;
    background: var(--bg-medium);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.page-link.active {
    background: var(--accent-color);
    color: #fff;
}



/* Style dla sekcji newsów */
.news-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Główny news */
.main-news {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    background: var(--bg-medium);
    transition: transform 0.3s ease;
}

.main-news:hover {
    transform: translateY(-5px);
}

.main-news a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--text-primary);
}

.main-news .news-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.main-news .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.main-news h2 {
    font-size: 24px;
    margin: 10px 0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Mniejsze newsy */
.secondary-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    background: var(--bg-medium);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--text-primary);
}

.news-card .news-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.news-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Wspólne style dla wszystkich newsów */
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 14px;
}

.category {
    background: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hashtag {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsywność */
@media (max-width: 768px) {
    .main-news {
        height: 300px;
    }

    .news-card {
        height: 200px;
    }

    .main-news h2 {
        font-size: 20px;
    }

    .news-card h3 {
        font-size: 16px;
    }

    .news-meta {
        font-size: 12px;
    }

    .secondary-news {
        grid-template-columns: 1fr;
    }
}

/* Style dla strony newsów */
.news-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.news-header {
    margin-bottom: 30px;
}

.news-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-filter {
    padding: 8px 16px;
    background: var(--bg-medium);
    color: var(--text-primary);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-filter:hover {
    background: var(--bg-light);
}

.category-filter.active {
    background: var(--accent-color);
    color: #fff;
}

.news-list {
    flex-direction: column;
}

.news-list,.news-item {
    display: flex;
    gap: 20px;
}

.news-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
    padding: 20px;
}

.news-item:hover {
    transform: translateY(-3px);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-content h2 {
    margin: 0;
    font-size: 20px;
}

.news-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-content h2 a:hover {
    color: var(--accent-color);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.news-meta .category {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 16px;
    background: var(--bg-medium);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--bg-light);
}

.page-link.active {
    background: var(--accent-color);
    color: #fff;
}



/* Style dla linku do pełnej tabeli */
.full-table-link {
    display: inline-block;
    text-align: center;
    margin: 20px 10px; /* Zmieniono, aby dodać odstępy poziome i pionowe */
    padding: 10px 15px;
    background-color: var(--accent-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.full-table-link:hover { /* Ciemniejszy zielony, jak w btn-tickets */
    transform: translateY(-2px); /* Delikatne uniesienie, jak w btn-tickets */
}

.full-table-link:hover,.full-table-link.active {
    background-color: #3CB371;
    color: #fff;
    border-color: var(--accent-color);
    
}

.full-table-link.active { /* Ciemniejszy zielony, jak w btn-tickets */
    
}


/* Style dla barw klubowych */
.club-colors {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Style dla sekcji Social Media */
.social-media-section .social-media-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    width: 32px;  /* Stała szerokość */
    height: 32px; /* Stała wysokość */
    background-color: currentColor; /* Kluczowa właściwość! Tło przyjmuje kolor tekstu. */
    color: var(--text-primary); /* Ustaw domyślny kolor ikony */
    transition: color 0.3s ease;

    /* Właściwości maski */
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 70%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 70%;
}

.social-icon:hover {
    color: var(--accent-color); /* Zmień kolor ikony po najechaniu */
}





/* Style dla przycisku biletów */
.club-actions {
    text-align: center;
    margin-top: 16px; /* Przesunięcie do góry, aby był bliżej nagłówka */
    margin-bottom: 20px;
}

.btn-tickets {
    display: inline-block;
    padding: 8px 15px; /* Zmniejszony padding */
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px; /* Zmniejszony border-radius */
    font-weight: 700;
    font-size: 0.9em; /* Zmniejszony rozmiar czcionki */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(var(--accent-color-rgb), 0.4);
}

.btn-tickets:hover {
    background-color: #3CB371; /* Ciemniejszy zielony */
    transform: translateY(-2px);
}

/* Style dla slidera meczów */
.matches-slider-section {
    margin-bottom: 40px;
}

.matches-slider-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Odstęp między przyciskami a sliderem */
    padding: 20px;
    background: var(--bg-medium);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* Ważne, aby ukryć to, co wykracza poza kontener */
}

.matches-slider-inner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    flex-grow: 1;
    gap: 20px; /* Odstęp między kartami */
    padding-bottom: 15px; /* Dodatkowe miejsce na ewentualny pasek przewijania */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.matches-slider-inner::-webkit-scrollbar { /* Chrome, Safari */
    display: none;
}

.matches-slider-inner .slider-item {
    flex-shrink: 0;
    width: calc(50% - 10px); /* Dwa elementy z odstępem 20px */
    max-width: 400px; /* Ograniczenie maksymalnej szerokości karty na desktopie */
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.matches-slider-inner .slider-item:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.matches-slider-inner .slider-item .match-info {
    flex-grow: 1;
}

.matches-slider-inner .slider-item .time {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.matches-slider-inner .slider-item .teams {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.matches-slider-inner .slider-item .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.matches-slider-inner .slider-item .score {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--accent-color);
    white-space: nowrap;
}

.matches-slider-inner .slider-item .league-name {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 5px;
}

.matches-slider-inner .slider-item .status {
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    text-align: center;
    align-self: flex-start; /* Dopasowanie do lewej strony */
}

.matches-slider-inner .slider-item.finished .status {
    background-color: rgba(119, 119, 119, 0.1);
    color: #777;
    border-color: #777;
}

.matches-slider-inner .slider-item.upcoming .status {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.slider-nav-button {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.8em;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.slider-nav-button:hover {
    background: var(--accent-color);
    color: #fff;
}

.slider-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-medium);
    color: var(--text-secondary);
}


/* Responsive adjustments for matches slider */
@media (max-width: 1024px) {
    .matches-slider-inner .slider-item {
        width: calc(100% / 2 - 15px); /* Dwa elementy na tablecie, z odstępem 20px */
    }
}

@media (max-width: 768px) {
    .matches-slider-container {
        padding: 10px;
    }
    .matches-slider-inner {
        gap: 15px;
        padding-bottom: 10px;
    }
    .matches-slider-inner .slider-item {
        width: 95%; /* Jeden element na całą szerokość na mobilnych */
        max-width: none;
        scroll-snap-align: center;
    }
    .slider-nav-button {
        font-size: 1.5em;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .table .col-z,
    .table .col-r,
    .table .col-p,
    .table .col-bramki {
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .table .col-z,
    .table .col-r,
    .table .col-p {
        display: none;
    }
}
    .matches-slider-container {
        gap: 5px;
    }
    .matches-slider-inner .slider-item {
        width: 100%;
    }
    .matches-slider-inner {
        padding-bottom: 5px;
    }
    .slider-nav-button {
        padding: 5px 8px;
        font-size: 1.2em;
    }


/* Zapewnienie responsywności */
@media (max-width: 1200px) {
    .club-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Dynamiczne kolumny */
    }
}

@media (max-width: 900px) {
    .club-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }
    /* Dostosowanie dla club-box na mniejszych ekranach */
    .club-box, .club-card {
        max-width: none;
        min-width: unset;
        width: auto;
    }
}

@media (max-width: 600px) {
    .club-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* --- NOWOCZESNY UKŁAD STRONY INSPIROWANY FLASHSCORE --- */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1300px;
  margin: 0 auto;
  gap: 32px;
  padding: 24px 0;
}

.sidebar {
  width: 220px;
  min-width: 180px;
  max-width: 260px;
  background: var(--bg-medium);
  border-radius: 12px;
  padding: 20px 0 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.main-content {
  flex: 1 1 0;
  min-width: 0;
  
  display: flex;
  flex-direction: column;
  
}

.rightbar-ad {
  width: 300px;
  min-width: 220px;
  max-width: 340px;
  /* Jeśli nie chcesz prawego panelu, ustaw display: none; */  /* <<< to dodaj */     /* <<< wyśrodkowanie w poziomie */
  
}

.rightbar-ad,.ad-container {
  background: var(--bg-medium);
  border-radius: 12px;
  padding: 5px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  flex-shrink: 0;
 display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}

.ad-container {
  /* Jeśli nie chcesz prawego panelu, ustaw display: none; */  /* <<< to dodaj */     /* <<< wyśrodkowanie w poziomie */
  
}




@media (max-width: 1200px) {
  .container {
    gap: 16px;
  }
  
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    gap: 0;
    padding: 0 5px;
  }
}

.rightbar {
        width: 300px;
        max-width: 100%;
}

@media (max-width: 1024px) {
    .rightbar {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 16px;
    }
  .main-content {
    max-width: 100%;
    
  }
}

/* Style dla strony szczegółów stadionu */
.stadion-details-container {
    max-width: 100%; /* Dopasowanie do szerokości main-content */
    margin: 0 auto 20px auto;
    padding: 4px;
    background: var(--bg-medium);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stadion-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stadion-info p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.stadion-map {
    margin-top: 30px;
}

.static-matches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.static-match-card {
    margin-bottom: 0; /* Już w siatce, więc nie potrzebujemy indywidualnego marginesu dolnego */
}

/* Stadium Rating Section */
.stadium-overall-rating {
    margin-bottom: 20px;
}

.rating-overview {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rating-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.rating-score {
    font-size: 3em;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.rating-count-text {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.rating-breakdown {
    flex: 1;
    min-width: 250px;
}

.rating-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px;
    background: var(--bg-dark);
    border-radius: 8px;
}

.rating-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    min-width: 120px;
}

/* Stadium Rating Form */
.stadium-rating-form {
    max-width: 600px;
}

.rating-categories {
    margin-bottom: 20px;
}

.rating-category {
    margin-bottom: 15px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 8px;
}

.rating-category label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.star-rating-input {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.star-input {
    font-size: 24px;
    color: var(--border-color);
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
}

.star-input:hover,
.star-input.hover {
    color: #ffa500;
    transform: scale(1.1);
}

.star-input.selected {
    color: #ffa500;
}

.review-text-fields {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.95em;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.btn-submit-rating {
    background: var(--accent-color);
    color: var(--bg-dark);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit-rating:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Reviews Section */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author strong {
    color: var(--text-primary);
}

.review-date {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.review-title {
    margin: 10px 0;
    font-size: 1.1em;
    color: var(--text-primary);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.alert-success {
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.3);
    color: #00ff7f;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}




.date-selector-wrapper.livescore-style {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-medium);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.date-selector-wrapper.livescore-style .date-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.date-selector-wrapper.livescore-style .date-nav-item:hover {
  background: var(--bg-light);
}

.date-selector-wrapper.livescore-style .live-button {
  background: #ff4a4a;
  color: #fff;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 10px;
}

.date-selector-wrapper.livescore-style .date-nav-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2em;
  padding: 8px 5px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.date-selector-wrapper.livescore-style .date-nav-button:hover {
  color: var(--text-primary);
}

.date-selector-wrapper.livescore-style .current-date-display {
  flex-grow: 1;
  text-align: center;
  font-size: 1.1em;
  font-weight: 700;
   min-width: 200px; /* lub 100px, zależnie jak chcesz */
    text-align: center; /* żeby tekst był wyśrodkowany */
    display: inline-block;
  
}

.date-selector-wrapper.livescore-style .calendar-button {
  position: relative;
  margin-left: 10px;
  background: var(--bg-dark);
  border-radius: 50%; /* Zmieniono na 50%, aby był okrągły */
  width: 36px; /* Ustawiona szerokość */
  height: 36px; /* Ustawiona wysokość */
  display: flex; /* Użyj flexbox do centrowania ikony */
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.date-selector-wrapper.livescore-style .calendar-button i {
  margin-right: 0px; /* Usunięto margines, aby ikonka była wyśrodkowana */
  margin: 0; /* Dodano, aby upewnić się, że nie ma żadnych domyślnych marginesów */
  padding: 0; /* Przywrócono brak paddingu */
  color: var(--text-secondary);
  font-size: 1.1em; /* Dostosowanie rozmiaru fontu ikony */
  position: relative; /* Pozwala na drobne korekty pozycji */
  left: 23px; /* Drobna korekta, aby wyśrodkować ikonę */
}

.date-selector-wrapper.livescore-style .calendar-button #calendar-day-display {
  color: var(--text-primary);
  font-weight: 600;
}

.date-selector-wrapper.livescore-style .hidden-date-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Wyróżnienie klubów śląskich (jeśli jeszcze nie ma) */
.is-slaski-club {
    color: #FFD700 !important; /* Żółty kolor */
    font-weight: bold; 
}




.match-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0; /* separator między wierszami */
  transition: background 0.2s;
}

.match-row:hover {
  background: var(--bg-medium);
}

.match-cell {
  padding: 0 5px;
  text-align: center;
}

.match-cell.league-info {
      font-size: 10px;            /* mniejszy rozmiar */
      text-transform: uppercase;  /* drukowane litery */
      margin: 10px 10px;
      font-family: Arial, sans-serif;
      text-align: right; 
	    color: var(--text-secondary);  /* wyrównanie do prawej */
}

.match-cell.teams {
  flex: 1;
  text-align: left;
  font-weight: normal;
  min-width: 190px;
}

.match-cell.date {
  min-width: 80px;
  text-align: center;
  white-space: nowrap; /* data i godzina w jednej linii */
  font-size: 11px;
  color: var(--text-secondary);
}

.player-event {
  white-space: nowrap;       /* Nie przechodź do nowej linii */
  overflow: hidden;          /* Ukryj nadmiar tekstu */
  text-overflow: ellipsis;   /* Dodaj "..." na końcu, jeśli tekst się nie mieści */
  max-width: 230px;          /* Opcjonalnie – szerokość kontenera */
}

.match-cell.odds a {
  margin: 0 4px;
  color: #28a745; /* zielony */
  text-decoration: none; /* usuwa podkreślenie */
}

.match-cell.favorite {
  width: 30px;
  text-align: center;
}

.match-cell.status {
  min-width: 20px;
  flex-shrink: 0;
  padding: 0 5px;
  border: 0px;
}

/* Kolumna wyniku */
.match-cell.score {
  min-width: 65px;       /* stała szerokość kolumny */
  max-width: 65px;
  text-align: center;
  font-weight: bold;     /* pogrubienie wyniku */
  font-size: 1.1rem;     /* większa czcionka */
  color: #ffffff;        /* wyróżniający kolor */
  background-color: #1f2b49; /* lekki podkład */
  border-radius: 4px;
  padding: 4px 4px;
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-radius: 50%;
  background: #777777;
}

/* Responsywne style dla listy meczów */
@media (max-width: 768px) {
    .match-cell.status {
        display: none; /* Ukrycie statusu na mobilnych */
    }

    .match-cell.sport-icon {
        font-size: 14px; /* Mniejsza ikona sportu */
    }

    .match-cell.teams {
        min-width: 140px;
        font-size: 0.9em;
    }
    
    /* NOWE STYLE DLA NAZW DRUŻYN - NADPISANIE POPRZEDNICH */
/* Domyślnie ukryj wszystkie warianty */
.match-cell.teams .team-name-full,
.match-cell.teams .team-name-medium,
.match-cell.teams .team-name-abbr {
    display: none !important;
}

/* Pokaż średnią nazwę na ekranach większych niż 480px */
.match-cell.teams .team-name-medium {
    display: inline !important;
}

/* Pokaż skrót tylko na małych ekranach */
@media (max-width: 480px) {
    .match-cell.teams .team-name-medium {
        display: none !important;
    }
    .match-cell.teams .team-name-abbr {
        display: inline !important;
    }
}

    .match-cell.date {
        min-width: 40px; /* Węższa kolumna daty */
        font-size: 8px; /* Mniejsza czcionka */
    }

    .match-cell.league-info {
        font-size: 8px; /* Jeszcze mniejsza czcionka dla ligi */
        margin: 5px; /* Mniejsze marginesy */
    }

    .match-cell.score {
        min-width: 65px; /* Węższa kolumna wyniku */
        max-width: 65px;
        font-size: 1rem;
        padding: 3px 2px;
    }

    .match-row {
        padding: 6px 8px; /* Mniejsze odstępy */
        
    }
}

@media (max-width: 480px) {

    .match-cell.teams,.match-cell.date {
        min-width: 45px; /* Jeszcze węższa kolumna daty */
        font-size: 11px; /* Jeszcze mniejsza czcionka */
    }

    .match-cell.odds {
        display: none; /* Ukrycie kursów */
    }

    .match-row {
        padding: 4px 6px; /* Jeszcze mniejsze odstępy */
        margin-bottom: 4px;
    }

.match-cell.sport-icon {
        font-size: 9px; /* Mniejsza ikona sportu */
    }

}

.live { background: #f44336; }
.upcoming { background:  #d1c4e9;}
.finished { background:  #4CAF50;}
.waiting { background: #ffca28;}
.derby { background: linear-gradient(90deg, rgb(8, 48, 230) 50%, rgb(221, 245, 8) 50%); }

.derby-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  margin-left: 6px;
  background: linear-gradient(to bottom, #213aa6 0%, #213aa6 40%, #ffd700 40%, #ffd700 60%, #213aa6 60%, #213aa6 100%);
  border: 1px solid #fff;
  border-radius: 2px;
}

.derby-flag:hover {
  opacity: 0.8;
}

.zoneTop h1 {
      font-size: 8px;            /* mniejszy rozmiar */
      text-transform: uppercase;  /* drukowane litery */
      margin: 10px 10px;
      font-family: Arial, sans-serif;
      text-align: left; 
	  color: #666;	  /* wyrównanie do prawej */
    }

   

    

   
	
.seo-text {
      font-size: 14px;            /* mniejszy rozmiar */
      
      margin: 10px 10px;
      color: var(--text-primary);
      text-align: justify; 
	  
    }	
	
.match-details-container { max-width: 900px; margin: 20px auto; padding: 20px; background: var(--bg-medium); border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); color: var(--text-primary);}
.match-header-details { display:flex; justify-content: space-around; align-items: center; margin-bottom: 30px; text-align:center;}
.match-header-details .team-logo { width:80px; height:80px; object-fit:contain; margin-bottom:10px; border-radius:50%; background:#fff; padding:5px;}
.match-header-details .score-info { font-size:2.5em; font-weight:bold; color: var(--accent-color);}
.tabs { display:flex; gap:10px; margin-bottom:20px;}
.tab-btn { padding:10px 15px; border:none; cursor:pointer; background:var(--bg-dark); color:#fff; border-radius:5px;}
.tab-btn.active { background: var(--accent-color);}
.tab-content { display:none;}
.tab-content.active { display:block;}
.lineups-flex { display:flex; gap:30px; flex-wrap:wrap;}
.lineup ul { list-style:none; padding:0;}
.lineup ul li { background: var(--bg-dark); margin-bottom:5px; padding:5px; border-radius:5px;}
.timeline { list-style:none; padding:0;}
.timeline li { margin-bottom:5px;  background: var(--bg-dark); border-radius:5px;}
.btn-back { display:inline-block; padding:10px 20px; background-color: var(--accent-color); color:#fff; text-decoration:none; border-radius:5px; margin-top:20px; transition:0.3s;}
.btn-back:hover { background-color:#3CB371;}


.player-row {
    
    grid-template-columns: 50px 1fr 50px; /* stałe proporcje */
    align-items: center;
    gap: 8px; /* przerwa między kafelkami */
    margin: 9px 0px 6px 0px;
}

.player-row span {
    
    border-radius: 6px;
    background: var(--bg-dark);
}

/* Numer */
.player-row .num {
    text-align: center;
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* Nazwisko */
.player-row .name {  /* można też left, jeśli wolisz */        /* obcina nadmiar */ /* dodaje "..." przy długim nazwisku */     /* blokuje zawijanie w dół */
}

.player-row .name,.namezm {
    text-align: center;
    font-size: 1em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.namezm {  /* można też left, jeśli wolisz */        /* obcina nadmiar */ /* dodaje "..." przy długim nazwisku */     /* blokuje zawijanie w dół */
}

/* Pozycja */
.player-row .pos {
    text-align: center;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.lineups-flex {
    display: grid;
    grid-template-columns: 1fr 1fr; /* dwie kolumny dla drużyn */
    gap: 4px;
    font-size: 10px;
}

@media screen and (min-width: 480px) {
    .lineups-flex {
       font-size: 14px;
    }       
}



/* Wyśrodkowanie / wyrównanie po lewej dla gospodarzy (domyślnie) */
.lineup.home {
    text-align: left;
}

/* Wyrównanie tekstu dla gości */
.lineup.away h3,
.lineup.away p,
.lineup.away p strong {
    text-align: right;
}

.timeline .assist {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 2px;
}
.timeline li.periodscore-event {
    background: var(--bg-light);  /* jaśniejszy odcień niż reszta */
    border: 1px solid var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
}

.match-details-container {
    margin-bottom: 1.5rem;
}

.match-meta {
    font-size: 0.85em;
    text-transform: uppercase; /* drukowane litery */
    margin-bottom: 0.5rem;
	
}


.match-meta,.match-extra {
    text-align: center;
    color: var(--text-secondary);
}


.match-extra {
    font-size: 0.9em;
    margin-top: 0.5rem;
}

.kit {
    width: 24px;
    height: 24px;
    background: var(--base);
    border-radius: 4px;
    position: relative;
    display: inline-block;
    margin: 0 0.5rem;
}

.kit::before,
.kit::after {
    content: "";
    position: absolute;
    top: 0;
    width: 8px;
    height: 12px;
    background: var(--sleeve);
}

.kit::before { left: -8px; border-top-left-radius: 4px; }
.kit::after { right: -8px; border-top-right-radius: 4px; }


.score-display {
    font-size: 3em;
    font-weight: bold;
    color: #2ecc71; /* zielony */
    text-align: center;
    margin: 1rem 0;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 10px;
}


@media (min-width: 480px) {
    .timeline { font-size: 14px;
}
}

.timeline li {
    display: grid;
    grid-template-columns: 30px 1fr 30px 1fr; /* pięć kolumn */
    align-items: center;
    margin: 5px 0;
}
/* Minuta: wycentrowana jak w składzie */
.timeline .minute {
    text-align: center;
    
    color: var(--text-secondary);
}
/* Gospodarze: wyrównanie do prawej */
.timeline .home-event {
    text-align: right;
}
/* Wynik: wycentrowany */
.timeline .score {
    text-align: center;
    font-weight: bold;
}
/* Goście: wyrównanie do lewej */
.timeline .away-event {
    text-align: left;
}
/* Pusta kolumna */
.timeline .spacer {
    width: 60px;
}
.icon-goal { color: green; }
.icon-yellow { color: gold; }
.icon-red { color: red; }

.score-display {
    font-size: 3em; /* zielony */
}

.score-display,.countdown-timer {
    font-weight: bold;
    color: #2ecc71;
    text-align: center;
    margin: 1rem 0;
	
}

.countdown-timer {
	font-size: 1em; /* zielony */
	
}


.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}
.stats-table th, .stats-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid var(--bg-dark);
}
.stats-table th {
    background: var(--bg-dark);
    color: #fff;
}
.stats-grid {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.stat-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px; /* gospodarze - nazwa - goście */
    align-items: center;
    gap: 10px;
    background: var(--bg-dark);
    padding: 8px 12px;
    border-radius: 6px;
}

.stat-home, .stat-away {
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
    color: var(--text-primary);
}

.stat-name {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.match-title {
     text-align: center;
    font-size: 16px;
    margin: 0;
    font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* odstęp między drużynami */
}

@media screen and (max-width: 768px) {
  .match-title {
    font-size: 10px;
    gap: 20px; /* zmniejszamy też odstęp dla małych ekranów */
  }
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; 
  width:50%;
}
/* Style dla paginacji */
.pagination-right {
    margin-top: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 10px; /* Miejsce na scrollbar */
}

.pagination {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 10px 0;
    padding: 0 4px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--bg-light);
}

.page-link:hover,.page-link.active {
    border-color: var(--accent-color);
}

.page-link.active {
    background: var(--accent-color);
    color: #fff;
    font-weight: bold;
}

/* Styl dla separatora stron */
.page-dots {
    padding: 8px 12px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .pagination-right {
        margin: 20px -15px 0;
        padding: 0 15px 10px;
    }
    
    .page-link {
        padding: 6px 10px;
        min-width: 36px;
        font-size: 0.9em;
    }
}



.player-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.player-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

#modalStatsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#modalStatsTable td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}



/* Style dla sekcji składu */
.squad-table-container {
    background: var(--bg-dark);
    border-radius: 8px;
    overflow-x: auto; /* Przewijanie poziome dla małych ekranów */
    border: 1px solid var(--border-color);
}

.squad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--text-primary);
}

.squad-table th,
.squad-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap; /* Zapobiega zawijaniu tekstu w komórkach */
}

.squad-table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer; /* Wskazuje, że kolumny są sortowalne */
    transition: background 0.2s ease;
}

.squad-table th:hover {
    background: var(--bg-medium);
}

.squad-table th.asc::after {
    content: ' ↑';
}

.squad-table th.desc::after {
    content: ' ↓';
}

.squad-table tbody tr:last-child td {
    border-bottom: none;
}

.squad-table tbody tr:hover {
    background: rgba(var(--accent-color-rgb), 0.05);
}

.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
}
.modal-content {
	background: var(--bg-dark);
    color: var(--text-primary);
    padding: 20px; border-radius: 10px; width: 400px;
    z-index: 10001;
}

.match-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto auto auto;
    align-items: center;
   
    
    text-decoration: none;   /* usuwa podkreślenie linka */
    color: inherit;          /* dziedziczy kolory */
}

.match-row:hover {
  
    cursor: pointer;
}

.match-row * {
    text-decoration: none;
    color: inherit;
}

.sidebar-detail-value {

    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg-dark);
	
	
}

.sidebar-detail-line {
margin-top: 10px; 
	
}

.score-display-box {
    font-size: 1em;
    font-weight: bold;
    color: #2ecc71; /* zielony */
    text-align: center;
    margin: 1rem 0;
	text-transform: lowercase;
}

.sidebar .league-item-box {
  margin-bottom: 5px;
  border: 1px solid var(--text-secondary);
  border-radius: 5px;
  padding: 10px 0px;
}

#upcoming-league-matches #past-league-matches{
	text-align:center;
	
}

.league-match-item {
	padding: 5px 0px;
	
}



.sidebar-detail-label {
  display: block;
  white-space: nowrap;
  text-align: center;
  margin: 0 auto;
}

.match-meta-sidebar .sidebar-club-name{
	display:block;
	
}
.team-block-name {
	
	margin-top:5px;
	
}



/* NOWE STYLE DLA ULEPSZONEGO SIDEBARA SZCZEGÓŁÓW MECZU */

/* Style dla drużyn śląskich */
.no-silesian-teams {
    text-align: center;
    padding: 20px;
}

.no-teams-message {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.no-teams-message p {
    margin: 0;
    margin-top: 10px;
}

.silesian-team-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.silesian-team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.team-card-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.team-card-link {
    text-decoration: none;
    color: inherit;
}

.team-card-link,.team-logo-container {
    display: flex;
    align-items: center;
}

.team-logo-container {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    position: relative;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.team-logo-fallback {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5em;
}

.team-info {
    flex: 1;
}

.team-name {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #000;
}

.team-gender-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.team-stats-grid {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    gap: 10px;
}

.stat-item,.stat-icon {
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 30px;
    height: 30px;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 6px;
    font-size: 0.9em;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.75em;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 0.9em;
    color: var(--text-primary);
    font-weight: 700;
}

.match-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-date {
    font-size: 0.75em;
    color: var(--text-secondary);
}

.match-teams {
    font-size: 0.8em;
    color: var(--text-primary);
    font-weight: 600;
}

.no-data {
    font-size: 0.8em;
    color: var(--text-secondary);
    font-style: italic;
}

/* Style dla nadchodzących meczów */
.upcoming-match-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upcoming-match-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.upcoming-match-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.match-date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-day-badge {
    font-size: 0.7em;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 8px;
    text-align: center;
    background: var(--bg-dark);
    color: var(--text-primary);
}

.match-day-badge.today {
    background: #e74c3c;
    color: white;
}

.match-day-badge.tomorrow {
    background: #f39c12;
    color: white;
}

.match-time {
    font-size: 0.8em;
    color: var(--text-secondary);
    font-weight: 600;
}


.match-teams-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.team-block {
    flex: 1;
    text-align: center;
}

.team-block .team-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #000;
}

.vs-separator {
    margin: 0 8px;
    color: #3498db;
    font-size: 0.8em;
}

.match-footer {
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.league-indicator {
    font-size: 0.7em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Style dla ostatnich meczów */
.past-match-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.past-match-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: #e74c3c;
}

.past-match-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px;
}

.match-day-badge.yesterday {
    background: #95a5a6;
    color: white;
}

.score-block {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
    background: var(--bg-dark);
    padding: 4px 8px;
    border-radius: 6px;
}

.score-home, .score-away {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9em;
}

.score-separator {
    color: var(--text-secondary);
    font-weight: 700;
}

.result-status {
    font-size: 0.7em;
    color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
}

/* Style dla sidebar-toggle-btn i overlay */
.sidebar-toggle-btn { /* Domyślnie ukryty */
    z-index: 1000;
    left: 10px;
    top: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.sidebar-toggle-btn,.sidebar-overlay {
    display: none;
    position: fixed;
}

.sidebar-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}



/* Style dla przycisku toggle */
.sidebar-toggle-btn {
    display: none; /* Domyślnie ukryty */
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1000;
}

.sidebar-toggle-btn:hover {
    background: #3CB371;
}

.h2h-title {
   
    text-align: center;
}

.rightbar-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .rightbar-container {
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
        display: grid;
    }
    .rightbar-important-topics,
    .vote-slider {
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .rightbar-container {
        display: flex;
    }
}

.event-slider-container { position: relative; margin: 30px 0; }
                .event-slider { display: flex; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
                .event-slide { min-width: 220px; margin-right: 18px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px #0001; padding: 8px; }
                .event-poster { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
                .event-date { font-size: 0.9rem; color: #2c812f; }
                .event-info { padding: 6px 0; font-size: 0.95rem;min-height: 100px; color: #000; }
                .event-title,.event-btn { font-weight: 600; }
                .event-btn { display: block; margin: 10px auto 0 auto; background: #2c812f; color: #fff; border: none; border-radius: 6px; padding: 7px 18px; text-align: center; text-decoration: none; font-size: 0.97rem; transition: background 0.2s; }
                .event-btn:hover { background: #18611aff }





/* header.css */
.header-icon-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.header-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--text-primary);
    transition: background-color 0.2s ease;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.header-icon-button:hover .header-icon {
    background-color: var(--accent-color);
}

/* stadium-boxes.css */
/* Style dla boxów stadionowych */
.stadium-boxes-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 0px;
}

.stadium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.stadium-box {
    background: var(--bg-medium);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-primary);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    width: 100%; /* dopasuj do kolumny */
  box-sizing: border-box;
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
}

.stadium-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    border-color: var(--accent-color);
}

.stadium-box a {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stadium-box .stadium-logo {
    width: 100%;
  height: auto;
  max-width: 280px;
  object-fit: contain;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-bottom: 10px;

}

.stadium-box .club-box-name {
    font-size: 0.95em;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
    color: var(--text-primary);
}

.stadium-box .stadium-box-content {
    width: 100%;
}

.stadium-box .stadium-city,
.stadium-box .stadium-capacity {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stadium-box .stadium-city .fa,
.stadium-box .stadium-capacity .fa {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: var(--accent-color);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.stadium-box .club-details {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Stadium Rating Stars */
.stadium-rating-display {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.stadium-rating-display.no-ratings {
    border-top: none;
}

.stadium-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stadium-rating-stars .star {
    font-size: 16px;
    line-height: 1;
}

.stadium-rating-stars .star-full {
    color: #ffa500;
}

.stadium-rating-stars .star-half {
    color: #ffa500;
    opacity: 0.6;
}

.stadium-rating-stars .star-empty {
    color: var(--border-color);
}

.stadium-rating-stars .rating-number {
    margin-left: 6px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
}

.stadium-rating-display .rating-count {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-left: 4px;
}

.stadium-rating-display .no-rating-text {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-style: italic;
}

/* icons.css */


/* =========================================
   SOCIAL ICONS — minimalist SVG mask system
   ========================================= */


/* Ogólny styl dla ikon FontAwesome lokalnych */
.fas {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: white;
  transition: background-color 0.3s ease, transform 0.3s ease;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  vertical-align: middle;
}

.fa:hover, .fas:hover {
  background-color: #00ff7f;
  transform: scale(1.1);
}


/* Kontener sekcji social media */
.social-media-section .social-media-links {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Styl bazowy ikony */
.social-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: white; /* domyślny kolor ikon */
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-right: 8px;
  vertical-align: middle;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 70%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 70%;
}

/* efekt hover — zielony i powiększenie */
.social-icon:hover {
  background-color: #00ff7f;
  transform: scale(1.1);
}

/* ==============================
   MASKI SVG DLA POSZCZEGÓLNYCH IKON
   ============================== */

/* Facebook */
.fa-facebook {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M279.1 288l14.2-92.7h-88.9v-60.1c0-25.4 12.4-50.1 52.2-50.1h40.4V6.3S260.5 0 225.4 0C152.2 0 101.3 44.4 101.3 124.7v70.6H22.9V288h78.4v224h100.2V288z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M279.1 288l14.2-92.7h-88.9v-60.1c0-25.4 12.4-50.1 52.2-50.1h40.4V6.3S260.5 0 225.4 0C152.2 0 101.3 44.4 101.3 124.7v70.6H22.9V288h78.4v224h100.2V288z"/></svg>');
}

/* Instagram */
.fa-instagram {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8z"/></svg>');
}

/* X (Twitter) */
.fa-twitter {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8l164.9-194.5L24.6 48h148.6l95.5 132.3L389.2 48zM364.4 421.8h39.1L151.1 88h-42l255.3 333.8z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8l164.9-194.5L24.6 48h148.6l95.5 132.3L389.2 48zM364.4 421.8h39.1L151.1 88h-42l255.3 333.8z"/></svg>');
}

/* YouTube */
.fa-youtube {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M549.7 124.1c-6.3-23.7-24.9-42.4-48.6-48.6C450.4 64 288 64 288 64S125.6 64 74.9 75.5c-23.7 6.3-42.4 24.9-48.6 48.6C16 159.6 16 256 16 256s0 96.4 10.3 131.9c6.3 23.7 24.9 42.4 48.6 48.6C125.6 448 288 448 288 448s162.4 0 213.1-11.5c23.7-6.3 42.4-24.9 48.6-48.6C560 352.4 560 256 560 256s0-96.4-10.3-131.9zM232 344V168l152 88-152 88z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M549.7 124.1c-6.3-23.7-24.9-42.4-48.6-48.6C450.4 64 288 64 288 64S125.6 64 74.9 75.5c-23.7 6.3-42.4 24.9-48.6 48.6C16 159.6 16 256 16 256s0 96.4 10.3 131.9c6.3 23.7 24.9 42.4 48.6 48.6C125.6 448 288 448 288 448s162.4 0 213.1-11.5c23.7-6.3 42.4-24.9 48.6-48.6C560 352.4 560 256 560 256s0-96.4-10.3-131.9zM232 344V168l152 88-152 88z"/></svg>');
}

/* TikTok */
.fa-tiktok {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M448 209.9a210.1 210.1 0 0 1-122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V209.9a210.1 210.1 0 0 1 210.8-102.1 212.3 212.3 0 0 1 0 102.1z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M448 209.9a210.1 210.1 0 0 1-122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V209.9a210.1 210.1 0 0 1 210.8-102.1 212.3 212.3 0 0 1 0 102.1z"/></svg>');
}

/* External link (default) */
.fa-external-link-alt {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M432 320H400a16 16 0 0 0-16 16v112H80V128h112a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16H64A64 64 0 0 0 0 128v320a64 64 0 0 0 64 64h320a64 64 0 0 0 64-64V336a16 16 0 0 0-16-16zm56-320H320a32 32 0 0 0-22.6 54.6l35.4 35.4-196.3 196.3a24 24 0 0 0 0 33.9l22.6 22.6a24 24 0 0 0 33.9 0L480 173.4l35.4 35.4A32 32 0 0 0 512 192V32a32 32 0 0 0-32-32z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M432 320H400a16 16 0 0 0-16 16v112H80V128h112a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16H64A64 64 0 0 0 0 128v320a64 64 0 0 0 64 64h320a64 64 0 0 0 64-64V336a16 16 0 0 0-16-16zm56-320H320a32 32 0 0 0-22.6 54.6l35.4 35.4-196.3 196.3a24 24 0 0 0 0 33.9l22.6 22.6a24 24 0 0 0 33.9 0L480 173.4l35.4 35.4A32 32 0 0 0 512 192V32a32 32 0 0 0-32-32z"/></svg>');
}

/* Strzałka w lewo */
.fa-chevron-left {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'><path d='M238.5 475.5c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L17.5 289.9c-9.4-9.4-9.4-24.6 0-33.9L182 6.1c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L89.9 256l148.6 219.5z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'><path d='M238.5 475.5c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L17.5 289.9c-9.4-9.4-9.4-24.6 0-33.9L182 6.1c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L89.9 256l148.6 219.5z'/></svg>");
}

/* Strzałka w prawo */
.fa-chevron-right {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'><path d='M17.5 36.5c-9.4-9.4-9.4-24.6 0-33.9L40.1-20c9.4-9.4 24.6-9.4 33.9 0L238.5 222.1c9.4 9.4 9.4 24.6 0 33.9L74 506c-9.4 9.4-24.6 9.4-33.9 0L17.5 483.4c-9.4-9.4-9.4-24.6 0-33.9L166.1 256 17.5 36.5z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'><path d='M17.5 36.5c-9.4-9.4-9.4-24.6 0-33.9L40.1-20c9.4-9.4 24.6-9.4 33.9 0L238.5 222.1c9.4 9.4 9.4 24.6 0 33.9L74 506c-9.4 9.4-24.6 9.4-33.9 0L17.5 483.4c-9.4-9.4-9.4-24.6 0-33.9L166.1 256 17.5 36.5z'/></svg>");
}


.fa-bars {
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M0 96C0 78.33 14.33 64 32 64H416c17.67 0 32 14.33 32 32S433.67 128 416 128H32C14.33 128 0 113.67 0 96zM0 256c0-17.7 14.33-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.33 288 0 273.7 0 256zM448 416c0 17.7-14.3 32-32 32H32c-17.67 0-32-14.3-32-32s14.33-32 32-32H416C433.7 384 448 398.3 448 416z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M0 96C0 78.33 14.33 64 32 64H416c17.67 0 32 14.33 32 32S433.67 128 416 128H32C14.33 128 0 113.67 0 96zM0 256c0-17.7 14.33-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.33 288 0 273.7 0 256zM448 416c0 17.7-14.3 32-32 32H32c-17.67 0-32-14.3-32-32s14.33-32 32-32H416C433.7 384 448 398.3 448 416z'/></svg>");
  -webkit-mask-position: center;
  mask-position: center;
}


/* Kalendarz */
.fa-bars,.calendar-mask-icon {
  display: inline-block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.calendar-mask-icon {
  width: 2em;
  height: 2em;
  background-color: black; /* lub inny */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M152 64c0 8.8-7.2 16-16 16H96c-8.8 0-16-7.2-16-16V16c0-8.8 7.2-16 16-16h40c8.8 0 16 7.2 16 16v48zm200 0c0 8.8-7.2 16-16 16h-40c-8.8 0-16-7.2-16-16V16c0-8.8 7.2-16 16-16h40c8.8 0 16 7.2 16 16v48zM0 128c0-35.3 28.7-64 64-64h320c35.3 0 64 28.7 64 64v320c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zm400 64H48v256c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16V192z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M152 64c0 8.8-7.2 16-16 16H96c-8.8 0-16-7.2-16-16V16c0-8.8 7.2-16 16-16h40c8.8 0 16 7.2 16 16v48zm200 0c0 8.8-7.2 16-16 16h-40c-8.8 0-16-7.2-16-16V16c0-8.8 7.2-16 16-16h40c8.8 0 16 7.2 16 16v48zM0 128c0-35.3 28.7-64 64-64h320c35.3 0 64 28.7 64 64v320c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zm400 64H48v256c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16V192z'/></svg>");
}


.fa-venus {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 288 512'><path fill='white' d='M288 176c0-70.7-57.3-128-128-128S32 105.3 32 176c0 60.6 43.2 111 100 124.3V352H96c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h36v44c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-44h36c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-36v-51.7c56.8-13.3 100-63.7 100-124.3zM160 224c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 288 512'><path fill='white' d='M288 176c0-70.7-57.3-128-128-128S32 105.3 32 176c0 60.6 43.2 111 100 124.3V352H96c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h36v44c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-44h36c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-36v-51.7c56.8-13.3 100-63.7 100-124.3zM160 224c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z'/></svg>");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.female-icon {
  color: #e91e63; /* różowy */
}

/* Nowe ikony dla górnego paska */
.icon-gift {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z'/%3E%3C/svg%3E");
}

.icon-search {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
}

.icon-user {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z'/%3E%3C/svg%3E");
}

.icon-shield {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M466.5 83.7L278.6 3.1c-15.6-6.5-33.5-6.5-49.1 0L45.5 83.7C30 90.1 19 104.6 16.5 121.6 7.7 182.2 2.4 272.2 115.6 400.5c55.8 62.7 119.3 104.6 140.8 118.3 4.8 3 10.8 3 15.6 0 21.5-13.6 85-55.6 140.8-118.3C509.6 272.2 504.3 182.2 495.5 121.6c-2.5-17-13.5-31.5-29-37.9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M466.5 83.7L278.6 3.1c-15.6-6.5-33.5-6.5-49.1 0L45.5 83.7C30 90.1 19 104.6 16.5 121.6 7.7 182.2 2.4 272.2 115.6 400.5c55.8 62.7 119.3 104.6 140.8 118.3 4.8 3 10.8 3 15.6 0 21.5-13.6 85-55.6 140.8-118.3C509.6 272.2 504.3 182.2 495.5 121.6c-2.5-17-13.5-31.5-29-37.9z'/%3E%3C/svg%3E");
}

.icon-document {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M256 0v128h128L256 0zM0 64C0 28.7 28.7 0 64 0h160v160h160v288c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M256 0v128h128L256 0zM0 64C0 28.7 28.7 0 64 0h160v160h160v288c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z'/%3E%3C/svg%3E");
}

.icon-trophy {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M552 64H448V32c0-17.7-14.3-32-32-32H160c-17.7 0-32 14.3-32 32v32H24C10.7 64 0 74.7 0 88v24c0 77.4 55 141.6 128 156.8C140.8 345.9 188 399.4 256 413.9V464h-64c-8.8 0-16 7.2-16 16v16h224v-16c0-8.8-7.2-16-16-16h-64v-50.1c68-14.5 115.2-68 128-144.1 73-15.2 128-79.4 128-156.8V88c0-13.3-10.7-24-24-24zM96 168c-35.3 0-64-28.7-64-64h96v64H96zm384 0h-32V104h96c0 35.3-28.7 64-64 64z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M552 64H448V32c0-17.7-14.3-32-32-32H160c-17.7 0-32 14.3-32 32v32H24C10.7 64 0 74.7 0 88v24c0 77.4 55 141.6 128 156.8C140.8 345.9 188 399.4 256 413.9V464h-64c-8.8 0-16 7.2-16 16v16h224v-16c0-8.8-7.2-16-16-16h-64v-50.1c68-14.5 115.2-68 128-144.1 73-15.2 128-79.4 128-156.8V88c0-13.3-10.7-24-24-24zM96 168c-35.3 0-64-28.7-64-64h96v64H96zm384 0h-32V104h96c0 35.3-28.7 64-64 64z'/%3E%3C/svg%3E");
}

.icon-star {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M287.9 17.8L354 150.2 499.2 171.5c26.2 3.8 36.7 36.1 17.7 54.6L416 324.3 440.8 469c4.5 26.3-23.2 46-46.4 33.7L288 439.6 181.6 502.7c-23.2 12.2-50.9-7.4-46.4-33.7L160 324.3 59.1 226.1c-19-18.5-8.5-50.8 17.7-54.6L222 150.2 287.9 17.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M287.9 17.8L354 150.2 499.2 171.5c26.2 3.8 36.7 36.1 17.7 54.6L416 324.3 440.8 469c4.5 26.3-23.2 46-46.4 33.7L288 439.6 181.6 502.7c-23.2 12.2-50.9-7.4-46.4-33.7L160 324.3 59.1 226.1c-19-18.5-8.5-50.8 17.7-54.6L222 150.2 287.9 17.8z'/%3E%3C/svg%3E");
}


.icon-calendar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M152 64c0-8.8-7.2-16-16-16h-24c-8.8 0-16 7.2-16 16v48H48c-26.5 0-48 21.5-48 48v304c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V160c0-26.5-21.5-48-48-48h-48V64c0-8.8-7.2-16-16-16h-24c-8.8 0-16 7.2-16 16v48H152V64z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M152 64c0-8.8-7.2-16-16-16h-24c-8.8 0-16 7.2-16 16v48H48c-26.5 0-48 21.5-48 48v304c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V160c0-26.5-21.5-48-48-48h-48V64c0-8.8-7.2-16-16-16h-24c-8.8 0-16 7.2-16 16v48H152V64z'/%3E%3C/svg%3E");
}


.icon-bar-chart {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M64 448h384v32H32V32h32v416zm64-64h48V224h-48v160zm96 0h48V128h-48v256zm96 0h48V288h-48v96zm96 0h48V64h-48v320z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M64 448h384v32H32V32h32v416zm64-64h48V224h-48v160zm96 0h48V128h-48v256zm96 0h48V288h-48v96zm96 0h48V64h-48v320z'/%3E%3C/svg%3E");
}


.icon-mail {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502.3 190.8L327.4 338c-15.9 13.3-38.9 13.3-54.8 0L9.7 190.8C3.9 186.1 0 178.8 0 171V96c0-26.5 21.5-48 48-48h416c26.5 0 48 21.5 48 48v75c0 7.8-3.9 15.1-9.7 19.8zM0 214.4V416c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V214.4l-184.6 154c-39.8 33.2-97 33.2-136.8 0L0 214.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502.3 190.8L327.4 338c-15.9 13.3-38.9 13.3-54.8 0L9.7 190.8C3.9 186.1 0 178.8 0 171V96c0-26.5 21.5-48 48-48h416c26.5 0 48 21.5 48 48v75c0 7.8-3.9 15.1-9.7 19.8zM0 214.4V416c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V214.4l-184.6 154c-39.8 33.2-97 33.2-136.8 0L0 214.4z'/%3E%3C/svg%3E");
}



.icon-menu {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z'/%3E%3C/svg%3E");
}

.icon-comment {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M512 240c0 114.9-114.6 208-256 208c-26.3 0-51.9-3.1-76.1-8.9c-9.6 6.3-23.4 14.3-40.1 21.6c-23 9.9-48.9 17.3-76.7 17.3c-6.6 0-12.5-4.1-14.8-10.3s-.6-13 4.4-17.4c23.2-20.1 38.1-39.4 46.8-53.8C38.3 359.3 0 304.3 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M512 240c0 114.9-114.6 208-256 208c-26.3 0-51.9-3.1-76.1-8.9c-9.6 6.3-23.4 14.3-40.1 21.6c-23 9.9-48.9 17.3-76.7 17.3c-6.6 0-12.5-4.1-14.8-10.3s-.6-13 4.4-17.4c23.2-20.1 38.1-39.4 46.8-53.8C38.3 359.3 0 304.3 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: currentColor;
    width: 1em;
    height: 1em;
    display: inline-block;
}

/* Style dla ikon w górnym pasku */
.header-icon {
    background-color: var(--text-primary);
}

.header-icon,.header-search-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: background-color 0.2s ease;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    cursor: pointer;
}

.header-search-icon,.header-icon:hover {
    background-color: var(--accent-color);
}

.icon-book {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 64C0 28.7 28.7 0 64 0H384c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-17.7 0-32 14.3-32 32s14.3 32 32 32H384c8.8 0 16 7.2 16 16s-7.2 16-16 16H64C28.7 544 0 515.3 0 480V64zM64 48C55.2 48 48 55.2 48 64V384c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 64C0 28.7 28.7 0 64 0H384c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-17.7 0-32 14.3-32 32s14.3 32 32 32H384c8.8 0 16 7.2 16 16s-7.2 16-16 16H64C28.7 544 0 515.3 0 480V64zM64 48C55.2 48 48 55.2 48 64V384c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}










/* match-boxes.css */
.match-boxes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.match-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.match-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.match-box-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
}

.match-date {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.match-teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    text-align: center;
}

.match-result {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 8px 0;
    font-family: 'Score', monospace;
}

.match-result.upcoming-time {
    font-size: 1.2em;
    font-family: inherit;
    color: var(--text-secondary);
}

.team-opponent {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.match-location {
    font-size: 1.4em;
    cursor: help;
}

.match-league {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.match-league,.match-status {
    text-align: center;
    margin-top: 10px;
}

.match-status {
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
}

.status-finished,.status-upcoming {
    background: var(--bg-medium);
    color: var(--text-primary);
}

.status-upcoming {
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
}

@media (max-width: 768px) {
    .match-boxes-container {
        grid-template-columns: 1fr;
    }
    
    .match-teams {
        font-size: 1.1em;
    }
    
    .match-score {
        font-size: 1.2em;
    }
}

/* news-list.css */
.news-list-container {
    max-width: 100%;
    margin: 0 auto;
    
}

.category-filters {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-filter:hover {
    background-color: #e0e0e0;
}

.category-filter.active {
    background-color: #2196F3;
    color: white;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: var(--bg-medium);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  padding: 0px;
  
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.news-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    align-items: flex-start;
    gap: 15px;
}

.news-thumbnail {
    flex: 0 0 180px;
    width: 180px;
    height: 120px;
    position: relative;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.category-t {

display: inline-block;
  width: 100%;
  font-size: 10px;
  color:#a3a2a2

}
/* Maska dla pilnych newsów */
.urgent-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(360deg, #d10019, #d1001900 50% 0.01%);
    z-index: 3;
}

.comments-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 4;
}

.comments-count i {
    font-size: 0.9em;
}

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-content h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-primary);
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.news-meta .category {
    padding: 3px 8px;
    background: var(--accent-color);
    border-radius: 4px;
    color: #ffffff;
    font-weight: 500;
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: none;
}

.pagination {
    
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.page-link {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #e0e0e0;
}

.page-link.active {
    background: #2196F3;
    color: white;
}

/* Responsywność */
@media (max-width: 767px) {
    .news-link {
        padding: 10px;
        gap: 12px;
    }

    .news-thumbnail {
        flex: 0 0 135px;
        width: 135px;
        height: 90px;
    }

    .news-content h2 {
        font-size: 0.7em;
    }

    .news-meta {
        font-size: 0.75em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .news-link {
        padding: 15px;
    }

    .news-thumbnail {
        flex: 0 0 220px;
        width: 220px;
        height: 147px;
    }

    .news-content {
        flex: 1;
        min-width: 0;
    }

    .news-content h2 {
        font-size: 1.4em;
    }
}

@media (min-width: 1024px) and (max-width: 1300px) {
    .news-link {
        padding: 15px;
    }

    .news-thumbnail {
        flex: 0 0 200px;
        width: 200px;
        height: 133px;
    }

    .news-content {
        flex: 1;
        min-width: 0;
    }

    .news-content h2 {
        font-size: 1.3em;
        line-height: 1.3;
    }
}

@media (min-width: 1301px) {
    .news-link {
        padding: 15px;
    }

    .news-thumbnail {
        flex: 0 0 280px;
        width: 280px;
        height: 187px;
    }

    .news-content {
        flex: 1;
        min-width: 0;
    }

    .news-content h2 {
        font-size: 1.6em;
    }
}

/* popular-news.css */
.popular-news-section {
    background: #2b3a63;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



.popular-news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s ease;
}

.popular-news-item:hover {
    transform: translateX(5px);
}

.popular-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-news-image {
    width: 90px;
    height: 65px;
    margin-right: 15px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.popular-news-item:hover .popular-news-image {
    transform: scale(1.05);
}

.popular-news-content {
    flex: 1;
    min-width: 0; /* Zapobiega przepełnieniu */
}

.popular-news-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 8px;
    font-weight: 500;
    color: #fff;
}

.popular-news-title a {
    color: inherit;
    text-decoration: none;
    display: inline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.popular-news-title a:hover {
    color: #39dd3e;
}

.popular-news-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    gap: 12px;
}

.popular-news-meta,.popular-news-views {
    display: flex;
    align-items: center;
}

.popular-news-views {
    gap: 4px;
}

.popular-news-views::before {
    content: '\1F441\FE0F';
    font-size: 14px;
}

.popular-news-category {
    color: #39dd3e;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(57, 221, 62, 0.1);
}

/* Dodaj animację pulsowania dla nowych artykułów */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.popular-news-item.new-article .popular-news-category {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .popular-news-section {
       
        padding: 15px;
    }

    .popular-news-image {
        width: 70px;
        height: 50px;
    }

    .popular-news-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .popular-news-meta {
        font-size: 11px;
        gap: 8px;
    }
}

/* Tryb ciemny */
@media (prefers-color-scheme: dark) {
    .popular-news-section {
        background: #1a2544;
    }

    .popular-news-title a:hover {
        color: #4aed4f;
    }

    .popular-news-category {
        background: rgba(57, 221, 62, 0.15);
    }
}

/* Efekty hover */
.popular-news-item {
    position: relative;
}

.popular-news-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #39dd3e;
    transition: all 0.3s ease;
}

.popular-news-item:hover::after {
    width: 100%;
    left: 0;
}

/* Wskaźnik nowych artykułów */
.popular-news-item.new {
    position: relative;
}

.popular-news-item.new::before {
    content: 'NEW';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #39dd3e;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* main-news.css */
.news-list-container {
    margin-top: 30px;
    padding: 0px;
}



/* Dostosuj wygląd newsów na stronie głównej */
.news-list {
    gap: 15px;
}

/* Wspólne style dla wszystkich newsów */
.news-list article {
    background: var(--bg-medium);
}

.news-list article .news-link {
    padding: 12px;
    padding-left: 0px;
}

.news-list article .news-thumbnail {
    flex: 0 0 180px;
    height: 120px;
}

.news-list article h2 {
    font-size: 15px;
    line-height: 1.3;
}

/* Responsywność */
@media (max-width: 767px) {
    .news-list article .news-thumbnail {
        flex: 0 0 135px;
        height: 90px;
    }

    .news-list article h2 {
       font-size: 12px;
    }

    .news-list article .news-meta {
        font-size: 0.85em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .news-list article .news-thumbnail {
        flex: 0 0 220px;
        height: 147px;
    }

    .news-list article h2 {
        font-size: 12px;
    }
}

/* Efekt "pilne" */
.news-urgent .news-meta .category {
    background-color: #c62828;
    animation: pulseUrgent 2s infinite;
}

@keyframes pulseUrgent {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* styles-news.css */
/* --- BREAKING NEWS RIGHTBAR --- */
/* --- BREAKING NEWS RIGHTBAR --- */
/* --- BREAKING NEWS RIGHTBAR --- */
.livebox {
    background: var(--bg-medium, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
    
    width: 100%;
    font-family: inherit;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.livebox__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px 0 12px;    
}




.livebox__content {
    list-style: none;
    margin-bottom: 10px;
    padding: 0 12px 8px 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.livebox__title {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-primary, #222);
    letter-spacing: 0.01em;
}
.livebox__button {
    font-size: 0.92em;
    color: #0077cc;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eaf6ff;
    transition: background 0.2s;
    white-space: nowrap;
    margin-bottom: auto;
}
.livebox__button:hover {
    background: #d0eaff;
}
.livebox__content {
    list-style: none;
    margin-top: 0px;
    padding: 0 12px 8px 12px;
    scrollbar-width: thin;
    overflow-y: auto;
}
.liveitem {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.97em;
}
.liveitem:last-child {
    border-bottom: none;
}
.liveitem__aside {
    min-width: 74px;
    text-align: right;
    color: #888;
    font-size: 0.92em;
    padding-top: 1px;
}
.liveitem__time {
    font-weight: 500;
    color: #0077cc;
    font-size: 0.92em;
}
.liveitem__title {
    font-size: 0.98em;
    font-weight: 600;
    color: #444;
    line-height: 1.1;
}
.liveitem__title,.liveitem__lead {
    margin-bottom: 1px;
    display: block;
}
.liveitem__lead {
    font-size: 0.97em;
    color: #ffffff;
    line-height: 1.15;
    word-break: break-word;
}
/* Style dla sekcji najnowszych wiadomości */
.latest-news-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.main-news {
    background: var(--bg-medium);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-news a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: var(--text-primary);
}

.main-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-news .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.main-news .news-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #fff;
}

.secondary-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.secondary-news {
    background: var(--bg-medium);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.secondary-news a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: var(--text-primary);
}

.secondary-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-news .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.secondary-news .news-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #fff;
}

.news-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    gap: 15px;
}

.news-meta,.news-author {
    display: flex;
    align-items: center;
}

.news-author {
    gap: 5px;
}

.news-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsywność */
@media (max-width: 900px) {
    .secondary-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-news {
        height: 350px;
    }
    
    .main-news .news-title {
        font-size: 1.5em;
    }
}

@media (max-width: 600px) {
    .secondary-news-grid {
        grid-template-columns: 1fr;
    }
    
    .main-news {
        height: 300px;
    }
    
    .main-news .news-title {
        font-size: 1.3em;
    }
    
    .secondary-news {
        height: 200px;
    }
    
    .secondary-news .news-title {
        font-size: 1.1em;
    }
}

/* vote-system.css */
.vote-results-container {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
}

.vote-result-strip {
    display: flex;
    align-items: center;
    height: 5px;
    margin: 5px 0;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.vote-team-logo {
    width: 15px;
    height: 30px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    margin: 0 5px;
}

.team-logo-strip {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vote-strip {
    height: 100%;
    transition: width 0.5s;
}

.vote-strip-1 { background: #2c812f; }
.vote-strip-X { background: #2c662e; }
.vote-strip-2 { background: #0e3610; }

.vote-percentages {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 0.75em;
    color: #666;
}

.vote-percent {
    flex: 1;
    text-align: center;
}

.vote-interaction {
    position: relative;
    padding-bottom: 45px; /* Zostawia miejsce na wyniki głosowania */
}

/* Aktualizacja stylu dla przycisków głosowania */


.vote-btn {
    background: #e3eafc;
    color: #1565c0;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 500;
}

.vote-btn:hover {
    background: #1565c0;
    color: #fff;
}

.vote-thanks {
    color: green;
    font-weight: bold;
    margin: 10px 0;
}

/* Animacje */
.vote-strip {
    transition: width 0.8s ease-in-out;
}

.team-logo-strip {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.team-logo-strip:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* stadions.css */

/* Style dla strony stadionów */
.club-boxes-container {
    padding: 20px;
    margin: 0;
}

.sport-club-group {
    margin-bottom: 30px;
}

.sport-club-group h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Media queries dla różnych szerokości ekranu */
@media (max-width: 1200px) and (min-width: 901px) {
    .club-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .club-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .club-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .club-grid {
        grid-template-columns: 1fr;
    }
}

.club-box {
    height: 220px;
    margin: 0;
    background: var(--bg-medium);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    justify-content: space-between;
}

.club-box,.club-box a {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.club-box a {
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.club-box .club-logo {
    width: 100px;
    height: 66px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.club-box .club-box-name {
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.club-box .club-details {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

.club-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}


/* club-boxes.css */


/* Style dla boxów klubowych */
.club-boxes-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 0px;
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.club-box {
    background: var(--bg-medium);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-primary);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    width: 100%;
    height: 220px;
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
}

.club-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    border-color: var(--accent-color);
}

.club-box a {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.club-box .club-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-bottom: 10px;
}

.club-box .club-box-name {
    font-size: 0.95em;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
    color: var(--text-primary);
}

.club-box .club-box-founded {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 5px;
}


/* match-table */


/* Umożliwiamy kontenerowe sterowanie nazwami drużyn */
main.main-content {
  container-type: inline-size;
}

/* Domyślnie wyświetlamy pełną nazwę */
.team-name-full {
  display: inline;
}
.team-name-medium,.team-name-abbr {
  display: none;
}

@container (max-width: 675px) {
  .team-name-full {
    display: none;
  }
  .team-name-medium {
    display: inline;
  }
}

@container (max-width: 450px) {
  .team-name-medium,.team-name-full {
    display: none;
  }
  .team-name-abbr {
    display: inline;
  }
}
/* Wersje nazw drużyn - domyślnie tylko pełna nazwa */
.team-name-full {
  display: inline;
}
.team-name-medium,.team-name-abbr {
  display: none;
}

@media (max-width: 992px) {
  .team-name-full {
    display: none;
  }
  .team-name-medium {
    display: inline;
  }
}

@media (max-width: 768px) {
  .team-name-medium {
    display: none;
  }
  .team-name-abbr {
    display: inline;
  }
}
.league-group {
  margin-bottom: 30px;
}

.league-header {
  font-size: 1.1em;
  color: #1565c0;
  padding: 10px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #1565c0;
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  margin: 5px 0;
  background: #2b3a63;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.teams-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-row {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-row.home {
  color: #fff;
}

.team-row.away {
  color: #ccc;
}

.match-row:hover {
  background: #4c5f94;
}



.match-cell.teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  flex-grow: 1;
  min-width: 0;
  margin: 0 5px;
}

.league-name {
  font-size: 0.6em;
  color: #707070; /* niebieski, możesz zmienić na #666 jeśli wolisz szary */
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 500;
}
/* Wersje nazw drużyn */
.team-name-full {
  display: inline;
}
.team-name-medium,.team-name-abbr {
  display: none;
}

@media (max-width: 992px) {
  .team-name-full {
    display: none;
  }
  .team-name-medium {
    display: inline;
  }
}

@media (max-width: 768px) {
  .team-name-medium {
    display: none;
  }
  .team-name-abbr {
    display: inline;
  }
}



.team-name {
  
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95em;
}

.vs-separator {
  color: #999;
  font-size: 0.9em;
  font-weight: normal;
  padding: 0 4px;
}

/* Responsywność tabeli meczów */
@media (max-width: 1200px) {
  .match-cell.odds {
    display: none;
  }
}

@media (max-width: 992px) {
  .match-cell.odds {
    display: none;
  }
}

@media (max-width: 768px) {
  .match-cell.status {
    display: none;
  }
  
}







/* Style z aktywuj.php */
.activation-container { max-width: 400px; margin: 40px auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgb(0,0,0,0.08); padding: 32px; text-align: center; }
.activation-container .success { color: green; margin-bottom: 16px; }
.activation-container .error { color: red; margin-bottom: 16px; }

/* Style z templates/breaking-news.php */
.breaking-news-list {
    
    margin: 0 auto;
    background: var(--bg-medium, #fff);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(0,0,0,0.08);
    padding: 0;
    overflow: hidden;
}
.breaking-news-list .liveitem {
    border-bottom: 1px solid #f0f0f0;
}
.breaking-news-list .liveitem:last-child {
    border-bottom: none;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 24px 0 0;
}
.pagination-link, .pagination-arrow {
    padding: 4px 10px;
    background: #eaf6ff;
    color: #0077cc;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}
.pagination-link:hover, .pagination-arrow:hover {
    background: #d0eaff;
}
.pagination-current {
    padding: 4px 10px;
    background: #0077cc;
    color: #fff;
    border-radius: 5px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .breaking-news-list {
        max-width: 98vw;
        border-radius: 6px;
    }
    .liveitem {
        font-size: 0.97em;
    }
}

/* Style z templates/bukmacherzy.php */
.bukmacherzy-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}
.bukmacher-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgb(0,0,0,0.08);
  padding: 1.5rem;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.bukmacher-box:hover {
  box-shadow: 0 4px 16px rgb(0,0,0,0.15);
}
.bukmacher-logo {
  
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.bukmacher-nazwa {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #000;
}
.bukmacher-opis {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  text-align: center;
}
.bukmacher-link {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.bukmacher-link:hover {
  background: #0056b3;
}

@media (max-width: 700px) {
  .bukmacher-box {
    width: 100%;
  }
}

/* Style z templates/favourites.php */
.next-match-box {
    border: 2px solid #9fb2d9;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #2b3a63;
    border-radius: 8px;
}
.countdown {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
    color: #d84315;
}

/* Style z templates/logowanie.php */
.register-container { max-width: 400px; margin: 20px auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgb(0,0,0,0.08); padding: 32px; }
.register-container h2 { margin-bottom: 24px; }
.register-container input { width: 100%; margin-bottom: 16px; padding: 8px; border-radius: 4px; border: 1px solid #ccc; }
.register-container button { width: 100%; margin-bottom:15px; padding: 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; font-size: 16px; }
.register-container .login-link, .register-container .forgot-link { display: block;  text-align: center; }
.register-container .forgot-link {  cursor: pointer; }
.register-container .success { color: green; margin-bottom: 16px; }
.register-container .error { color: red; margin-bottom: 8px; }

/* Style z templates/match_details.php */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

@media (max-width: 600px) {
    .match-details-container .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        gap: 4px;
        justify-content: flex-start;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }
    .match-details-container .tabs::-webkit-scrollbar {
        display: none;
    }
}
.tabs .tab-btn {
    flex: 0 0 auto;
    
    
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.tabs .tab-btn.active {
    /* bez zmiany koloru ani pogrubienia */
}

@media (max-width: 600px) {
    .tabs {
        gap: 4px;
    }
    
}
.btn-back {
    display: block;
    margin: 32px auto 16px;
    text-align: center;
    max-width: 220px;
    font-size: 1.1em;
}
.next-match-box {
    border: 2px solid #9fb2d9;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #2b3a63;
    border-radius: 8px;
}
.countdown {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
    color: #d84315;
}

/* Style z templates/news_list.php */
.category-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 12px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
   
}
.category-filters::-webkit-scrollbar {
    height: 6px;
    background: #e3eafc;
}
.category-filters::-webkit-scrollbar-thumb {
    background: #d2f5d6;
    border-radius: 6px;
}
.category-filter {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 12px;
    background: #f6fef7;
    color: #222;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    margin-right: 2px;
     border-color: #2c812f;
    transition: background 0.2s, color 0.2s;
}
.category-filter.active, .category-filter:hover {
    background: #e8f5e9;
    color: #222;
}

/* Style z templates/przypomnij_haslo.php */
.forgot-container { max-width: 400px; margin: 40px auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgb(0,0,0,0.08); padding: 32px; }
.forgot-container h2 { margin-bottom: 24px; }
.forgot-container input { width: 100%; margin-bottom: 16px; padding: 8px; border-radius: 4px; border: 1px solid #ccc; }
.forgot-container button { width: 100%; padding: 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; font-size: 16px; }
.forgot-container .success { color: green; margin-bottom: 16px; }
.forgot-container .error { color: red; margin-bottom: 8px; }
.forgot-container .back-link { display: block; margin-top: 16px; text-align: center;  cursor: pointer; }

/* Style z templates/rejestracja.php */
.register-container { max-width: 400px; margin: 20px auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgb(0,0,0,0.08); padding: 32px; }
.register-container h2 { margin-bottom: 24px; }
.register-container input { width: 100%; margin-bottom: 16px; padding: 8px; border-radius: 4px; border: 1px solid #ccc; }
.register-container button { width: 100%; padding: 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; font-size: 16px; }
.register-container .login-link, .register-container .forgot-link { margin-top: 16px; display: block; text-align: center; }
.register-container .forgot-link { cursor: pointer; }
.register-container .success { color: green; margin-bottom: 16px; }
.register-container .error { color: red; margin-bottom: 8px; }

/* Style z templates/rightbar.php */
.vote-slider { 
    width: 100%; 
    margin: 0 auto; 
    position: relative; 
}

.vote-match-box,
.vote-slider { 
    width: 100%; 
    background:  #2b3a63;
    
    border-radius: 8px; 
    box-shadow: 0 1px 3px rgb(0,0,0,0.05); 
    padding: 15px 15px 10px; 
    margin-bottom: 10px; 
    text-align: center; 
    box-sizing: border-box; 
    min-height: 160px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    position: relative; 
}
.vote-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.75em;
    color: #fff;
    
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
}
.vote-label {
    position: relative;
    
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
}
.vote-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    margin-right: 2px;
}
.vote-label-1 { color: #39dd3e; }
.vote-label-X { color: #6afd05; }
.vote-label-2 { color: #06950e; }

.vote-progress-bar {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 3px;
    height: 6px;
}
.vote-progress-segment {
    height: 100%;
    transition: width 0.5s ease-in-out;
}
.vote-progress-1 { background: #39dd3e; }
.vote-progress-X { background: #6afd05; }
.vote-progress-2 { background: #06950e; }
.vote-progress-tooltip {
    position: absolute;
    bottom: 8px;
    left: 50%;
    background: rgb(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.vote-progress-bar:hover .vote-progress-tooltip {
    opacity: 1;
}
.vote-league { font-weight: bold; color: #1565c0; margin-bottom: 6px; }
.vote-teams { font-size: 1.1em; margin-bottom: 6px; }
    .vote-team-home, .vote-team-away { display: block; font-weight: bold; }
    .vote-team-vs { display: block; color: #888; font-size: 0.95em; margin: 2px 0; }
.vote-date { color: #666; margin-bottom: 10px; }
.vote-interaction {
    min-height: 90px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.vote-message {
    
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 4px;
    color: #2c812f;
    font-size: 0.9em;
    text-align: center;
    display: none;
}
.vote-options {
    gap: 12px;
}
.vote-options,.vote-match-box .vote-thanks,
.vote-match-box .vote-results {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.vote-match-box .vote-thanks,
.vote-match-box .vote-results {
    min-height: 34px;
}
.vote-results { text-align: center; margin-top: 10px; }
.vote-result-bar {
    display: flex;
    align-items: center;
    margin: 6px 0;
}
.vote-result-bar-vertical {
    flex-direction: row;
    width: 100%;
    margin-bottom: 8px;
}
.vote-bar-label {
    width: 32px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}
.vote-bar-outer {
    flex: 1;
    height: 22px;
    background: #eee;
    border-radius: 9px;
    margin: 0 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.vote-results-container {
    width: 100%;
    margin-top: 10px;
}
.vote-result-strip {
    display: flex;
    align-items: center;
    height: 5px;
    margin: 10px 0;
    background: #f0f0f0;
    border-radius: 3px;
}
.vote-result-strip,.vote-team-logo {
    overflow: hidden;
    position: relative;
}
.vote-team-logo {
    width: 15px;
    height: 30px;
    flex-shrink: 0;
}
.team-logo-strip {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.vote-strip {
    height: 100%;
    transition: width 0.5s;
}
.vote-strip-1 { background: #39dd3e; }
.vote-strip-X { background: #6afd05; }
.vote-strip-2 { background: #06950e; }
.vote-percentages {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8em;
    color: #666;
}
.vote-percent {
    flex: 1;
    text-align: center;
}
.vote-btn { 
    background: #ffffff; 
    color: #333333; 
    border: 1px solid #dddddd; 
    border-radius: 4px; 
    padding: 6px 14px; 
    font-size: 0.95em; 
    cursor: pointer; 
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.vote-btn:hover {
    background: #f8f8f8;
    border-color: #cccccc;
}
.vote-btn:disabled { 
    background: #f5f5f5; 
    color: #999; 
    cursor: not-allowed; 
    border-color: #eeeeee;
}
.vote-thanks { color: green; font-weight: bold; margin-top: 10px; }
.vote-arrows { display: flex; justify-content: space-between; margin-top: 8px; }
.vote-arrows button { background: #fff; color: var(--bg-light); border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1.2em; cursor: pointer; }

.rightbar-container {
    width: 100%;
    margin-top: 10px;
    margin: 0 auto;
    box-sizing: border-box;
    
    flex-direction: column;
    align-items: stretch;
}
.rightbar-important-topics {
    padding: 20px;
    margin-bottom: 12px;
}
.rightbar-important-topics,.rightbar-break-news {
    background: #2b3a63;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(0,0,0,0.07);
    font-family: 'Segoe UI', Arial, sans-serif;
}
.rightbar-break-news {
    padding: 18px;
    margin-bottom: 24px;
}
.break-news-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #c62828;
    letter-spacing: 1px;
}
.break-news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.break-news-row {
    display: flex;
    align-items: center;
    font-size: 1em;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 1px 4px rgb(0,0,0,0.04);
}
.break-news-date, .break-news-time, .break-news-icon, .break-news-text {
    margin-right: 8px;
    font-weight: 500;
}
.break-news-icon {
    font-size: 1.2em;
}
.break-news-text {
    color: #222;
    font-weight: 400;
    margin-right: 0;
}
.important-topics-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1a237e;
    letter-spacing: 1px;
}
.important-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.important-topic-hashtag {
    background: #e3eafc;
    color: #1565c0;
    border-radius: 20px;
    padding: 6px 16px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    font-size: 1em;
}
.important-topic-hashtag:hover {
    background: #1565c0;
    color: #fff;
}







/* submenu */

/* Base styles for scrollable rows */
.submenu-favorites-row.center-menu,
.submenu-sports-row.center-menu,
.submenu-leagues-row.center-menu,
.submenu-clubs-row.center-menu {
  display: flex;
  gap: 20px;
  margin: 8px auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #bbb #f3f3f3;
  position: relative;
  width: 100%;
  max-width: 1200px;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  padding-left: 16px;
  padding-right: 16px;
 max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;

}

/* Przycisk Ulubione w submenu */
.submenu-favorites-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  color: #f57c00;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #ffc107;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.submenu-favorites-link:hover {
  background: linear-gradient(135deg, #fff3e0 0%, #ffd54f 100%);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.submenu-favorites-link.active {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #fff;
  border-color: #ff9800;
  box-shadow: 0 2px 12px rgba(255, 152, 0, 0.4);
}

.submenu-favorites-link svg {
  flex-shrink: 0;
}

.submenu-favorites-row.center-menu {
  justify-content: center;
  overflow-x: visible;
  margin-bottom: 12px;
}

/* Wrapper dla centrowania zawartości */




/* Scrollbar styling */
.submenu-sports-row.center-menu::-webkit-scrollbar,
.submenu-leagues-row.center-menu::-webkit-scrollbar,
.submenu-clubs-row.center-menu::-webkit-scrollbar {
  height: 1px;
}

.submenu-sports-row.center-menu::-webkit-scrollbar-thumb,
.submenu-leagues-row.center-menu::-webkit-scrollbar-thumb,
.submenu-clubs-row.center-menu::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 1px;
}

.submenu-sports-row.center-menu::-webkit-scrollbar-track,
.submenu-leagues-row.center-menu::-webkit-scrollbar-track,
.submenu-clubs-row.center-menu::-webkit-scrollbar-track {
  background: #f3f3f3;
}

/* Force clubs row to be single-line and horizontally scrollable on all screens */
.submenu-clubs-row.center-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
}

/* Sport, league and club logo links */
.submenu-sport-logo-link,
.submenu-club-logo-link,
.submenu-league-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
  background: #f3f3f3;
  border-radius: 12px;
  padding: 0px;
}

.submenu-sport-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  margin: 0 4px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.submenu-sport-logo-link:hover {
  background: #f0f0f0;
}

.sport-name {
  font-weight: 500;
}

.submenu-club-logo-link {
 
  border: 1px solid #e0e0e0;
  margin: 0 4px;
  border-radius: 10px;
}

/* Active states */
.submenu-sport-logo-link.active,
.submenu-club-logo-link.active,
.submenu-league-link.active {
  background: #e8f5e9;
  border-color: #2c812f;
}

/* Logo images */
.submenu-sport-logo,
.submenu-club-logo,
.submenu-league-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  object-fit: contain;
}



/* Horizontal submenu container */
.horizontal-submenu {
  width: 100%;
  display: none;
  margin-bottom: 8px;
  overflow: hidden;
}

/* Sports list */
.horizontal-submenu ul.submenu-sports {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  list-style: none;
  padding: 0 16px;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.horizontal-submenu .submenu-sport-item {
  position: relative;
  flex-shrink: 0;
}

/* Sport links */
.horizontal-submenu .submenu-sport-item > a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}

.horizontal-submenu .submenu-sport-item > a.active {
  background: #e0e0e0;
  color: #0077cc;
}

/* League specific styles */
.submenu-league-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  background: #f8f8f8;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.submenu-league-link:hover {
  background: #f0f0f0;
}

.submenu-league-link.active {
  background: #e8f5e9;
  border-color: #2c812f;
}

.submenu-league-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}



/* Female icon styling */
.submenu-club-logo-link .female-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  color: #e74c3c;
  font-size: 0.9em;
}

.horizontal-submenu .submenu-club-link .female-icon {
  margin-left: 3px;
  color: #e74c3c;
  font-size: 0.95em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .horizontal-submenu {
    display: block;
  }

  .horizontal-submenu ul.submenu-sports {
    gap: 12px;
    padding: 0 6px;
  }

  .submenu-sports-row.center-menu,
  .submenu-leagues-row.center-menu,
  .submenu-clubs-row.center-menu {
    gap: 10px;
    padding: 0 6px;

      overflow-x: scroll;
      -ms-overflow-style: none; /* Edge/IE */
      scrollbar-width: none; /* Firefox */
  }
  
  .submenu-favorites-link {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .submenu-favorites-link svg {
    width: 16px;
    height: 16px;
  }

  .horizontal-submenu .submenu-sport-item > a {
    padding: 7px 7px;
    font-size: 0.98em;
  }

  .submenu-club-logo-link {
    width: 50px;
    height: 50px;
  }

  .submenu-club-logo {
    width: 40px;
    height: 40px;
  }
    .sidebar {
        display: none !important;
    }

    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .container {
        flex-direction: column;
    }

    .horizontal-submenu {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
}

/* mobile-layout */

/* Mobile Layout Styles */
@media (max-width: 1024px) {
}

/* Breaking News Box Styles */
.breaking-news-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 20px auto;
  overflow: hidden;
  background: #fffbe6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #ffe58f;
}
.breaking-news-slider {
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.7s cubic-bezier(.77,0,.18,1);
}
.breaking-news-item {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 18px;
  font-size: 1.05em;
  line-height: 1.2;
  cursor: pointer;
  border-bottom: 1px solid #ffe58f;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
}
.breaking-news-item:last-child {
  border-bottom: none;
}
.breaking-news-date {
  font-size: 0.95em;
  color: #b8860b;
  margin-right: 12px;
  min-width: 80px;
}
.breaking-news-icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}
.breaking-news-text {
  flex: 1;
  font-weight: 500;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.breaking-news-container:hover .breaking-news-slider {
  transition: none;
}


.main-matches-container {
    width: 100%;
    margin: 20px auto;
    padding: 0px;
    box-sizing: border-box;
}

.match-boxes-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 0 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.match-box {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.match-boxes-section {
    margin-bottom: 30px;
}

.match-boxes-section h2 {
    margin: 0 0 15px 15px;
    font-size: 1.2em;
    color: #333;
}

.match-box {
    flex: 0 0 300px;
    
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.match-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.match-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.match-box-title {
    font-weight: bold;
    
    font-size: 0.8em;
}

.match-date {
    color: #888;
    font-size: 0.75em;
    line-height: 1.3;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
}

.team-opponent {
    flex: 1;
    font-weight: 500;
    font-size: 0.88em;
    line-height: 1.2;
}

.match-result {
    font-weight: bold;
    font-size: 1.1em;
    padding: 0 10px;
    min-width: 50px;
    text-align: center;
}

.match-result.upcoming-time {
    font-size: 1em;
    color: #666;
}

.match-location {
    font-size: 1.2em;
    width: 30px;
    text-align: center;
}

.match-league {
    font-size: 0.85em;
    color: #999898;
    margin: 8px 0;
}

.match-status {
    font-size: 0.75em;
    
    text-align: right;
    margin-top: auto;
}

.status-finished {
    color: #4CAF50;
}

/* Kontrolki nawigacji dla mobilnych */
.match-boxes-nav {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.match-boxes-nav button {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.match-boxes-nav button:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .match-box {
        flex: 0 0 280px;
    }
    
    .match-boxes-nav {
        display: flex;
    }
    
    .match-boxes-container {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .match-boxes-container::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .match-box {
        flex: 0 0 260px;
    }
    
    .match-box-header {
        
        align-items: flex-start;
        gap: 5px;
    }
}

/* Style dla statusów meczów */
.match-status {
    font-size: 0.85em;
    text-align: right;
    margin-top: auto;
    
    border-radius: 3px;
}

.status-finished {
    color: #4CAF50;
}

.status-upcoming {
    color: #1976D2;
}

.status-live {
    color: #f44336;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.status-waiting {
    color: #ff9800;
}

.status-scheduled {
    color: #757575;
}

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

.rightbar h3 {
    font-size: 1.2em;
    margin: 0 0 20px 0;
    color: #fff;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: relative;
}

.rightbar h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
   background: #39dd3e;
   
}


.match-box-header {
    display: flex;
    justify-content: space-between; /* rozsuwa elementy na lewo i prawo */
    align-items: center;
    width: 100%;
}

/* nazwa sportu zawsze do LEWEJ */
.match-box-title {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* data i liga zawsze do PRAWEJ, w dwóch liniach */
.match-date {
    text-align: right;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.rightbar-top-matches {
    background: #2b3a63;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 12px;
}

.rightbar-top-matches h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #fff;
    border-bottom: none;
   
}

.top-matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-match-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #e3eafc;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #1565c0;
}

.top-match-item:hover {
    background: #1565c0;
    color: #fff;
    transform: translateX(4px);
}

.top-match-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #1565c0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.top-match-item:hover .top-match-rank {
    background: #fff;
    color: #1565c0;
}

.top-match-info {
    flex: 1;
    min-width: 0;
}

.top-match-teams {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-match-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.top-match-rating .stars {
    color: #ffd700;
}

.top-match-rating .avg {
    font-weight: bold;
    color: #1565c0;
}

.top-match-item:hover .top-match-rating .avg {
    color: #ffd700;
}

.top-match-rating .votes {
    color: rgba(0, 0, 0, 0.6);
}

.top-match-item:hover .top-match-rating .votes {
    color: rgba(255, 255, 255, 0.8);
}

.loading, .no-matches, .error {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.error {
    color: #ff6b6b;
}

/* TOP 10 Klubów */
.rightbar-top-clubs {
    background: #2b3a63;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 12px;
}

.rightbar-top-clubs h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #fff;
    border-bottom: none;
}

.top-clubs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-club-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #e3eafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.top-club-item:hover {
    background: #1565c0;
    transform: translateX(4px);
}

.top-club-item.podium {
    background: #ffd700;
}

.top-club-item.podium:hover {
    background: #ffed4e;
}

.club-position {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #1565c0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.top-club-item:hover .club-position {
    background: #fff;
    color: #1565c0;
}

.top-club-item.podium .club-position {
    background: #333;
    color: #ffd700;
}

.top-club-item.podium:hover .club-position {
    background: #333;
    color: #ffed4e;
}

.club-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1565c0;
    min-width: 0;
}

.top-club-item:hover .club-link {
    color: #fff;
}

.top-club-item.podium .club-link {
    color: #333;
}

.club-mini-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.club-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-fans {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    flex-shrink: 0;
}

.top-club-item:hover .club-fans {
    color: rgba(255, 255, 255, 0.8);
}

.top-club-item.podium .club-fans {
    color: rgba(0, 0, 0, 0.7);
}

.view-full-ranking {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.view-full-ranking:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .top-match-teams {
        font-size: 12px;
    }
    
    .top-match-rank {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
/* ============================================
   STADIUM RATING SYSTEM - Style jak match_details
   ============================================ */

.rating-stars {
    display: flex;
    gap: 8px;
    font-size: 48px;
    cursor: pointer;
    user-select: none;
}

.rating-stars .star {
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rating-stars .star:hover {
    transform: scale(1.2) rotate(10deg);
}

.rating-stars .star.hover,
.rating-stars .star.filled {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6),
                 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-stars .star.filled {
    animation: starPulse 0.4s ease-out;
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.rating-info {
    display: flex;
    gap: 40px;
    text-align: center;
}

.average-rating,
.total-ratings {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avg-number,
.total-number {
    font-size: 32px;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.avg-label,
.total-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* Responsywno dla ocen */
@media (max-width: 600px) {
    .rating-stars {
        font-size: 36px;
        gap: 4px;
    }
    
    .avg-number,
    .total-number {
        font-size: 24px;
    }
    
    .rating-info {
        gap: 24px;
    }
}

/* ============================================
   MATCH/STADIUM RATING CONTAINER
   ============================================ */

.match-rating-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.rating-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Responsywno dla kontenera */
@media (max-width: 600px) {
    .match-rating-container {
        padding: 20px 16px;
        margin: 16px 5px;
    }
    
    .rating-title {
        font-size: 18px;
    }
}


.club-highlights-section {
    background: #1f2b49;
}

.section-title {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding: 6px 3px;
    margin-top: 0px;
    
   
}

.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.manage-favorites-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.manage-favorites-btn:hover {
    background: #667eea;
    color: white;
}

/* Ensure horizontal submenu is always visible and centered on all viewports */
.sub-nav.horizontal-submenu,
.horizontal-submenu {
  display: block !important;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Center inner rows and limit their max width for better layout */
.sub-nav.horizontal-submenu .submenu-sports-row.center-menu,
.sub-nav.horizontal-submenu .submenu-leagues-row.center-menu,
.sub-nav.horizontal-submenu .submenu-clubs-row.center-menu {
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}

/* Slight spacing tweak for links to look balanced on wide screens */
.sub-nav.horizontal-submenu .submenu-sport-logo-link,
.sub-nav.horizontal-submenu .submenu-league-link,
.sub-nav.horizontal-submenu .submenu-club-logo-link {
  margin: 0 6px;
}

/* On narrow screens behave like main-nav: single-line slider with horizontal scroll */
@media (max-width: 1024px) {
    .sub-nav.horizontal-submenu .submenu-sports-row.center-menu,
    .sub-nav.horizontal-submenu .submenu-leagues-row.center-menu,
    .sub-nav.horizontal-submenu .submenu-clubs-row.center-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 10px;
        padding-left: 6px;
        padding-right: 6px;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }

    .sub-nav.horizontal-submenu .submenu-sports-row.center-menu::-webkit-scrollbar,
    .sub-nav.horizontal-submenu .submenu-leagues-row.center-menu::-webkit-scrollbar,
    .sub-nav.horizontal-submenu .submenu-clubs-row.center-menu::-webkit-scrollbar {
        display: none;
    }
}

.month-btn {
            flex: 0 0 auto;
            padding: 10px 16px;
            background: #f5f5f5;
            border-radius: 8px;
            cursor: pointer;
            font-size: 10px;
            
        }

        .month-btn:hover {
            background: #667eea;
            color: white;
        }

        .month-btn.active {
           background: #667eea;
           color: white;
        }
           
  @media (max-width: 600px) {
        .smonth-btn { min-width: 100px !important; font-size: 10px !important; padding: 8px 10px !important; }
    }       


.adsbygoogle {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 480px) {
  .adsbygoogle {
    min-width: 300px;
  }
}