html {
    font-size: 125%;
}

html, body, button, a {
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px;
}

.site-title {
    font-size: 3.4rem;
    font-weight: 800;
}

.server-status {
    margin: 28px auto 0;
    max-width: 360px;
    padding: 24px 32px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 16px 35px rgba(0,0,0,.45);
}

.online { color:#22c55e; font-weight:600; }
.offline { color:#ef4444; font-weight:600; }

.theme-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

footer {
    text-align: center;
    padding: 14px 18px 16px;
    font-size: .9rem;
}

.footer-copy {
    margin-bottom: 6px;
}

.footer-disclaimer {
    font-size: .65rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: .5;
}

.footer-disclaimer a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.player-list-wrap {
    max-width: 560px;
    margin: 14px auto 0;
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 4px;

    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.player-list:hover {
    scrollbar-color: var(--scroll-thumb) transparent;
}

.player-list::-webkit-scrollbar {
    width: 4px;
}

.player-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 99px;
}

.player-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 99px;
    transition: background .2s;
}

.player-list:hover::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
}

.player-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 5px;
    border-radius: 999px;
    border: 1px solid;
    font-size: .72rem;
    cursor: default;
    transition: background .15s, color .15s;
}

.player-pill img {
    border-radius: 50%;
    flex-shrink: 0;
}

body.dark {
    --scroll-thumb: rgba(148,163,184,.4);
    color: #e5e7eb !important;
    background: #0f172a !important;
}

body.dark .site-header,
body.dark footer {
    background: #0f172a !important;
    color: #64748b;
}

body.dark .server-status {
    background: #1e293b;
}

body.dark .btn-outline-secondary {
    color: #94a3b8;
    border-color: #334155;
}

body.dark .btn-outline-secondary:hover {
    background: #1e293b;
    color: #e5e7eb;
}

body.dark .player-pill {
    color: #94a3b8;
    border-color: #334155;
    background: transparent;
}

body.dark .player-pill:hover {
    background: #1e293b;
    color: #e5e7eb;
}

body.dark .footer-disclaimer a {
    color: #64748b;
}

body.light {
    --scroll-thumb: rgba(100,116,139,.35);
    color: #1f2937 !important;
    background: #f1f5f9 !important;
}

body.light .site-header,
body.light footer {
    background: #f1f5f9 !important;
    color: #6b7280;
}

body.light .server-status {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

body.light .player-pill {
    color: #4b5563;
    border-color: #cbd5e1;
    background: transparent;
}

body.light .player-pill:hover {
    background: rgba(0,0,0,.05);
    color: #1f2937;
}

body.light .footer-disclaimer a {
    color: #6b7280;
}