.top-posters-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.top-posters-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-posters-header svg {
    width: 20px;
    height: 20px;
    color: #fbbf24;
}

.top-posters-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.top-posters-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-poster-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-poster-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateX(4px);
}

.poster-rank {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    min-width: 28px;
    text-align: center;
}

.poster-rank.rank-1 {
    color: #fbbf24;
}

.poster-rank.rank-2 {
    color: #d1d5db;
}

.poster-rank.rank-3 {
    color: #f97316;
}

.poster-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.top-poster-item:hover .poster-avatar {
    border-color: rgba(251, 191, 36, 0.4);
}

.poster-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.poster-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-stats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.poster-arrow {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.top-poster-item:hover .poster-arrow {
    color: #fbbf24;
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .top-posters-widget {
        padding: 16px;
    }
    
    .top-poster-item {
        padding: 10px;
    }
    
    .poster-avatar {
        width: 36px;
        height: 36px;
    }
}

.top-posters-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    padding: 20px;
    margin: 0;
}

.top-posters-widget .top-posters-header {
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.top-posters-widget .top-posters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.top-posters-widget .collapse-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}

.top-posters-widget:hover .collapse-icon {
    color: rgba(255, 255, 255, 0.7);
}

.top-posters-widget .collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 1;
    margin-top: 16px;
}

.top-posters-widget.collapsed .collapsible-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.top-posters-widget.collapsed .collapse-icon {
    transform: rotate(-90deg);
}


.top-posters-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hide-widget-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hide-widget-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.hide-widget-btn svg {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.hide-widget-btn:hover svg {
    color: #ef4444;
}

.hide-menu {
    position: fixed;
    background: #2a2d31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 150px;
}

.hide-menu button {
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hide-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hide-menu button:first-child {
    margin-bottom: 4px;
}

.top-posters-widget.collapsed {
    padding: 16px;
}

.top-posters-widget.collapsed .top-posters-header {
    padding: 0;
    margin: 0;
    border: none;
}

.top-posters-widget .collapsible-content {
    display: block;
    overflow: hidden;
    transition: opacity 0.2s ease;
    opacity: 1;
}

.top-posters-widget.collapsed .collapsible-content {
    display: none;
    opacity: 0;
}

.top-posters-widget .collapse-icon {
    transition: transform 0.2s ease;
}

.top-posters-widget.collapsed .collapse-icon {
    transform: rotate(-90deg);
}
