.server-info-card { background: #2a2a2a; border-radius: 12px; padding: 25px 30px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); display: flex; align-items: center; gap: 20px; border-left: 6px solid #5fb834; }
.server-info-icon { width: 80px; height: 80px; border-radius: 16px; object-fit: cover; flex-shrink: 0; border: 3px solid #3a3a3a; }
.server-info-icon-placeholder { width: 80px; height: 80px; border-radius: 16px; background: #1e1e1e; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 3px solid #3a3a3a; }
.server-info-icon-placeholder i { font-size: 32px; color: #5fb834; }
.server-info-content { flex: 1; min-width: 0; }
.server-info-name { font-size: 28px; font-weight: 700; color: #5fb834; margin: 0 0 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-info-members { font-size: 15px; color: #b0b0b0; margin: 0; display: flex; align-items: center; gap: 8px; }
.server-info-members i { color: #888; }
.leaderboard-controls-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.leaderboard-control-card { background: #2a2a2a; border-radius: 12px; padding: 20px 25px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.leaderboard-controls { background: #2a2a2a; border-radius: 12px; padding: 20px 25px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; gap: 20px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group label { font-size: 14px; font-weight: 600; color: #b0b0b0; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 10px 18px; background: #1e1e1e; border: 2px solid #3a3a3a; border-radius: 8px; color: #b0b0b0; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.filter-btn:hover { background: #353535; border-color: #5fb834; color: #e0e0e0; }
.filter-btn.active { background: #5fb834; border-color: #5fb834; color: white; font-weight: 600; }
.server-selector-wrapper { position: relative; max-width: 400px; }
.server-selector { width: 100%; padding: 12px 40px 12px 15px; background: #1e1e1e; border: 2px solid #3a3a3a; border-radius: 8px; color: #e0e0e0; font-size: 15px; cursor: pointer; appearance: none; transition: all 0.2s ease; }
.server-selector:hover, .server-selector:focus { border-color: #5fb834; outline: none; }
.selector-arrow { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
.login-prompt { display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: #1e1e1e; border-radius: 8px; color: #b0b0b0; }
.login-prompt i { font-size: 24px; color: #5865F2; }
.login-prompt a { color: #5fb834; text-decoration: none; font-weight: 600; }
.login-prompt a:hover { text-decoration: underline; }
.filter-label-hint { font-weight: 400; color: #666; font-size: 12px; text-transform: none; }
.topic-search-container { position: relative; }
.topic-search-container .search-input-wrapper { position: relative; }
.topic-search-container .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #888; font-size: 16px; pointer-events: none; z-index: 1; }
.topic-search-container input[type="text"] { width: 100%; padding: 12px 15px 12px 45px; border: 2px solid #3a3a3a; border-radius: 8px; background-color: #1e1e1e; color: #e0e0e0; font-size: 15px; font-family: inherit; transition: border-color 0.2s, background-color 0.2s; }
.topic-search-container input[type="text"]:focus { outline: none; border-color: #5fb834; background-color: #252525; }
.topic-search-container input[type="text"]::placeholder { color: #888; }
.topic-results { position: absolute; top: 100%; left: 0; right: 0; background: #1e1e1e; border: 2px solid #3a3a3a; border-top: none; border-radius: 0 0 8px 8px; max-height: 300px; overflow-y: auto; z-index: 1000; display: none; scrollbar-width: none; -ms-overflow-style: none; }
.topic-results::-webkit-scrollbar { display: none; }
.topic-results.active { display: block; }
.topic-result-item { padding: 12px 15px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background-color 0.2s; border-bottom: 1px solid #2a2a2a; }
.topic-result-item:last-child { border-bottom: none; }
.topic-result-item:hover { background-color: #2a2a2a; }
.topic-result-image { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.topic-result-info { flex: 1; min-width: 0; }
.topic-result-name { color: #e0e0e0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-results-empty, .topic-results-loading { padding: 20px; text-align: center; color: #888; font-size: 14px; }
.topic-results-loading i { margin-right: 8px; }
.selected-topic { display: flex; align-items: center; gap: 12px; padding: 10px 15px; background: #1e1e1e; border: 2px solid #5fb834; border-radius: 8px; }
.selected-topic-image { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.selected-topic-name { flex: 1; color: #e0e0e0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clear-topic-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #3a3a3a; border: none; border-radius: 6px; color: #b0b0b0; cursor: pointer; transition: all 0.2s ease; flex-shrink: 0; }
.clear-topic-btn:hover { background: #e85d75; color: white; }
.leaderboard-container { background: #2a2a2a; border-radius: 12px; padding: 25px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.leaderboard-list { display: flex; flex-direction: column; gap: 12px; }
.leaderboard-entry { background: #1e1e1e; border-radius: 10px; padding: 15px 20px; display: grid; grid-template-columns: 60px 55px 1fr auto; align-items: center; gap: 15px; transition: all 0.2s ease; }
.leaderboard-entry:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.leaderboard-entry.rank-1 { background: linear-gradient(135deg, #1e1e1e 0%, #3d3418 100%); border: 2px solid #ffd700; }
.leaderboard-entry.rank-2 { background: linear-gradient(135deg, #1e1e1e 0%, #2d2d30 100%); border: 2px solid #c0c0c0; }
.leaderboard-entry.rank-3 { background: linear-gradient(135deg, #1e1e1e 0%, #2d231c 100%); border: 2px solid #cd7f32; }
.leaderboard-rank { font-size: 20px; font-weight: 700; color: #888; text-align: center; }
.rank-1 .leaderboard-rank { color: #ffd700; }
.rank-2 .leaderboard-rank { color: #c0c0c0; }
.rank-3 .leaderboard-rank { color: #cd7f32; }
.leaderboard-avatar { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; border: 2px solid #3a3a3a; }
.rank-1 .leaderboard-avatar { border-color: #ffd700; }
.rank-2 .leaderboard-avatar { border-color: #c0c0c0; }
.rank-3 .leaderboard-avatar { border-color: #cd7f32; }
@keyframes shine { 0% { left: -100%; } 10% { left: 100%; } 100% { left: 100%; } }
.leaderboard-entry.rank-1, .leaderboard-entry.rank-2, .leaderboard-entry.rank-3 { position: relative; overflow: hidden; }
.leaderboard-entry.rank-1::before, .leaderboard-entry.rank-2::before, .leaderboard-entry.rank-3::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1), transparent); transform: skewX(-20deg); animation: shine 10s ease-in-out infinite; }
.leaderboard-entry.rank-1::before { background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.15), transparent); animation-delay: 0s; }
.leaderboard-entry.rank-2::before { background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.15), transparent); animation-delay: 0.5s; }
.leaderboard-entry.rank-3::before { background: linear-gradient(90deg, transparent, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.15), transparent); animation-delay: 1s; }
.leaderboard-user-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.leaderboard-display-name { font-size: 16px; font-weight: 600; color: #e0e0e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; transition: color 0.2s ease; }
a.leaderboard-display-name:hover { color: #5fb834; }
.leaderboard-title { font-size: 13px; color: #7ed957; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-score { font-size: 22px; font-weight: 700; color: #5fb834; text-align: right; white-space: nowrap; }
.loading-indicator { text-align: center; padding: 25px; color: #888; font-size: 16px; }
.loading-indicator i { margin-right: 10px; }
.no-more-message { text-align: center; padding: 20px; color: #666; font-size: 14px; border-top: 1px solid #3a3a3a; margin-top: 15px; }
.select-server-prompt { text-align: center; padding: 60px 20px; color: #b0b0b0; }
.select-server-prompt i { font-size: 64px; color: #404040; margin-bottom: 20px; display: block; }
.select-server-prompt h3 { font-size: 22px; color: #e0e0e0; margin-bottom: 10px; }
.select-server-prompt p { font-size: 15px; color: #888; }
.no-results { text-align: center; padding: 60px 20px; color: #b0b0b0; }
.no-results i { font-size: 64px; color: #404040; margin-bottom: 20px; display: block; }
.no-results h3 { font-size: 20px; color: #e0e0e0; margin-bottom: 10px; }
.no-results p { font-size: 15px; color: #888; }
@media (max-width: 992px) {
    .leaderboard-controls-row { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 768px) {
    .server-info-card { padding: 20px; gap: 15px; }
    .server-info-icon, .server-info-icon-placeholder { width: 60px; height: 60px; border-radius: 12px; }
    .server-info-icon-placeholder i { font-size: 24px; }
    .server-info-name { font-size: 22px; }
    .server-info-members { font-size: 14px; }
    .leaderboard-controls-row { gap: 12px; }
    .leaderboard-control-card { padding: 15px; }
    .leaderboard-controls { padding: 15px; }
    .filter-buttons { gap: 6px; }
    .filter-btn { padding: 8px 14px; font-size: 13px; }
    .leaderboard-container { padding: 15px; }
    .leaderboard-entry { grid-template-columns: 45px 45px 1fr auto; padding: 12px 15px; gap: 10px; }
    .leaderboard-rank { font-size: 16px; }
    .leaderboard-avatar { width: 45px; height: 45px; }
    .leaderboard-display-name { font-size: 14px; }
    .leaderboard-username { font-size: 12px; }
    .leaderboard-score { font-size: 18px; }
    .login-prompt { flex-direction: column; text-align: center; gap: 8px; }
}
@media (max-width: 480px) {
    .filter-buttons { display: grid; grid-template-columns: repeat(2, 1fr); }
    .filter-btn { text-align: center; }
    .leaderboard-entry { grid-template-columns: 40px 40px 1fr; gap: 8px; }
    .leaderboard-score { grid-column: 3; text-align: left; font-size: 16px; }
    .leaderboard-user-info { grid-column: 3; grid-row: 1; }
}
