body {
    font-family: 'Verdana', sans-serif;
    background: #121212;
    color: #e0e0e0;
    text-align: center;
    margin: 0;
    padding: 20px;
}

/* Nagłówek */
h1, h2 {
    color: #4caf50;
    margin: 10px 0;
}

/* Kontener listy */
.chart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

/* Karta utworu */
.track-card {
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 15px;
    width: 1000px;
    max-width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    transition: background 0.3s;
}

.track-card:hover {
    background: #2a2a2a;
}

/* Numer miejsca */
.number {
    font-size: 3rem;
    font-weight: bold;
    color: #808080;
    width: 80px;
    text-align: center;
}

.tag-small {
    display: block;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Info o utworze */
.track-info {
    flex: 1;
    text-align: left;
    margin: 0 1rem;
}

.track-info h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.track-info .from {
    font-size: 1rem;
    color: #b0b0b0;
}

/* Ikony zmian */
.change {
    font-weight: bold;
}

.change.up { color: #4caf50; }
.change.down { color: #f44336; }
.change.stay { color: #999; }

/* Miniaturki */
.thumb img, .wyskoki-thumb {
    border-radius: 12px;
    display: block;
    width: 120px;
    height: 90px;
    object-fit: cover;
}

/* Pozycja 1 - pełna szerokość */
.top-track {
    flex-direction: row;
    width: 96%;
    padding: 2rem;
    gap: 2rem;
}

.top-track .thumb img {
    width: 300px;
    height: 300px;
}

.top-track .number {
    font-size: 4rem;
}

/* Przyciski głosowania */
.buttons {
    display: flex;
    gap: 0.5rem;
}

button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    background: #4caf50;
    color: #fff;
}

button:hover { background: #45a049; }

/* Wyskoki z listy */
.wyskoki-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 2rem;
}

.wyskoki-track {
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wyskoki-track h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.wyskoki-track .from {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.wyskoki-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

/* Lista przebojów */
.songlist {
    display: grid;
    grid-template-columns: 1fr 1fr; /* dwie kolumny na desktop */
    gap: 18px;
    align-items: stretch;
}

/* Responsywność na tablety i telefony */
@media (max-width: 900px) {
    .songlist {
        grid-template-columns: 1fr; /* jedna kolumna na mobilnych */
        gap: 12px;
    }

    .track-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .track-info {
        text-align: center;
    }

    .top-track {
        flex-direction: column;
        align-items: center;
    }

    .number {
        margin-bottom: 8px;
    }
}

@media (max-width: 800px) {
    .track-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    .number {
        font-size: 2.5rem;
    }
    .track-info h3 {
        font-size: 1.3rem;
    }
    .top-track .thumb img {
        width: 200px;
        height: 200px;
    }
    .top-track .number {
        font-size: 3rem;
    }
}

@media (max-width: 480px){
    .track-card, .wyskoki-track {
        width: 100%;
        padding: 0.8rem;
    }
    .number { font-size: 2rem; }
    .track-info h3 { font-size: 1.1rem; }
    .thumb img, .wyskoki-thumb { width: 100%; height: auto; max-height: 120px; }
}
.vote-button {
    margin-top: 8px; /* zwiększ wartość, jeśli chcesz większy odstęp */
}
/* --- Poprawione wyskoki z listy (wersja dla iframe i urządzeń mobilnych) --- */
.wyskoki-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0 auto;
}

.wyskoki-track {
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    max-width: 100%;
    box-sizing: border-box;
}

.wyskoki-track h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.wyskoki-track .from {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.wyskoki-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Responsywność dla tabletów i telefonów --- */
@media (max-width: 900px) {
    .wyskoki-track {
        width: 45%;
    }
}

@media (max-width: 600px) {
    .wyskoki-list {
        flex-direction: column;
        align-items: center;
    }
    .wyskoki-track {
        width: 95%;
    }
}
/* --- Sekcja propozycji --- */
.propki-section {
  background: #1e1e1e;
  border: 2px solid #333;
  border-radius: 15px;
  padding: 2rem;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.propki-section h2 {
  color: #4caf50;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.propki-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: stretch;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #b0b0b0;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #121212;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s, background 0.3s;
}

.form-group input:focus {
  border-color: #4caf50;
  background: #181818;
}

.submit-btn {
  padding: 12px 20px;
  background: linear-gradient(90deg, #4caf50, #2d9cff);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(76,175,80,0.4);
}

.footer-line {
  margin-top: 2rem;
  color: #aaa;
  font-size: 1rem;
}
/* Odstęp na dole strony, żeby iframe nie ucinało zawartości */
body::after {
  content: "";
  display: block;
  height: 100px; /* wysokość pustej przestrzeni na dole */
}
.vote-closed-banner {
  background: #b71c1c;
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  padding: 15px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

