body {
    font-family: 'Segoe UI', sans-serif;
    background: #0b0b0b; /* solid dark background */
    color: #ddd;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Form Container ===== */
.form-container {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    width: 400px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.form-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #fafafa;
}

.form-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

::placeholder {
    color: #bbb;
    opacity: 1;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #eee;
    font-size: 15px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
    display: block;
}

input[type="text"]:focus {
    border-color: #f7a8b8;
    outline: none;
}

/* ===== Input Wrapper ===== */
.input-wrapper {
    display: flex;
    width: 100%;
    margin-bottom: 14px;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: #f7a8b8;
}

.input-wrapper input {
    flex: 1;
    padding: 10px;
    border: none;
    background: #2a2a2a;
    color: #eee;
    font-size: 15px;
}

.input-wrapper button {
    width: 42px;
    border: none;
    background: #1e1e1e;
    color: #aaa;
    cursor: pointer;
    transition: background 0.2s;
}

.input-wrapper button:hover {
    background: #333;
    color: #fff;
}

/* ===== Register Button ===== */
.register-btn {
    position: relative;
    display: inline-block;
    background: none;
    color: #f7a8b8;
    padding: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease, background 0.3s ease;
}

.register-btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(270deg, #55cdfc, #f7a8b8, #ffffff, #f7a8b8, #55cdfc);
    background-size: 400% 400%;
    animation: borderFlow 8s ease infinite;
    z-index: -1;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.register-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 8px;
    background: #111;
    z-index: -1;
}

.register-btn:hover {
    color: #fcfcfcff;
    background: rgba(247, 168, 184, 0.8);
}

.message {
    margin-top: 15px;
    color: #e0ea1a;
    font-weight: 500;
}

input:focus,
button:focus {
    outline: none;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    padding: 1rem 0;
    z-index: 100;
}

.navbar .nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar a {
    color: #eee;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.navbar li:not(.logo) a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #55cdfc, #f7a8b8);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar li:not(.logo) a:hover {
    color: #f7a8b8;
    transform: scale(1.08);
}

.navbar li:not(.logo) a:hover::after {
    width: 100%;
}

.navbar li.logo a::after {
    display: none;
}

.navbar .logo img {
    height: 56px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    vertical-align: middle;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
    animation: transPulse 4s ease-in-out infinite;
}

.navbar .logo a {
    text-decoration: none !important;
}

.navbar .logo img:hover {
    transform: rotate(8deg) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(247, 168, 184, 1));
}

@keyframes transPulse {
    0% { filter: drop-shadow(0 0 8px #f7a8b8); }
    33% { filter: drop-shadow(0 0 12px #ffffff); }
    66% { filter: drop-shadow(0 0 10px #55cdfc); }
    100% { filter: drop-shadow(0 0 8px #f7a8b8); }
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 160px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    color: #ddd;
    text-align: center;
    width: 500px;
    max-width: 90%;
}

.main-content h1 {
    color: #fafafa;
    font-size: 2.2rem;
    margin: 0;
}
.player-stats .player-stats-main-content {
    margin-top: 160px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    color: #ddd;
    width: 95%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.player-stats .player-stats-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.player-stats .player-stats-table {
    width: 100%;
    border-collapse: collapse;
    color: #eee;
    font-size: 0.95rem;
}

.player-stats .player-stats-th,
.player-stats .player-stats-td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
    text-align: center;
}

.player-stats .player-stats-th:first-child,
.player-stats .player-stats-td:first-child {
    text-align: left;
}

.player-stats .player-stats-th {
    cursor: pointer;
    color: #f7a8b8;
    user-select: none;
    position: sticky;
    top: 0;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(8px);
}

.player-stats .player-stats-th:hover {
    color: #55cdfc;
}

.player-stats .player-stats-tr:hover .player-stats-td {
    background: rgba(255,255,255,0.05);
}

.player-stats .player-stats-name-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.player-stats .player-stats-player-head {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    image-rendering: pixelated;
    background: rgba(255,255,255,0.05);
}

.player-stats .player-stats-loading {
    text-align: center;
    padding: 15px;
    color: #aaa;
}

/* fade-in animation */
@keyframes player-stats-fadeInRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-stats .player-stats-fade-in {
    animation: player-stats-fadeInRow 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* highlight active sort header */
.player-stats .player-stats-th.player-stats-active {
    color: #55cdfc;
    text-shadow: 0 0 6px rgba(85, 205, 252, 0.6);
}

/* hide scrollbars but keep scroll */
.player-stats html,
.player-stats body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}

.player-stats html::-webkit-scrollbar,
.player-stats body::-webkit-scrollbar {
    display: none;
}
.player-stats-table-container {
    overflow: hidden !important;
}

.player-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.player-stats-table-container::-webkit-scrollbar {
    display: none !important;
}
