.tlk-standings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.tlk-standings-table th, .tlk-standings-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}
.tlk-standings-table th {
    background: #2c3e50;
    color: white;
}
.tlk-standings-table tr:nth-child(even) {
    background: #f5f5f5;
}
.tlk-standings-table tr:nth-child(odd) {
    background: #ecf0f1;
}
.tlk-live {
    text-align: center;
}
.tlk-live-scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #1a1a2e;
    color: white;
    border-radius: 10px;
    margin: 20px 0;
}
.tlk-live-team {
    padding: 20px;
    min-width: 150px;
}
.tlk-live-vs {
    font-size: 1.5em;
    font-weight: bold;
}
.tlk-live-next-race {
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
}
.tlk-live-next-race h3 {
    margin-top: 0;
}
.tlk-race-slot {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.tlk-live-form {
    margin: 20px 0;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 8px;
}
.tlk-live-form select, .tlk-live-form button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
}
.tlk-live-form button {
    background: #1abc9c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.tlk-live-form button:hover {
    background: #16a085;
}

/* Teams Grid */
.tlk-teams {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.tlk-team-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tlk-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.tlk-team-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
}
.tlk-team-card h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #2c3e50;
}
.tlk-team-players {
    text-align: left;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}
.tlk-team-players strong {
    color: #1abc9c;
    font-size: 12px;
    text-transform: uppercase;
}
.tlk-team-players ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}
.tlk-team-players li {
    padding: 4px 0;
    font-size: 14px;
    color: #2c3e50;
}
.tlk-player-number {
    color: #1abc9c;
    font-weight: bold;
}

/* ========================================
   TLK HOMEPAGE LAYOUT - DESIGN PATTERN
   ======================================== */

:root {
    --header-bg: #2c3e50;
    --header-text: #ffffff;
    --accent-color: #1abc9c;
    --body-bg: #ecf0f1;
    --card-bg: #ffffff;
    --card-border: #dddddd;
    --text-dark: #2c3e50;
}

/* Główny układ - 2 kolumny */
.tlk-homepage-wrapper,
.sp-home-wrapper,
#primary.home-content,
.home-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* Lewa kolumna ~65% */
.tlk-main-content,
.sp-main-column,
.home-left-column {
    flex: 0 0 65% !important;
    max-width: 65% !important;
}

/* Prawa kolumna ~35% */
.tlk-sidebar,
.sp-sidebar-column,
.home-right-column {
    flex: 0 0 35% !important;
    max-width: 35% !important;
}

/* FIXTURES + RESULTS obok siebie */
.tlk-top-sections,
.sp-top-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    margin-bottom: 25px !important;
}

.tlk-fixtures-section,
.tlk-results-section,
.sp-fixtures-block,
.sp-results-block {
    flex: 0 0 calc(50% - 10px) !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
}

/* Nagłówki sekcji - ciemny szary */
.tlk-fixtures-section h2,
.tlk-results-section h2,
.sp-fixtures-block .sp-template-header,
.sp-results-block .sp-template-header,
.tlk-standings-section h2,
.sp-standings-block .sp-template-header {
    background: var(--header-bg) !important;
    color: var(--header-text) !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Siatka meczów wewnątrz - 1 kolumna (pionowo) */
.tlk-fixtures-grid,
.tlk-results-grid,
.sp-fixtures-list,
.sp-results-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Pojedyncza karta meczu */
.tlk-match-card,
.sp-fixture,
.sp-result {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 15px !important;
    border-bottom: 1px solid #eee !important;
    text-align: center !important;
}

/* Loga i data w jednej linii */
.tlk-match-teams,
.sp-fixture-logos,
.sp-result-logos {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-bottom: 8px !important;
}

/* Loga drużyn - MAŁE */
.tlk-match-teams img,
.sp-team-logo img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
}

/* Data meczu */
.tlk-match-date,
.sp-date {
    font-size: 12px !important;
    color: #666 !important;
}

/* Godzina */
.tlk-match-time,
.sp-time {
    font-size: 16px !important;
    font-weight: bold !important;
    color: var(--text-dark) !important;
    margin: 5px 0 !important;
}

/* Nazwa spotkania - TURKUS */
.tlk-match-title,
.sp-event-name {
    color: var(--accent-color) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

/* Wynik - duży, wyboldowany */
.tlk-match-score,
.sp-score {
    font-size: 24px !important;
    font-weight: bold !important;
    color: var(--accent-color) !important;
    margin: 10px 0 !important;
}

/* TABELA LIGOWA */
.tlk-standings-section,
.sp-standings-block {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
}

.tlk-standings-table,
.sp-data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
}

.tlk-standings-table th,
.sp-data-table th {
    background: #2c3e50 !important;
    color: #ffffff !important;
    padding: 10px 5px !important;
    text-align: center !important;
    font-weight: bold !important;
    border-bottom: 2px solid #ddd !important;
    font-size: 11px !important;
}

.tlk-standings-table td,
.sp-data-table td {
    padding: 8px 5px !important;
    text-align: center !important;
    border-bottom: 1px solid #eee !important;
}

