* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); min-height: 100vh; position: relative; color: #ddd; }
body::before { content: ''; position: fixed; inset: 0; background-image: url('https://i.imgur.com/G8YZBUi.png'); background-size: cover; background-position: center; opacity: 0.10; filter: blur(3px); z-index: 0; }
a { color: #ff3333; text-decoration: none; }
a:hover { color: #ff6666; }
.page-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 40px 20px; animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.footer-note { margin-top: 40px; text-align: center; color: #555; font-size: 0.8em; }
.nav-links a i { margin-right: 6px; }

.navbar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; background: rgba(20,20,20,0.75); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,51,51,0.2); }
.nav-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 1.15em; text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a { display: inline-block; padding: 9px 18px; border-radius: 10px; color: #aaa; text-decoration: none; font-weight: 700; font-size: 0.92em; transition: all 0.2s ease; }
.nav-links a:hover { color: #fff; background: rgba(255,51,51,0.10); }
.nav-links a.active { color: #fff; background: #ff3333; box-shadow: 0 4px 15px rgba(255,51,51,0.35); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.search-form { position: relative; display: flex; align-items: center; }
.search-input { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; padding: 9px 14px 9px 38px; border-radius: 10px; font-size: 0.88em; width: 190px; transition: all 0.2s ease; }
.search-input::placeholder { color: #777; }
.search-input:focus { outline: none; border-color: #ff3333; width: 230px; background: rgba(255,255,255,0.09); }
.search-icon { position: absolute; left: 13px; color: #777; font-size: 0.85em; pointer-events: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.3em; cursor: pointer; }
@media (max-width: 900px) {
    .navbar { flex-wrap: wrap; padding: 16px 20px; }
    .nav-toggle { display: block; order: 2; }
    .nav-links { display: none; flex-direction: column; width: 100%; order: 4; margin-top: 14px; gap: 4px; }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; text-align: center; }
    .nav-right { order: 3; }
    .search-input, .search-input:focus { width: 150px; }
}

.home-hero { min-height: calc(100vh - 300px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.home-logo { width: 160px; height: 160px; border-radius: 24px; border: 3px solid #ff3333; box-shadow: 0 0 50px rgba(255,51,51,0.35); image-rendering: pixelated; margin-bottom: 30px; animation: floatLogo 4s ease-in-out infinite; }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.home-title { font-size: 3em; font-weight: 900; color: #fff; letter-spacing: 0.03em; text-shadow: 0 0 40px rgba(255,51,51,0.4); }
.home-title .dot { color: #ff3333; }
.home-sub { margin-top: 12px; color: #888; font-size: 1.05em; font-weight: 500; }

.page-header { margin-bottom: 24px; }
.page-header.centered { text-align: center; }
.page-title { color: #fff; font-size: 1.9em; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.page-header.centered .page-title { justify-content: center; }
.page-title i { color: #ff3333; }
.page-sub { color: #888; margin-top: 6px; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: #999; padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 0.88em; cursor: pointer; transition: all 0.2s ease; }
.tab-btn:hover { color: #fff; border-color: rgba(255,51,51,0.4); }
.tab-btn.active { background: #ff3333; color: #fff; border-color: #ff3333; }
.hidden-panel { display: none; }

.table-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,51,51,0.2); border-radius: 16px; overflow-x: auto; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead th { text-align: left; padding: 16px 18px; color: #ff6666; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(255,51,51,0.25); white-space: nowrap; }
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.15s ease; }
tbody tr:hover { background: rgba(255,51,51,0.05); }
tbody tr:last-child { border-bottom: none; }
td { padding: 12px 18px; color: #ddd; font-size: 0.92em; vertical-align: middle; }
.rank-cell { font-weight: 900; color: #666; }
.rank-cell.rank-1 { color: #ffd700; }
.rank-cell.rank-2 { color: #c0c0c0; }
.rank-cell.rank-3 { color: #cd7f32; }
.cell-player { display: flex; align-items: center; gap: 12px; }
.head { width: 30px; height: 30px; border-radius: 6px; image-rendering: pixelated; }
.player-name { font-weight: 700; }
.player-name:hover { filter: brightness(1.2); }

.search-bar { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; max-width: 360px; }
.search-bar i { color: #777; }
.search-bar input { background: none; border: none; color: #fff; outline: none; width: 100%; font-size: 0.9em; }
.search-bar input::placeholder { color: #777; }
.cell-reason { color: #ddd; }
.reason-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8em; font-weight: 700; white-space: nowrap; }
.reason-badge.blacklist { background: rgba(255,51,51,0.15); color: #ff5555; border: 1px solid rgba(255,51,51,0.35); }
.cell-staff { color: #999; }
.cell-date, .cell-duration { color: #888; white-space: nowrap; font-size: 0.88em; }
.duration-permanent { color: #ff3333; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.85em; }

.load-more-wrap { text-align: center; margin-top: 20px; }
.load-more-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,51,51,0.3); color: #fff; padding: 12px 32px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.load-more-btn:hover { background: rgba(255,51,51,0.15); border-color: #ff3333; }
.load-more-btn:disabled { opacity: 0.5; cursor: default; }

.rules-section { margin-bottom: 34px; }
.section-label { color: #ff6666; font-weight: 800; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.rules-list { display: flex; flex-direction: column; gap: 14px; }
.rule-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,51,51,0.2); border-radius: 14px; padding: 22px 26px; display: flex; gap: 20px; align-items: flex-start; transition: all 0.2s ease; }
.rule-card:hover { border-color: rgba(255,51,51,0.45); background: rgba(255,51,51,0.04); }
.rule-num { font-size: 1.6em; font-weight: 900; color: rgba(255,51,51,0.35); flex-shrink: 0; min-width: 46px; }
.rule-title { color: #fff; font-weight: 700; font-size: 1.08em; margin-bottom: 6px; }
.rule-desc { color: #999; line-height: 1.6; font-size: 0.92em; }
.rules-note { margin-top: 24px; padding: 14px 18px; background: rgba(255,170,0,0.08); border: 1px solid rgba(255,170,0,0.25); border-radius: 10px; color: #ffaa00; font-size: 0.85em; display: flex; align-items: center; gap: 10px; }

.staff-group { margin-bottom: 34px; text-align: center; }
.group-label { font-weight: 800; font-size: 0.95em; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.staff-grid { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.staff-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-top: 3px solid #ff3333; border-radius: 14px; padding: 22px 24px; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; min-width: 160px; }
.staff-card:hover { transform: translateY(-4px); border-color: #ff3333; box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.staff-avatar { width: 72px; height: 72px; border-radius: 12px; image-rendering: pixelated; margin-bottom: 12px; }
.staff-name { display: block; font-weight: 800; font-size: 1.05em; text-align: center; }

.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; min-width: 0; }
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }
.stats-column { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,51,51,0.2); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.4); min-width: 0; }
.card-header { padding: 16px 20px; font-weight: 900; font-size: 1.1em; color: #fff; border-bottom: 2px solid rgba(255,51,51,0.4); display: flex; align-items: center; gap: 10px; }
.card-header i { color: #ff3333; }
.card-body { padding: 24px; min-width: 0; }
.side-body { text-align: center; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.online { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.status-dot.offline { background: #ff3333; box-shadow: 0 0 8px #ff3333; }
.skin-render { width: 140px; margin: 0 auto 20px; display: block; image-rendering: pixelated; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)); }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #888; font-size: 0.85em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.info-value { color: #fff; font-weight: 700; text-align: right; }
.subranks { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.subrank-badge { background: rgba(255,51,51,0.12); border: 1px solid rgba(255,51,51,0.3); color: #ff8888; padding: 3px 10px; border-radius: 20px; font-size: 0.75em; font-weight: 700; }
.subrank-none { color: #666; font-weight: 400; font-style: italic; }
.status-text.online { color: #2ecc71; }
.status-text.offline { color: #ff5555; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; min-width: 0; }
.stat-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px 12px; text-align: center; transition: all 0.2s ease; min-width: 0; overflow: hidden; }
.stat-box:hover { border-color: rgba(255,51,51,0.4); background: rgba(255,51,51,0.05); }
.stat-label { color: #888; font-size: 0.8em; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; white-space: nowrap; }
.stat-label i { color: #ff3333; margin-right: 6px; }
.stat-value { color: #fff; font-size: 1.8em; font-weight: 900; }
.empty-stats { text-align: center; color: #666; font-style: italic; padding: 20px; }
.error-stats { text-align: center; color: #ffaa00; padding: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9em; }

.notfound { text-align: center; padding: 80px 20px; }
.notfound-avatar { width: 110px; height: 110px; border-radius: 16px; border: 3px solid #ff3333; box-shadow: 0 0 25px rgba(255,51,51,0.3); image-rendering: pixelated; margin-bottom: 24px; background: #111; }
.notfound-title { color: #fff; font-size: 1.6em; font-weight: 900; margin-bottom: 12px; }
.notfound-desc { color: #888; margin-bottom: 30px; line-height: 1.6; }
.btn-home { display: inline-flex; align-items: center; gap: 8px; background: #ff3333; border: 2px solid #ff3333; color: #fff; padding: 12px 28px; border-radius: 12px; font-weight: 700; transition: all 0.3s ease; }
.btn-home:hover { background: transparent; color: #ff3333; transform: translateY(-3px); }
.redirect-box { min-height: calc(100vh - 300px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.redirect-logo { width: 90px; height: 90px; border-radius: 16px; border: 3px solid #ff3333; box-shadow: 0 0 30px rgba(255,51,51,0.3); image-rendering: pixelated; margin-bottom: 20px; }
.redirect-text { color: #888; font-size: 0.95em; }
