* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    color: #e9f4ff;
    background: #000;
}
.video-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    }

.video-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: -1;
    }

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.logo-link {
    display: block;
    margin-bottom: 10px;
}

.logo {
    max-width: 180px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 30px;
}

header h1 {
    font-size: 2.4rem;
    text-shadow: 0 0 12px #77c8ff;
}

.form-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

select,
input[type=text] {
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    width: 280px;
    background: rgba(20, 40, 85, 0.85);
    color: white;
    outline: none;
}

button {
    padding: 10px 20px;
    background: #4daaff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 12px #4daaff;
    transition: 0.2s;
    white-space: nowrap;
}

button:hover {
    box-shadow: 0 0 25px #7bd2ff;
}

/* ---------------------------- Tabele ---------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(0,0,30,0.55);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(120,200,255,0.6);
    box-shadow: 0 0 25px rgba(120,200,255,0.7);
    font-size: 14px;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

th {
    background: rgba(60,140,255,0.75);
    font-weight: bold;
}

tr:nth-child(even) {
    background: rgba(255,255,255,0.07);
}

tr:hover {
    background: rgba(255,255,255,0.16);
}

/* TOP3 neon glow przy numerkach */
td.place {
    text-align: center;
    font-weight: bold;
}
tr.first td.place {
    text-shadow: 0 0 8px gold;
    color: gold;
}
tr.second td.place {
    text-shadow: 0 0 8px silver;
    color: silver;
}
tr.third td.place {
    text-shadow: 0 0 8px peru;
    color: peru;
}

/* Best time gracza */
tr.best-time td {
    background: rgba(77, 170, 255, 0.45);
    font-weight: bold;
    text-shadow: 0 0 10px #7bd2ff;
}

/* Nick jako link */
td a {
    color: #ffd966;
    text-decoration: none;
    font-weight: bold;
}
td a:hover {
    text-shadow: 0 0 8px #fff;
}

/* Top summary puchary */
.top-summary {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0 45px;
}

/* Karty podium wyglądają jak tabele */
.cup {
    background: rgba(0,0,30,0.55);
    border: 2px solid rgba(120,200,255,0.6);
    box-shadow: 0 0 20px rgba(120,200,255,0.6);
    padding: 18px 32px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Subtelne uniesienie przy hover */
.cup:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(120,200,255,0.9);
}

/* Kolor podium — tylko tekst, nie tło */
.cup.first  { color: gold;   border-color: gold;   }
.cup.second { color: silver; border-color: silver; }
.cup.third  { color: peru;   border-color: peru;   }

/* "WR's" stylowane subtelniej */
.cup .wr {
    font-size: 14px;
    opacity: .7;
    margin-left: 3px;
}

/* Linki w podium */
.cup a {
    color: inherit;
    text-decoration: none;
    transition: text-shadow .2s;
}

.cup a:hover {
    text-shadow: 0 0 10px #fff;
}


.cup.first { border: 2px solid gold; color: gold; }
.cup.second { border: 2px solid silver; color: silver; }
.cup.third { border: 2px solid peru; color: peru; }

/* Footer */
footer {
    text-align: center;
    padding: 18px;
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.7;
}

/* Responsywność */
@media (max-width: 768px) {
    select,
    input[type="text"] {
        width: 90%;
    }
    button {
        width: 90%;
        margin-top: 10px;
    }
    th,
    td {
        padding: 8px;
    }
    .top-summary {
        flex-direction: column;
        gap: 10px;
    }
}

/* Formularze w dwóch kolumnach */
.search-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.maps-section,
.players-section {
    flex: 1;
    min-width: 280px;
    background: rgba(20,40,85,0.6);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(77,170,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.maps-section h3,
.players-section h3 {
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 6px #77c8ff;
}

.maps-section input,
.players-section input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    background: rgba(0,0,50,0.7);
    color: #fff;
    outline: none;
}

.maps-section button,
.players-section button {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #4daaff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 12px #4daaff;
    transition: 0.2s;
}

.maps-section button:hover,
.players-section button:hover {
    box-shadow: 0 0 25px #7bd2ff;
}

/* Napis nad TOP3 */
.top-title {
    text-align: center;
    margin-top: 40px;
    text-shadow: 0 0 10px #77c8ff;
}

/* Lista wyboru gracza */
.player-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 60, 90, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.player-choice {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(0,120,200,0.5);
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.player-choice:hover {
    background: rgba(0,160,255,0.8);
    transform: scale(1.05);
}

/* Profil gracza */
.profile-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.records-table {
    flex: 2;
    min-width: 420px;
}

.records-table table {
    width: 100%;
    background: rgba(0,0,30,0.55);
    border: 2px solid rgba(120,200,255,0.6);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(120,200,255,0.7);
}

.records-table th,
.records-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 14px;
}

.records-table tr:nth-child(even) {
    background: rgba(255,255,255,0.07);
}

.records-table tr:hover {
    background: rgba(255,255,255,0.16);
}

.stats-box {
    flex: 1;
    background: rgba(0,0,0,0.55);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    min-width: 260px;
    box-shadow: 0 0 15px rgba(0,180,255,0.4);
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.stats-box p {
    margin: 6px 0;
    font-size: 15px;
}

/* Pasek XP */
.xp-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 4px 0 10px 0;
}
.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c3ff, #0077ff);
    border-radius: 10px;
    transition: width 0.4s ease-in-out;
}

/* VIP linijka w stylu reszty */
.vip-icon {
  width: 52px;
  height: 52px;
  vertical-align: middle;
}

.xp-bar {
  width: 100%;
  height: 12px;
  background: #333;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