.tlk-standings-table td:first-child,
.sp-data-table td.sp-team-name {
    text-align: left !important;
}

.tlk-standings-table img,
.sp-data-table .sp-team-logo img {
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
}

/* NEXT MATCH WIDGET */
.tlk-next-match,
.tlk-next-match-widget,
.sp-widget-next-match {
    background: #2c3e50 !important;
    color: #ffffff !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
}

.tlk-next-match .tlk-widget-header,
.tlk-next-match-widget h3,
.sp-next-match-header {
    background: transparent !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}

.tlk-next-match-content {
    padding: 0 !important;
}

.tlk-next-match-logos {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    padding: 20px 15px 10px 15px !important;
}

.tlk-next-match-logo {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
}

.tlk-next-match-initial {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: rgba(255,255,255,0.7) !important;
}

.tlk-next-match-versus {
    font-size: 14px !important;
    font-weight: bold !important;
    color: rgba(255,255,255,0.5) !important;
}

.tlk-next-match-teams {
    padding: 10px 15px !important;
    background: rgba(0,0,0,0.2) !important;
    color: #ffffff !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

span.tlk-next-match-team1,
span.tlk-next-match-team2 {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 16px !important;
    text-shadow: 0 0 4px rgba(0,0,0,0.8) !important;
    background: transparent !important;
    display: inline-block !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
}

span.tlk-next-match-vs {
    color: #1abc9c !important;
    margin: 0 10px !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* UPCOMING MATCHES */
.tlk-upcoming-widget,
.sp-widget-upcoming {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
}

.tlk-upcoming-widget h3,
.sp-upcoming-header {
    background: var(--header-bg) !important;
    color: var(--header-text) !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.tlk-upcoming-table,
.sp-upcoming-list {
    width: 100% !important;
    border-collapse: collapse !important;
}

.tlk-upcoming-table th,
.sp-upcoming-list th {
    padding: 10px 8px !important;
    text-align: left !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: #666 !important;
    border-bottom: 1px solid #ddd !important;
}

.tlk-upcoming-table td,
.sp-upcoming-list td {
    padding: 10px 8px !important;
    border-bottom: 1px solid #eee !important;
    font-size: 12px !important;
}

.tlk-upcoming-table a,
.sp-upcoming-list a {
    color: var(--accent-color) !important;
    text-decoration: none !important;
}

/* Calendar grid */
.tlk-calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 3px !important;
    padding: 15px !important;
    text-align: center !important;
}

.tlk-calendar-header {
    padding: 8px 0 !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: #666 !important;
}

.tlk-calendar-day {
    padding: 6px 0 !important;
    font-size: 12px !important;
    color: #333 !important;
    border-radius: 4px !important;
    text-align: center !important;
}

.tlk-calendar-day.tlk-calendar-empty {
    background: transparent !important;
}

.tlk-calendar-day.tlk-calendar-today {
    background: #2c3e50 !important;
    color: white !important;
    font-weight: bold !important;
}

/* Dzień z meczem */
.tlk-calendar-day.tlk-has-match {
    font-weight: bold !important;
    color: #1abc9c !important;
    position: relative !important;
}

/* Turkusowa kropka pod dniem z meczem */
.tlk-calendar-day.tlk-has-match::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 5px !important;
    height: 5px !important;
    background: #1abc9c !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Dzień dzisiejszy z meczem */
.tlk-calendar-day.tlk-calendar-today.tlk-has-match {
    background: #1abc9c !important;
    color: #ffffff !important;
}

.tlk-calendar-day.tlk-calendar-today.tlk-has-match::after {
    background: #ffffff !important;
}

/* Hover */
.tlk-calendar-day.tlk-has-match:hover {
    background: rgba(26, 188, 156, 0.15) !important;
    border-radius: 50% !important;
}

/* Usuń kropkę z dzisiejszego dnia jeśli nie ma meczu */
.tlk-calendar-day.tlk-calendar-today::after {
    display: none !important;
}

/* INFO widget */
.tlk-info-champion {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #1abc9c;
    text-align: center;
    padding: 15px 0;
}

.tlk-info-match {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    padding: 10px 0;
}

/* TLK Logo in header */
.header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.header-wrapper .tlk-logo {
    max-height: 100px;
    width: auto;
}

.site-branding .site-title a {
    display: none; /* Ukryj tekst "TLK" */
}

.site-branding .site-description {
    margin: 0;
    font-size: 12px;
    color: #1abc9c;
}

/* Mobile - 1 kolumna */
@media (max-width: 768px) {
    .tlk-homepage-wrapper {
        flex-direction: column !important;
    }
    .tlk-main-content,
    .tlk-sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .tlk-top-sections {
        flex-direction: column !important;
    }
}

/* AGRESYWNY FIX - Biały tekst w NEXT MATCH */
.tlk-next-match,
.tlk-next-match * {
    color: #ffffff !important;
}

.tlk-next-match h3 {
    color: #1abc9c !important;
}

.tlk-next-match-teams,
.tlk-next-match-teams * {
    color: #ffffff !important;
    font-weight: bold !important;
}

.tlk-next-match-teams .tlk-vs {
    color: #1abc9c !important;
}
